search for: _getoperand

Displaying 2 results from an estimated 2 matches for "_getoperand".

Did you mean: getoperand
2015 Apr 28
2
[LLVMdev] Lowering intrinsic that return an int1
Hi all, I'm playing with intrinsics and I was wondering how to lower an intrinsic that should return, for example, an int1? More precisely, how to return the value when working with MachineInst? First, I have defined an instrinsic in "Intrinsics.td": _def int_antivm : Intrinsic<[llvm_i1_ty], [], [], "llvm.antivm">;_ Then I want to lower it in the X86 backend,
2015 Apr 28
2
[LLVMdev] Lowering intrinsic that return an int1
...e-all, you should be able to see the actual sequence. That's exactly my problem. How to know before my custom inserter where the produced value will be? I found some documentation about the x86 target saying that the operand 0 is always the destination value, is it right? Also, sometimes I saw _getOperand(0).getReg()_, but how can I be sure that the destination will be in a vreg? Should I specify it explicitly in the TableGen definition? I admit being a bit lost inside the backend... Thank you for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: <h...