<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<div class="moz-cite-prefix">On 06/13/2017 12:46 PM, Arsenault,
Matthew via llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CY1PR12MB04127D470286604436A5C27EE2C20@CY1PR12MB0412.namprd12.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p><span style="font-size: 12pt;">Hi,</span><br>
</p>
<p><br>
</p>
<p>I want to be able to access a custom analysis pass during
call lowering, but there isn't a way to access this now and
I'm not sure the least bad way to thread this information into
the DAG.</p>
<p><br>
</p>
<p>I want to be able to use knowledge of the callee function to
change the lowering of a call. Since AMDGPUDAGToDAGISel is
ultimately a normal MachineFunction pass, I'm able to get the
interprocedural analysis pass there but don't have a way to
pass this into the call lowering where it's actually needed.</p>
<p><br>
</p>
<p>The laziest option would be to stash the pointer to the
analysis in the TargetMachine <span style="font-size: 12pt;">and
get it from there, but is probably not the best idea.
Another option might be to store a pointer to the
SelectionDAGISel pass in SelectionDAG, so then there's a way
to access the pass to get analysis directly. Is there
another option?</span></p>
</div>
</blockquote>
<br>
With the legacy pass manager, are you planning to schedule the
analysis pass manually and then use getAnalysisIfAvailable?<br>
<br>
Thanks again,<br>
Hal<br>
<br>
<blockquote
cite="mid:CY1PR12MB04127D470286604436A5C27EE2C20@CY1PR12MB0412.namprd12.prod.outlook.com"
type="cite">
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p><br>
</p>
<p>-Matt</p>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</body>
</html>