[llvm-dev] help create constant in arm machine level

冷雨 via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 8 22:46:49 PST 2017


dear llvm community
i have followed this group some months,but i have a newbie in llvm.i have a
question to ask for advice.
i want add some instructions in the arm machine pass,but i don't know how
to generate the constant in arm mode.the code should be as follows

LDR r0,constant0
mov r1,r2
...

constant0:
dd 12345678h

you know arm/thumb have their constan island to process the constant from
IR level passed,in machine level how
LDR an constant , when i use BuildMI to LDR an basic block,it seems
generate a wrong instruction,
and basic block can not contain data just instruction.thanks all the
friends,best regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170309/f933af60/attachment.html>


More information about the llvm-dev mailing list