Vaivaswatha Nagaraj via llvm-dev
2015-Sep-15 13:34 UTC
[llvm-dev] Instrumenting IR being transformed for debugging
Hi, Is there a simple way to insert printf calls into the IR to print an LLVM Value at run time? I am looking for something like TraceValues <https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_15/lib/Transforms/Instrumentation/TraceValues.cpp> that has long been deprecated. Such a utility would be useful when writing/debugging transformation passes. To see if a Value contains the *value* we expect it to at run time, we could add a call to printf, that prints the value. Would writing such a utility be useful to the community? Thanks, - Vaivaswatha -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150915/395a7ec5/attachment.html>