Displaying 1 result from an estimated 1 matches for "visitbuiltincall".
2009 Jun 23
2
[LLVMdev] How to add a trivial LLVM intrinsic
...;ve added to the bottom of the llvm/include/llvm/Intrinsics.td file:
-----------------
def int_test_intrinsic :
Intrinsic<[llvm_i32_ty],
[llvm_i32_ty],
[],
"llvm.test.intrinsic">;
-----------------
Code I've added to visitBuiltinCall in
llvm/lib/Target/CBackend/CBackend.cpp:
-----------------
case Intrinsic::test_intrinsic:
return true;
-----------------
I've not added any code to llvm/lib/Target/X86 because when I did, I
received a tablegen error. I think I'm not understanding the difference
between an intrinsi...