[LLVMdev] MachineOperand type

Chris Lattner clattner at apple.com
Thu Mar 3 14:34:41 PST 2011


On Mar 3, 2011, at 2:30 PM, Bin Zeng wrote:

>>> 
>>> Thanks a lot in advance. Any advice will be greatly appreciated.
>> GlobalAddress is used to refer to something that exists in IR, such as a global variable.  ExternalSymbol is used to refer to something that isn't in the IR because it was synthesized by codegen, such as __addsi3.
>> 
>> -Chris
> 
> Thanks for the quick reply. According to your reply, memset and memcpy are synthesized by codegen? I saw memcpy in the source file. Did it get optimized out in the IR and later codegen synthesized memset and memcpy?

Yes, codegen does synthesize memcpy in some cases, also memset.

-Chris



More information about the llvm-dev mailing list