<div dir="ltr"><div><div><div><div>Thank you for your swift reply.<br><br></div>I also need some reference about instruction sequence in llvm. I mean, do the order of instructions remain the same as they appear in a .ll file? or do they change by different optimizations (e.g. <a class="" href="http://llvm.org/docs/CodeGenerator.html#ssa-based-machine-code-optimizations">SSA-based Machine Code Optimizations</a>, <a class="" href="http://llvm.org/docs/CodeGenerator.html#late-machine-code-optimizations">Late Machine Code Optimizations</a>, etc.)? <br><br>If they change, which algorithms are used for reordering instructions? I appreciate a reference that explains them or just gives the name of the algorithms that are used.<br></div><br></div>BR<br></div>Laura<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 6:45 PM, John Criswell <span dir="ltr"><<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 2/18/16 12:03 PM, Laura personen via
llvm-dev wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
Is there any way to detect which virtual registers are
assigned to physical registers and which ones are assigned
to memory slots?<br>
</div>
</div>
</div>
</blockquote>
<br></span>
At the LLVM IR level, no. However, it might be possible for a
MachineFunctionPass to determine this or to modify the register
allocator to record this information somewhere for query by a
MachineFunctionPass later.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
BR<br>
</div>
Laura<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
LLVM Developers mailing list
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a href="http://www.cs.rochester.edu/u/criswell" target="_blank">http://www.cs.rochester.edu/u/criswell</a></pre>
</font></span></div>
</blockquote></div><br></div>