summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/InfoByHwMode.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/InfoByHwMode.h')
-rw-r--r--llvm/utils/TableGen/InfoByHwMode.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/InfoByHwMode.h b/llvm/utils/TableGen/InfoByHwMode.h
index 57640fc3025..b2e21749888 100644
--- a/llvm/utils/TableGen/InfoByHwMode.h
+++ b/llvm/utils/TableGen/InfoByHwMode.h
@@ -27,6 +27,7 @@ namespace llvm {
struct CodeGenHwModes;
class Record;
+class raw_ostream;
template <typename InfoT> struct InfoByHwMode;
@@ -130,7 +131,7 @@ struct ValueTypeByHwMode : public InfoByHwMode<MVT> {
MVT &getOrCreateTypeForMode(unsigned Mode, MVT Type);
static StringRef getMVTName(MVT T);
- std::string getAsString() const;
+ void writeToStream(raw_ostream &OS) const;
void dump() const;
};
@@ -154,7 +155,7 @@ struct RegSizeInfo {
}
bool isSubClassOf(const RegSizeInfo &I) const;
- std::string getAsString() const;
+ void writeToStream(raw_ostream &OS) const;
};
struct RegSizeInfoByHwMode : public InfoByHwMode<RegSizeInfo> {
@@ -169,8 +170,13 @@ struct RegSizeInfoByHwMode : public InfoByHwMode<RegSizeInfo> {
bool isSubClassOf(const RegSizeInfoByHwMode &I) const;
bool hasStricterSpillThan(const RegSizeInfoByHwMode &I) const;
- std::string getAsString() const;
+ void writeToStream(raw_ostream &OS) const;
};
+
+raw_ostream &operator<<(raw_ostream &OS, const ValueTypeByHwMode &T);
+raw_ostream &operator<<(raw_ostream &OS, const RegSizeInfo &T);
+raw_ostream &operator<<(raw_ostream &OS, const RegSizeInfoByHwMode &T);
+
} // namespace llvm
#endif // LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H
OpenPOWER on IntegriCloud