diff options
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 |