Displaying 1 result from an estimated 1 matches for "int_arm_cfiid".
2014 Mar 03
2
[LLVMdev] Lower CFI IDs Using Target Intrinsic
...in that file. At first, I just inserted a pattern to lower our intrinsic into a “trap” instruction, which worked fine:
/* Code in IR/IntrinsicsARM.td */
/* Note, I’m not positive that IntrNoReturn is correct here, but IntrNoMem type wouldn’t lower to an SDNode because of lack of “results” */
def int_arm_cfiid : Intrinsic<[], [llvm_i32_ty], [IntrNoReturn]>;
…
/* Code in Target/ARM/ARMInstrInfo.td */
def : Pat<(int_arm_cfiid (i32 imm)),
(TRAP)>;
...
Next, I’m trying to create my own “AXI” definition based on the TRAP definition, and then put that into the pattern. I admit...