[GlobalISel] Add LLT raw_ostream operator<< overload.

Helpful when debugging; will be used in the following commit.

llvm-svn: 277170
This commit is contained in:
Ahmed Bougacha 2016-07-29 16:56:12 +00:00
parent 254f889dc5
commit 5c98b60ecc
1 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,11 @@ private:
TypeKind Kind;
};
inline raw_ostream& operator<<(raw_ostream &OS, const LLT &Ty) {
Ty.print(OS);
return OS;
}
template<> struct DenseMapInfo<LLT> {
static inline LLT getEmptyKey() {
return LLT{LLT::Invalid, 0, -1u};