Displaying 1 result from an estimated 1 matches for "arminstinfo".
Did you mean:
arminstrinfo
2017 Feb 10
2
Add a custom intrinsic to the ARM backend
...a custom comparison.
To do so, I started with first defining the intrinsic in
llvm/include/llvm/IR/intrinsicsARM.td:
def int_foo_cmp : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], []>;
The second step I did is adding a new pseudo instruction matching that
intrinsic in lib/Target/ARM/ARMInstInfo.td:
def FOO_CMP : PseudoInst<(outs GPR:$Rd), (ins GPR:$src1, GPR:$src2),
IIC_iCMPi,
[(set GPR:$Rd, (int_foo_cmp GPR:$src1,
GPR:$src2))]>;
Now I am a bit lost how to proceed. I want the instrinsic to do a certain
comparison chain and want to avoid any optimization on...