<div dir="ltr"><div>Hi,<br></div><div><br></div><div>I am using “llvm/ADT/Statistic.h" for recording the iteration number of a pass. However, instead of printing them with "opt -stat..." command line, I need these information from within the application. How can I do this?</div><div> <br></div><div>For example, if I have: </div><div><i>STATISTIC ( HelloCounter, “Counts number of functions greeted” ) </i><br>in my pass Hello.cpp, how can I retrieve the HelloCouner from other source files? Thank you. <br clear="all"></div><div><div><div class="gmail_signature"><br>Zhoulai</div></div>
</div>
</div>