From c9b195c22fd70413502b25c821d8e7f15ec845c2 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277170 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LowLevelType.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/CodeGen/LowLevelType.h b/include/llvm/CodeGen/LowLevelType.h index 5fb361ee57f..4d21a150c7f 100644 --- a/include/llvm/CodeGen/LowLevelType.h +++ b/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}; -- 2.11.0