summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2018-12-12 23:48:13 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2018-12-12 23:48:13 +0000
commitd001e0e0f47c4f53f4212b49f24cffb1bb4904dd (patch)
tree8c90ed99591a122a1a22a6ecd283131c56c4a8c8 /llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
parent25b56024aa369df85e9c0d986ace6a5bac164664 (diff)
downloadbcm5719-llvm-d001e0e0f47c4f53f4212b49f24cffb1bb4904dd.tar.gz
bcm5719-llvm-d001e0e0f47c4f53f4212b49f24cffb1bb4904dd.zip
[globalisel] Add GISelChangeObserver::changingInstr()
Summary: In addition to knowing that an instruction is changed. It's also useful to know when it's about to change. For example, it might print the instruction so you can track the changes in a debug log, it might remove it from some queue while it's being worked on, or it might want to change several instructions as a single transaction and act on all the changes at once. Added changingInstr() to all existing uses of changedInstr() Reviewers: aditya_nandakumar Reviewed By: aditya_nandakumar Subscribers: rovka, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D55623 llvm-svn: 348992
Diffstat (limited to 'llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp b/llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
index 56cf45e07d3..38fb58e0de4 100644
--- a/llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
+++ b/llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
@@ -13,6 +13,7 @@ namespace {
class DummyGISelObserver : public GISelChangeObserver {
public:
+ void changingInstr(MachineInstr &MI) override {}
void changedInstr(MachineInstr &MI) override {}
void createdInstr(MachineInstr &MI) override {}
void erasingInstr(MachineInstr &MI) override {}
OpenPOWER on IntegriCloud