Displaying 4 results from an estimated 4 matches for "mo_externalsymbol".
2004 Jun 17
2
[LLVMdev] MachineOperand: GlobalAddress vs. ExternalSymbol
Hi,
here I am again with "why is this so" kind of a question. Among different
types of MachineOperand there are MO_ExternalSymbol and MO_GlobalAddress.
For MO_GlobalAddress, we can get usefull information from the getGlobal()
method, which returns GlobalValue*. Wouldn'it it be better is
MO_GlobalAddress be called MO_GlobalValue, for consistency?
Second, MO_ExternalSymbol is used for storing name of external
variable/...
2004 Jun 17
0
[LLVMdev] MachineOperand: GlobalAddress vs. ExternalSymbol
On Thu, 17 Jun 2004, Vladimir Prus wrote:
>
> Hi,
> here I am again with "why is this so" kind of a question. Among different
> types of MachineOperand there are MO_ExternalSymbol and MO_GlobalAddress.
>
> For MO_GlobalAddress, we can get usefull information from the getGlobal()
> method, which returns GlobalValue*. Wouldn'it it be better is
> MO_GlobalAddress be called MO_GlobalValue, for consistency?
I think that it could be reasonable to make this change,...
2011 Mar 03
2
[LLVMdev] MachineOperand type
...e 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
2004 Jun 18
3
[LLVMdev] MachineOperand: GlobalAddress vs. ExternalSymbol
Chris Lattner wrote:
> > Second, MO_ExternalSymbol is used for storing name of external
> > variable/function, right? Why it's not possible to use MO_GlobalAddress,
> > where returned GlobalValue* has isExternal set to true? The
> > GlobalValue::getName would return the name of the symbol.
>
> Using the GlobalValue is ce...