diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-19 21:40:57 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-19 21:40:57 +0000 |
commit | a58d67af29d38fa37c94f59af37db9df75f349be (patch) | |
tree | 30ea432cb458fd82196ccdbae9ac8c5d717340cb /include/llvm | |
parent | 03494e05e8aa1b919b5a8a6277d7ffec5d1bfbb5 (diff) | |
download | external_llvm-a58d67af29d38fa37c94f59af37db9df75f349be.zip external_llvm-a58d67af29d38fa37c94f59af37db9df75f349be.tar.gz external_llvm-a58d67af29d38fa37c94f59af37db9df75f349be.tar.bz2 |
Add an MRI::verifyUseLists() function.
This checks the sanity of the register use lists in the MI intermediate
representation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index 4b43cc1..24ba7bb 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -157,6 +157,12 @@ public: // Strictly for use by MachineInstr.cpp. void moveOperands(MachineOperand *Dst, MachineOperand *Src, unsigned NumOps); + /// Verify the sanity of the use list for Reg. + void verifyUseList(unsigned Reg) const; + + /// Verify the use list of all registers. + void verifyUseLists() const; + /// reg_begin/reg_end - Provide iteration support to walk over all definitions /// and uses of a register within the MachineFunction that corresponds to this /// MachineRegisterInfo object. |