[LLVMdev] MachineOperand type

Bin Zeng ezengbin at gmail.com
Wed Mar 2 20:34:21 PST 2011


Hi all,

I have a question about the types of MachineOperand. There are 12 
different types of MachineOperand such as MO_Register, MO_Immediate and 
so on. Some of the names are self-explanatory such as MO_Register and 
MO_Immediate. Some of them are a little confusing such as MO_FrameIndex, 
MO_ConstantPoolIndex and so on. For example, what is the different 
between MO_ExternalSymbol and MO_GlobalAddress? Are these two types 
orthogonal? I found that memset and memcpy are MO_ExternalSymbol and 
printf and fprintf and so on are MO_GlobalAddress.

Thanks a lot in advance. Any advice will be greatly appreciated.

Bin



More information about the llvm-dev mailing list