[LLVMdev] Unknown LLVM intrinsic

Andrew Birck birck at uiuc.edu
Wed Apr 14 19:17:01 PDT 2004


I'm using the intrinsic llvm.memcpy which I declare at the top of my file:

declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)

and then later use as such:

call void %llvm.memcpy(sbyte* %t12, sbyte* %t13, uint %t9, uint 0)

However when trying to compile the llvm program I get this:

cpp -I/home/class/cs326/mp/mp2/lib cgen_test.ll | sed -e"s/#.*//" > 
cgen_test.bc.exp
llvm-as -f -o cgen_test.bc cgen_test.bc.exp
llvm-as: Function.cpp:232: unsigned int llvm::Function::getIntrinsicID() 
const: Assertion `0 && "Unknown LLVM intrinsic function!"' failed.
make: *** [cgen_test.bc] Aborted (core dumped)

Is there something I missed about using intrinsic functions?

Thanks,
Andrew



More information about the llvm-dev mailing list