search for: emitantivmwithcustominsert

Displaying 1 result from an estimated 1 matches for "emitantivmwithcustominsert".

2015 Apr 28
2
[LLVMdev] Lowering intrinsic that return an int1
...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 help. -------------- next part -------------- A...