search for: llvm_test_intrinsic

Displaying 1 result from an estimated 1 matches for "llvm_test_intrinsic".

2009 Jun 23
2
[LLVMdev] How to add a trivial LLVM intrinsic
...eGen/IntrinsicLowering.cpp: ----------------- case Intrinsic::test_intrinsic: break; ----------------- Note that the intent is to make this intrinsic a NOOP, just as an experiment. But alas, the following trivial test program does not work: ----------------- #include <stdio.h> int llvm_test_intrinsic(int) asm ("llvm.test.intrinsic"); int bar (int blah) { return llvm_test_intrinsic (blah); } int main() { int x = 3; bar (x); return 0; } ----------------- After invoking: llvm-gcc -g test.c -o test.native ----------------- The compiler returns: cc1: Function.cpp:323: uns...