<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 07/31/2017 02:31 PM, Matt Arsenault
wrote:<br>
</div>
<blockquote
cite="mid:BEDF6830-D467-473F-ABA4-772069586A3E@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 24, 2017, at 14:00, Matt Arsenault <<a
moz-do-not-send="true" href="mailto:arsenm2@gmail.com"
class="">arsenm2@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<blockquote type="cite" class="">
<div class=""><br class="Apple-interchange-newline">
On Jul 24, 2017, at 13:52, Hal Finkel via llvm-dev
<<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="moz-cite-prefix" style="font-family:
Helvetica; font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);"><br
class="Apple-interchange-newline">
On 06/13/2017 12:46 PM, Arsenault, Matthew via
llvm-dev wrote:<br class="">
</div>
<blockquote
cite="mid:CY1PR12MB04127D470286604436A5C27EE2C20@CY1PR12MB0412.namprd12.prod.outlook.com"
type="cite" class="" style="font-family: Helvetica;
font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<div id="divtagdefaultwrapper" dir="ltr" class=""
style="font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif;">
<div class="" style="margin-top: 0px;
margin-bottom: 0px;"><span class=""
style="font-size: 12pt;">Hi,</span><br
class="">
</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;"><br class="">
</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;">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.</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;"><br class="">
</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;">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.</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;"><br class="">
</div>
<div class="" style="margin-top: 0px;
margin-bottom: 0px;">The laziest option would be
to stash the pointer to the analysis in the
TargetMachine <span class="" 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></div>
</div>
</blockquote>
<br class="" style="font-family: Helvetica; font-size:
12px; font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<span class="" style="font-family: Helvetica;
font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255); float: none; display: inline
!important;">With the legacy pass manager, are you
planning to schedule the analysis pass manually and
then use getAnalysisIfAvailable?</span><br class=""
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<br class="" style="font-family: Helvetica; font-size:
12px; font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<span class="" style="font-family: Helvetica;
font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255); float: none; display: inline
!important;">Thanks again,</span><br class=""
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<span class="" style="font-family: Helvetica;
font-size: 12px; font-style: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255); float: none; display: inline
!important;">Hal</span><br class=""
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
<br class="" style="font-family: Helvetica; font-size:
12px; font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);">
</div>
</blockquote>
<br class="">
</div>
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">I didn’t need to
do anything special. addRequired/getAnalysis work.</div>
</div>
</blockquote>
</div>
</blockquote>
<br>
Did you add INITIALIZE_PASS_DEPENDENCY somewhere?<br>
<br>
-Hal<br>
<br>
<blockquote
cite="mid:BEDF6830-D467-473F-ABA4-772069586A3E@gmail.com"
type="cite">
<div>
<blockquote type="cite" class="">
<div class="">
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class=""><br class="">
</div>
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">-Matt</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">ping</div>
</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>