Displaying 1 result from an estimated 1 matches for "load_float".
2009 May 21
3
[LLVMdev] Passing a pointer to a function
...nstant* fcall;
if (PtrTy->getElementType()->isInteger()) {
fcall = buildFcallMem(*theModule, "load_int", Type::Int32Ty);
CallInst::Create(fcall, P, "", &I);
} else if (PtrTy->getElementType()->isInteger()){
fcall = buildFcallMem(*theModule, "load_float", Type::FloatTy);
CallInst::Create(fcall, P, "", &I);
}
}
But then I get segfaults or assertions fail in Type.h (it's a huge
mess). I could be more specific, but I have tried several different
approaches and am trying to be brief here.
Perhaps I am overlooking an obvi...