Displaying 2 results from an estimated 2 matches for "load_fcal".
Did you mean:
load_fcall
2009 May 21
3
[LLVMdev] Passing a pointer to a function
...ut to some C file that implements those
functions.
Things were going well until I started trying to make function calls
with a pointer as a parameter. For example, I would like to do
something like:
void
visitLoadInst(LoadInst &I) {
Value *P;
P = I.getPointerOperand();
CallInst::Create(load_fcall, P, "", &I);
}
Where load_fcall is build using a call to Module::getOrInsertFunction
as in the example here:
http://wiki.llvm.org/HowTo:_Insert_a_function_call
My question is, what do I pass as the argument type for P above? The
following seems to work, as long as there are no flo...
2009 May 21
0
[LLVMdev] Passing a pointer to a function
On Wed, May 20, 2009 at 7:31 PM, Scott Ricketts <sricketts at maxentric.com> wrote:
> Where load_fcall is build using a call to Module::getOrInsertFunction
> as in the example here:
>
> http://wiki.llvm.org/HowTo:_Insert_a_function_call
>
> My question is, what do I pass as the argument type for P above? The
> following seems to work, as long as there are no floating point ops:
I...