<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Adding openmp-dev list.</div><div><br>30 июля 2016 г., в 5:09, Dounia Khaldi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> написал(а):<br><br></div><blockquote type="cite"><div><div dir="ltr">Hello,<div><br></div><div>The third argument of the OpenMP runtime call __kmpc_fork_call is the outlined function resulting from omp parallel directive; this is of type kmpc_micro. I can get this argument as an LLVM value by using (callInst->getArgOperand...), but once I get this value, i am stuck in knowing its class type. An example of this value can be: </div><div>void (i32*, i32*, ...)* bitcast (void (i32*, i32*, double**, double**, double**, double**, double**, double*, i32*, double*, double*, i32**, double**, i32**, double*)* @.omp_outlined..45 to void (i32*, i32*, ...)*)</div><div><br></div><div>I tried bitcast instruction, instruction, function call and did not work.</div><div><br></div><div><br></div><div>Is there a clean way (other than manipulating strings) to get the defintion of the outlined function from the call __kmpc_fork_call? By clean I mean where I can manipulate IR and LLVM methods (and not compare strings). </div><div><br></div><div><br></div><div>Thanks in advance for any help,</div><div><br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:small">Dounia KHALDI</span><br></div><div dir="ltr"><span style="font-size:small">Research Assistant Professor</span><br style="font-size:small"><div style="font-size:12.8px"><font color="#000000">Institute for Advanced Computational Science</font></div><div style="font-size:12.8px"><font color="#000000"><span style="font-size:12.8px">Stony Brook University</span><br></font></div><div style="font-size:12.8px"><font color="#000000">Stony Brook, NY 11794-5250</font></div><div style="font-size:12.8px"><font color="#000000" style="color:rgb(17,85,204);font-size:12.8px"><a href="http://www.iacs.stonybrook.edu/" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.iacs.stonybrook.edu</a></font><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>LLVM Developers mailing list</span><br><span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></div></blockquote></body></html>