<div dir="ltr">You shouldn't rely on that, its an implementation detail.  Instead, you can trace back to the original Function object and check for kernel metadata.  See <a href="http://llvm.org/docs/NVPTXUsage.html#marking-functions-as-kernels">http://llvm.org/docs/NVPTXUsage.html#marking-functions-as-kernels</a><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 11:09 AM, Antony Yu <span dir="ltr"><<a href="mailto:swpenim@gmail.com" target="_blank">swpenim@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oops! No need of Call Graph!<br>
In fact, what I want to do is to find which function is the kernel function<br>
and which function is called by that kernel. Since OpenCL will make all<br>
functions called by kernels inline, I can use function attribute: Noinline<br>
to distinguish them.<br>
<br>
Sorry for bothering you.<br>
<br>
Antony Yu<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://llvm.1065342.n5.nabble.com/About-writing-a-modulePass-in-addPreEmitPass-for-NVPTX-tp58701p58839.html" target="_blank">http://llvm.1065342.n5.nabble.com/About-writing-a-modulePass-in-addPreEmitPass-for-NVPTX-tp58701p58839.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the LLVM - Dev mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div>
</div>