[MachineInstr] Add a dumpr method
authorQuentin Colombet <qcolombet@apple.com>
Tue, 25 Feb 2020 01:30:58 +0000 (17:30 -0800)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 25 Feb 2020 18:46:29 +0000 (10:46 -0800)
commita12f1d6a52a195831da8f38eece08f271e2aa31b
tree0c05a585784c288ee61d64c3b2cff77a5343f666
parenteb1c040b413a3542a7a6db2cae0d0d7bc2728a95
[MachineInstr] Add a dumpr method

Add a dump method that recursively prints an instruction and all
the instructions defining its operands and so on.

This is helpful when looking at combiner issue.

NFC

Differential Revision: https://reviews.llvm.org/D75094
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineInstr.cpp