Displaying 1 result from an estimated 1 matches for "coefficienton".
Did you mean:
coefficientone
2008 Feb 25
0
[LLVMdev] Calling functions
...Int = (intptr_t)pt2Function;
Constant *functionConstant = ConstantInt::get( APInt( sizeof(intptr_t), functionInt) );
const Type *ArgTy = Type::FloatTy;
PointerType* arg = PointerType::get( ArgTy, 0 );
functionConstant = ConstantExpr::getIntToPtr( functionConstant, arg );
[...] (BB and CoefficientOne definition and other stuff)
CallInst *CallExternal = new CallInst(functionConstant, CoefficientOne, "external_call", BB );
CallExternal->setTailCall();
#######
The runtime error was:
/var/tmp/portage/sys-devel/llvm-base-2.2/work/llvm-2.2/include/llvm/Support/Casting.h:199...