[LLVMdev] creating a constant with the address of another constant
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Jul 31 13:26:08 PDT 2006
In ARM, the conventional way of setting a register to a 32 bit
constant is to use a load:
---------------------------------
str:
.asciz "Hello World"
.text
main:
...
ldr r0, .L3
....
.L3:
.word str
-----------------------------------
To implement this, LowerGlobalAddress must add an element to the
constant pool (.L3 in the example). How can I implement this?
Thanks,
Rafael
More information about the llvm-dev
mailing list