diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-28 19:05:43 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-28 19:05:43 +0000 |
commit | f429a0e6dd95209106fa726f073dbb06e0b91ac1 (patch) | |
tree | 1dbeafeded63ad5859de545df6e3d3141d68a69d /llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h | |
parent | 9412b70a4cbe16bcab46ee22f553ebd711e9d62f (diff) | |
download | bcm5719-llvm-f429a0e6dd95209106fa726f073dbb06e0b91ac1.tar.gz bcm5719-llvm-f429a0e6dd95209106fa726f073dbb06e0b91ac1.zip |
Add a new (static inline) std::ostream& << AllocInfo& method. Use it.
llvm-svn: 11002
Diffstat (limited to 'llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h')
-rw-r--r-- | llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h b/llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h index 67f58a7ed04..b4407523c4c 100644 --- a/llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h +++ b/llvm/lib/Target/Sparc/RegAlloc/AllocInfo.h @@ -79,6 +79,13 @@ struct AllocInfo { } }; +static inline std::ostream &operator << (std::ostream &OS, AllocInfo &S) { + OS << "(Instruction " << S.Instruction << " Operand " << S.Operand + << " AllocState " << S.allocStateToString () << " Placement " + << S.Placement << ")"; + return OS; +} + } // End llvm namespace #endif // ALLOCINFO_H |