[LLVMdev] How to add a trivial LLVM intrinsic

Duncan Sands baldrick at free.fr
Wed Jun 24 00:27:44 PDT 2009


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 intrinsic
defined?

Ciao,

Duncan.



More information about the llvm-dev mailing list