Displaying 1 result from an estimated 1 matches for "_machinebasicblock".
Did you mean:
machinebasicblock
2015 Apr 28
2
[LLVMdev] Lowering intrinsic that return an int1
...[], "llvm.antivm">;_
Then I want to lower it in the X86 backend, so I defined a pseudo
instruction in "X86InstrCompiler.td":
_let usesCustomInserter = 1, Defs = [EFLAGS] in {_
_def ANTIVM : PseudoI<(outs), (ins), [(int_antivm)]>;_
_}_
I wrote my custom inserter:
_MachineBasicBlock *_
_X86TargetLowering::EmitANTIVMWithCustomInserter(_
_ MachineInstr *MI,_
_ MachineBasicBlock *MBB) const {_
_ // Some stuff, _
_ MI->eraseFromParent(); // The pseudo is gone now._
_ return BB;_
_}_
Should I put the return value to EAX (like for a standard function) ?
Thank you for your h...