<meta http-equiv="content-type" content="text/html; charset=utf-8">"float (i32)* (float (i32)*)*" is not a return type.<div>According to the description of the 'call' instruction in LLVM Assembly Language Reference Manual (<a href="http://llvm.org/docs/LangRef.html#i_call">http://llvm.org/docs/LangRef.html#i_call</a>) this is <span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">a signature of the pointer to function value being invoked (which includes the return type). In your case the full signature is printed because get_ptr returns a pointer to function (read item 5 in the Arguments section of the 'call' Instruction section).</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">Victor</span></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; font-size: medium;"><br></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></span></font></div><div><div class="gmail_quote">On 12 April 2010 16:58, SHEN Hao <span dir="ltr"><<a href="mailto:hao.shen@imag.fr">hao.shen@imag.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm sorry that I should remove the comment.<br>
<br>
In fact my question is about the "float (i32)* (float (i32)*)*", why<br>
we use this kind of return type instead of just "float (i32)*".<br>
<br>
Thanks a lot.<br>
Hao<br>
<br>
On Mon, Apr 12, 2010 at 5:42 PM, Duncan Sands <<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>> wrote:<br>
> Hi Hao Shen,<br>
><br>
>> %4 = call float (i32)* (float (i32)*)* @get_ptr(float (i32)* @a1)<br>
>> nounwind ;<float (i32)*> [#uses=1]<br>
>> ~~~~~~~~~~~~~~~~~~~~ VERY STRANGE RETURN TYPE !!!<br>
><br>
> this is a comment, and only exists to help the human reader. Comments<br>
> start with a semi-colon (;). You can remove them if you like.<br>
><br>
> Ciao,<br>
><br>
> Duncan.<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Hao Shen<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</font></blockquote></div><br></div>