[LLVMdev] Indirect function call
Nai Xia
nelson.xia at gmail.com
Sat May 20 21:21:25 PDT 2006
Hi,
The "LLVM Language Reference Manual" mentions about "indirect function call".
I am just curious about what exactly is the __syntax__ of them and how I can
get the callee of an indirect callsite.
>From my point of view, there is hardly any cases where indirect calls are
needed, because anywhere we use a "fptr" in C, it could just be represented
in LLVM IR like this:
%tmp = load void ()** %fptr
call void ()* %tmp( )
So what is indirect call used for?
--
Regards,
Nai
More information about the llvm-dev
mailing list