summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-14 18:53:39 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-14 18:53:39 +0000
commit414e5023f8f8b22486313e2867fdb39c7c4f564b (patch)
tree794eb26f0296290687107f563baafc956e1fb08d /include
parent475002078848d102b6577fe7283464c039b38af6 (diff)
downloadllvm-414e5023f8f8b22486313e2867fdb39c7c4f564b.tar.gz
llvm-414e5023f8f8b22486313e2867fdb39c7c4f564b.tar.bz2
llvm-414e5023f8f8b22486313e2867fdb39c7c4f564b.tar.xz
Add TargetRegisterInfo::printReg() to pretty-print registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 9caedcb506..5af90fbf8c 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -29,6 +29,7 @@ class MachineFunction;
class MachineMove;
class RegScavenger;
template<class T> class SmallVectorImpl;
+class raw_ostream;
/// TargetRegisterDesc - This record contains all of the information known about
/// a particular register. The AliasSet field (if not null) contains a pointer
@@ -321,6 +322,9 @@ public:
return Reg >= FirstVirtualRegister;
}
+ /// printReg - Print a virtual or physical register on OS.
+ void printReg(unsigned Reg, raw_ostream &OS) const;
+
/// getMinimalPhysRegClass - Returns the Register Class of a physical
/// register of the given type, picking the most sub register class of
/// the right type that contains this physreg.