Displaying 1 result from an estimated 1 matches for "tceinstrinsics".
2007 Aug 03
1
[LLVMdev] Adding intrinsic with variable argument list HOWTO.
Hi, I've been hitting my head to wall two days now. This is practically
my first contact with InstrInfo.td files. Is there any tutorial how to
make this kind of stuff? Or should I just keep on studying Sparc and
other backends?
So I added new intrinsic to llvm/include/llvm/TCEInstrinsics.td:
def int_tce_customop :
Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_vararg_ty], [],
"llvm.tce.customop">;
I made opt pass that converts __custom_op() functions to calls to
llvm.tce.customop calls.
shell> grep llvm.tce.customop hello2.ll
tail call void (i8*, .....