search for: lenalloca

Displaying 1 result from an estimated 1 matches for "lenalloca".

Did you mean: inalloca
2015 Mar 24
2
[LLVMdev] IR blocks for calling function pointers
...r<Type*> FooArgs; FooArgs.push_back(IRB.getInt64Ty()); Value *FooFunction = M.getOrInsertFunction(std::string("foo"), FunctionType::get(IRB.getVoidTy(), ArrayRef<Type*>(FooArgs), false)); IRB.CreateCall(FooFunction, IRB.CreateLoad(LenAlloca)); I want to create a similar call, but to the pointer of foo ("foo_ptr" is defined as "(void) *foo_ptr (int)"). In C code, I would just call "foo_ptr(var)", and it would just work. But, replacing the function name with the name of the function pointer, in the IRBlock...