[PATCH] D87000: Add a new hidden option -print-changes that reports in a patch-like notation when a pass actually changes the IR.

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 13:42:30 PDT 2020


jamieschmeiser updated this revision to Diff 290020.
jamieschmeiser added a comment.

This is an update based on changes that have been made to the code in the review
for https://reviews.llvm.org/D86360.  I have moved much of the code and templates into
a new header and body files as it is becoming more complex.  I have also changed
some of the class names from being "change printer" based to "change reporter"
based because it doesn't imply how the changes are shown (ie, the changes do not
necessarily need to be printed).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87000/new/

https://reviews.llvm.org/D87000

Files:
  llvm/include/llvm/IR/ChangeReporters.h
  llvm/include/llvm/Passes/StandardInstrumentations.h
  llvm/lib/IR/CMakeLists.txt
  llvm/lib/IR/ChangeReporters.cpp
  llvm/lib/Passes/StandardInstrumentations.cpp
  llvm/test/Other/change-printer.ll
  llvm/test/Other/change-reporters.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87000.290020.patch
Type: text/x-patch
Size: 78611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200904/c26aa308/attachment-0001.bin>


More information about the llvm-commits mailing list