summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-07-29 16:56:12 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-07-29 16:56:12 +0000
commit5c98b60ecc5580e53e191cbe6c7a11bf139687cb (patch)
tree3bb72477286eb5b469fc17657c2360633b71ecc2 /llvm
parent254f889dc54672f6765791078a5c22a71e2b7cb3 (diff)
downloadbcm5719-llvm-5c98b60ecc5580e53e191cbe6c7a11bf139687cb.tar.gz
bcm5719-llvm-5c98b60ecc5580e53e191cbe6c7a11bf139687cb.zip
[GlobalISel] Add LLT raw_ostream operator<< overload.
Helpful when debugging; will be used in the following commit. llvm-svn: 277170
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/LowLevelType.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/LowLevelType.h b/llvm/include/llvm/CodeGen/LowLevelType.h
index 5fb361ee57f..4d21a150c7f 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<LLT> {
static inline LLT getEmptyKey() {
return LLT{LLT::Invalid, 0, -1u};
OpenPOWER on IntegriCloud