<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>Is there a simple way to insert printf calls into the IR to print an LLVM Value at run time?<br></div>I am looking for something like <a href="https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_15/lib/Transforms/Instrumentation/TraceValues.cpp">TraceValues</a> that has long been deprecated.<br><br></div>Such a utility would be useful when writing/debugging transformation passes. To see if a Value contains the <i>value</i> we expect it to at run time, we could add a call to printf, that prints the value.<br></div>Would writing such a utility be useful to the community?<br><br></div>Thanks,<br><div><div><div><div><div><br clear="all"><div><div><div><div><div><div class="gmail_signature"><div dir="ltr">  - Vaivaswatha<br></div></div></div>
</div></div></div></div></div></div></div></div></div></div>