<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Rail,<br>
<br>
This is a bitfield, each bit represents one functional unit. Unit
0 would be the LSB (1 << 0), unit 1 one bit above LSB (1
<< 1), and so on until unit N (1 << N). For example a
return value of 9 means that units 0 and 3 are used.<br>
<br>
Cheers,<br>
Pierre-Andre<br>
<br>
On 04/12/15 22:20, Rail Shafigulin via llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CAOLNbFbLTBGiD6--Va5TUPQ=Qnq7S1yL7+ERyQd+PijeACVw-g@mail.gmail.com"
type="cite">
<div dir="ltr">Here is the <a moz-do-not-send="true"
href="https://github.com/llvm-mirror/llvm/blob/c68dcdb413079d92118839dbd835e125293f411a/include/llvm/MC/MCInstrItineraries.h#L75">code</a>
for InstrStage::getUnits()<br>
<br>
/// \brief Returns the choice of FUs.<br>
<span class="">unsigned</span> <span class="">getUnits</span>()
<span class="">const</span> { <span class="">return</span>
Units_; }<br clear="all">
<div><br>
</div>
<div>This method returns an integer. How does one interpret it?
As far as I see it it should tell me what resources are used
by a given stage but I can't figure out what a return value
means. Would anyone care to help?<br>
<br>
</div>
<div>Thanks,<br>
<br>
</div>
<div>-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Rail Shafigulin<br>
</div>
Software Engineer <br>
Esencia Technologies<br>
</div>
</div>
</div>
</div>
</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>
</body>
</html>