<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Rail,<br>
<br>
Can you clarify what you mean by "processor resource?" Are you
talking about architecture-visible state (like registers) or
micro-architecture state (like ALUs) that are typically not
visible at the ISA-level?<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
On 10/19/15 2:58 PM, Rail Shafigulin via llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CAOLNbFZtmO-Mh+rKPNhoxv6=DpnNjzKM0iagS=m=vGU9DfiMxA@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">I'm trying to figure out if there is a way to
figure out what processor resource is used by which instruction
during scheduling. This is purely for debugging purposes. Since
I'm somewhat new to LLVM it is a bit difficult for me to figure
this out.
<div><br>
</div>
<div>Initial idea was to insert comments in the generated
assembly which would tell me what what resource is used.
MachineInstr has a uint8_t AsmPrinterFlags, which I want to
use to pass information from the scheduler to AsmPrinter about
which resource is used. I've asked on the IRC channel how to
do it but nobody seems to know. A scheduling debug log was
also mentioned (supposedly it should provide me with the same
information) but I don't know how to generate one.</div>
<div><br>
</div>
<div>I'd appreciate any help on the issue.</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>
<br>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>