Displaying 1 result from an estimated 1 matches for "my_target_mbb".
2018 Sep 22
2
Quick question: How to BuildMI mov64mi32 arbitrary MMB address to memory
...option?
In x86 assembly this would look something like:
MOVQ 0x40044540, 0x8(%rsp) # Store address of trampoline basic block
to stack
The BuildMI looks like:
BuildMI(MBB, MBIt, DL, TII->get(X86::MOV64mi32))
.addImm(0x1) // Scale
.addReg(X86::RSP) // Base
.addImm(0x8) // Disp
.addMBB(my_target_mbb); // Source
So far I have looked into the BuildMI API of LLVM and the only one that
looks relevant is addMBB. While my LLVM pass compiles, my linker complains
(and note that I am compiling with -fPIC):
1)
/usr/bin/ld: /tmp/foo-d523b6.o: Unknown temporary symbol
or 2)
/usr/bin/ld: /tmp/foo-d52...