[LLVMdev] Invalid intrinsic name error

Dan Gohman gohman at apple.com
Wed Feb 20 11:12:15 PST 2008


On Feb 20, 2008, at 6:20 AM, aditya vishnubhotla wrote:
>
> def int_migrate_begin :
> Intrinsic<[llvm_i32_ty,llvm_vararg_ty],
> [IntrWriteMem],"llvm.migrate_begin">;

This is now an intrinsic with no overloaded types. It will have
an empty-string suffix.

>
>
> Intrinsic::getDeclaration(M,Intrinsic::migrate_begin,Tys,i);
> /* migrate_begin intrinsic creation */
> CallInst* CI = new CallInst(f,"migrate_begin");
>
> //Error:
>
> NAME:llvm.migrate_begin.i32
> opt: Function.cpp:293: unsigned int
> llvm::Function::getIntrinsicID(bool)
> const: Assertion `noAssert && "Invalid LLVM intrinsic
> name"' failed.

Without overloading, there should be no types passed to
Intrinsic::getDeclaration.

Dan



More information about the llvm-dev mailing list