Introduce -print-before-changed, making -print-changed also print before passes that...
authorJamie Schmeiser <schmeise@ca.ibm.com>
Thu, 12 Nov 2020 15:20:46 +0000 (15:20 +0000)
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>
Thu, 12 Nov 2020 15:20:50 +0000 (15:20 +0000)
commit782d6a6963c107b47e65e8611e09c19dc865bbbe
tree0d96af9555d354bcac7f182d85eacedaa18d3788
parentd85cc03c9c4cc44c0281320558abc440575ae1d4
Introduce -print-before-changed, making -print-changed also print before passes that modify IR

Summary:
Add an option -print-before-changed that modifies the print-changed
behaviour so that it prints the IR before a pass that changed it in
addition to printing the IR after the pass. Note that the option
does nothing in isolation. The filtering options work as expected.
Lit tests are included.

Author: Jamie Schmeiser <schmeise@ca.ibm.com>

Reviewed By: aeubanks (Arthur Eubanks)

Differential Revision: https://reviews.llvm.org/D88757
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/change-printer.ll