aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-14 05:34:15 +0000
committerChris Lattner <sabre@nondot.org>2005-05-14 05:34:15 +0000
commit38135af219c48a8626d6af34a92e7e8bb957c81f (patch)
tree3abc90b90f8cb8654fcb59ab57ec12745fb38f79 /include/llvm/CodeGen
parenta88a260dbd874a3bdd3e47f4f15ab0d7c7803044 (diff)
downloadexternal_llvm-38135af219c48a8626d6af34a92e7e8bb957c81f.zip
external_llvm-38135af219c48a8626d6af34a92e7e8bb957c81f.tar.gz
external_llvm-38135af219c48a8626d6af34a92e7e8bb957c81f.tar.bz2
Print the symbolic register name in a register allocator debug dump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index d67e018..6cac096 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -26,6 +26,8 @@
#include <cassert>
namespace llvm {
+ class MRegisterInfo;
+
/// LiveRange structure - This represents a simple register range in the
/// program, with an inclusive start point and an exclusive end point.
/// These ranges are rendered as [start,end).
@@ -175,6 +177,7 @@ namespace llvm {
return beginNumber() < other.beginNumber();
}
+ void print(std::ostream &OS, const MRegisterInfo *MRI = 0) const;
void dump() const;
private:
@@ -185,7 +188,10 @@ namespace llvm {
LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT
};
- std::ostream& operator<<(std::ostream& os, const LiveInterval& li);
+ inline std::ostream &operator<<(std::ostream &OS, const LiveInterval &LI) {
+ LI.print(OS);
+ return OS;
+ }
}
#endif