[NFC] Add raw_ostream parameter to printIR routines
authorJamie Schmeiser <schmeise@ca.ibm.com>
Tue, 18 Aug 2020 16:05:20 +0000 (16:05 +0000)
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>
Tue, 18 Aug 2020 16:05:27 +0000 (16:05 +0000)
commit645c6856a68af9b9dd7d918f630560cf07462ed7
tree988edab2d2262b5652884407e61e1b25ebc52994
parentec29538af2e0886a65f479d6a533956a1c478132
[NFC] Add raw_ostream parameter to printIR routines

This is a non-functional-change to generalize the printIR routines so that
the output can be saved and manipulated rather than being directly output
to dbgs(). This is a prerequisite change for many upcoming changes that
allow new ways of examining changes made to the IR in the new pass manager.

Reviewed By: aeubanks (Arthur Eubanks)

Differential Revision: https://reviews.llvm.org/D85999
llvm/lib/Passes/StandardInstrumentations.cpp