Displaying 1 result from an estimated 1 matches for "customopparam".
Did you mean:
customopparams
2007 Aug 03
1
[LLVMdev] Adding intrinsic with variable argument list HOWTO.
...i8* getelementptr
([7 x i8]* @.str, i32 0, i32 0), i32 %tmp12 )
declare void @llvm.tce.customop(i8*, ...)
No I need to add code to llvm/lib/Target/TCE/TCEInstrInfo.td, for
recognizing that variable argument intrinsic and I have no idea how it's
done. Right now I'm trying following:
def CustomOpParams : SDTypeProfile<0,2,[]>;
def customop : SDNode<"ISD::INTRINSIC_VOID", CustomOpParams>;
def : Pat<(customop tglobaladdr:$dst,iPTR:$vararg),
(int_tce_customop tglobaladdr:$dst, iAny:$vararg)>;
def : Pat<(call texternalsym:$dst,iAny:$vararg),...