<div dir="ltr">Thanks all for replying! I'll try the CostModel class first. <div><br></div><div>Jingyue</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 3:47 AM, Jonas Wagner <span dir="ltr"><<a href="mailto:jonas.wagner@epfl.ch" target="_blank">jonas.wagner@epfl.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>3. CostModel::getInstructionCost::getInstructionCost in lib/Analysis/CostModel.cpp</div></div></blockquote><div><br></div></span><div>I've been using the CostModel class in a project, and it has worked quite well. I don't have very high requirements on precision, though.</div><div><br></div><div>Note that in order to use it, you'll probably have to create a public header file for the class. This thread here has some more details on this: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/thread.html#74836" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/thread.html#74836</a></div><div><br></div><div>Cheers,</div><div>Jonas</div></div></div></div>
</blockquote></div><br></div>