From 5c98b60ecc5580e53e191cbe6c7a11bf139687cb Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Fri, 29 Jul 2016 16:56:12 +0000 Subject: [PATCH] [GlobalISel] Add LLT raw_ostream operator<< overload. Helpful when debugging; will be used in the following commit. llvm-svn: 277170 --- llvm/include/llvm/CodeGen/LowLevelType.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/CodeGen/LowLevelType.h b/llvm/include/llvm/CodeGen/LowLevelType.h index 5fb361ee57fa..4d21a150c7fb 100644 --- a/llvm/include/llvm/CodeGen/LowLevelType.h +++ b/llvm/include/llvm/CodeGen/LowLevelType.h @@ -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 { static inline LLT getEmptyKey() { return LLT{LLT::Invalid, 0, -1u};