<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I believe so, though I am not expert in this field. :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-09 20:41 GMT+08:00 Rick Veens via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm interested in obtaining the cycles spend by the CPU from LLVM and i was wondering if this was possible to obtain this with the scheduling information from LLVM. (For the cortex-m0 in particular).</div><div><br></div><div>I found the following function : <span style="font-size:12.8px">getInstrLatency() in the </span><span style="font-size:12.8px">TargetInstrInfo class.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If i sum the latencies of the instructions in a basic block i suppose i will get the total cycle cost for  the cortex-m0.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">From what i understand is that there are multiple ways of doing scheduling in LLVM. </span></div><div><span style="font-size:12.8px">I have read about one way which is using Itenaries and another which is using SchedMachineModel.</span></div><div><br></div><div>Will the above function always give me the latencies, independent on the scheduling method used ?</div><div><br></div><div>Sorry if this is a stupid question, i'm a beginner to LLVM.</div><div><br></div><div>Best regards,</div><div><br></div><div>Rick Veens</div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div>