search for: test_intrinsic

Displaying 4 results from an estimated 4 matches for "test_intrinsic".

2009 Jun 24
2
[LLVMdev] How to add a trivial LLVM intrinsic
Thank you for your reply--I've now done that. Unfortunately, there's a new error now: ------------ Cannot yet select: intrinsic %llvm.test_intrinsic test.c:25: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. ------------ I've switched to using LLVM-2.5 instead of the latest SVN version, but I made all the same...
2009 Jun 23
2
[LLVMdev] How to add a trivial LLVM intrinsic
...m is GCC-4.2.4/LLVM from SVN/x86. First, I've read the page here about 10 times, so I'll speculate that my reading comprehension is lacking: http://www.llvm.org/docs/ExtendingLLVM.html Code I'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...
2009 Jun 24
0
[LLVMdev] How to add a trivial LLVM intrinsic
Hi Matt, > Thank you for your reply--I've now done that. Unfortunately, there's a new > error now: > > ------------ > Cannot yet select: intrinsic %llvm.test_intrinsic > test.c:25: internal compiler error: Aborted that's because you didn't tell the code generators what they should do with your intrinsic. Ciao, Duncan.
2009 Jun 24
0
[LLVMdev] How to add a trivial LLVM intrinsic
Hi, > After invoking: > llvm-gcc -g test.c -o test.native > ----------------- > The compiler returns: > cc1: Function.cpp:323: unsigned int llvm::Function::getIntrinsicID(bool) > const: Assertion `noAssert && "Invalid LLVM intrinsic name"' failed. > test.c:24: internal compiler error: Aborted did you rebuild llvm-gcc after building llvm with your new