[LLVMdev] inserting .word inline
Reed Kotler
rkotler at mips.com
Sat Nov 10 17:23:49 PST 2012
Seems like ARM does this by just using a pseudo.
I can do the same but had been hoping for a buildmi primitive.
On 11/09/2012 05:59 PM, reed kotler wrote:
> Is there a variant of buildmi where I can just deposit a constant inline
> in the instruction stream?
>
> I..e something like
>
> .word 0xdeadface
>
> I don't have time to do the constant island code for Mips 16 right now
> and want to just emit:
>
> lw rx .+4
> b .+6
> .word 0xdeadface
> ....
>
> Later I will move the constant somewhere nearby, adjust the target of
> the "lw" and delete the branch.
More information about the llvm-dev
mailing list