[LLVMdev] Re: Indirect function call
Nai Xia
nelson.xia at gmail.com
Sun May 21 07:40:54 PDT 2006
Sorry, again for my noise. :(
The paper -- "The LLVM Instruction Set and Compilation Strategy" thoroughly discussed the issue
although not mentioned in details in "Ref Manual".
On Sunday 21 May 2006 12:21, Nai Xia wrote:
> 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