[LLVMdev] Inlining

Duncan Sands baldrick at free.fr
Sat Jan 9 00:15:35 PST 2010

Hi Dustin,

> define linkonce fastcc i32 @foo(i32 %arg) alwaysinline

linkonce implies that the function body may change at link time.  Thus it would
be wrong to inline it, since the code being inlined would not be the final code.
Use linkonce_odr to tell the compiler that the function body can be replaced
only by an equivalent function body.



More information about the llvm-dev mailing list