Stream: t-compiler/help

Topic: do I care about shims when doing codegen?


Jason Hu (Jul 28 2020 at 23:35, on Zulip):

It seems there are many generated shims during the codegen process, and these shims do have MIR bodies and we are also able to fetch the bodies. my question is, when doing codegen, do we distinguish shims, or we just do codegen for all instances? I am asking because I am looking into codegening call_once of Fn traits but it seems the parameters etc does not look quite the same.

bjorn3 (Jul 29 2020 at 14:14, on Zulip):

Shims are compiled like normal functions. They just have special InstanceDef variants.

Last update: Jan 22 2021 at 13:00UTC