[llvm] 1aca589 - GlobalISel: Add dump method to LLT
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 07:16:09 PDT 2020
Author: Matt Arsenault
Date: 2020-06-08T10:15:53-04:00
New Revision: 1aca589c06569840650a7d04d500a311640f91ae
URL: https://github.com/llvm/llvm-project/commit/1aca589c06569840650a7d04d500a311640f91ae
DIFF: https://github.com/llvm/llvm-project/commit/1aca589c06569840650a7d04d500a311640f91ae.diff
LOG: GlobalISel: Add dump method to LLT
Added:
Modified:
llvm/include/llvm/Support/LowLevelTypeImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/LowLevelTypeImpl.h b/llvm/include/llvm/Support/LowLevelTypeImpl.h
index a9aea17d3c00..6959957cfc37 100644
--- a/llvm/include/llvm/Support/LowLevelTypeImpl.h
+++ b/llvm/include/llvm/Support/LowLevelTypeImpl.h
@@ -194,6 +194,13 @@ class LLT {
void print(raw_ostream &OS) const;
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ LLVM_DUMP_METHOD void dump() const {
+ print(dbgs());
+ dbgs() << '\n';
+ }
+#endif
+
bool operator==(const LLT &RHS) const {
return IsPointer == RHS.IsPointer && IsVector == RHS.IsVector &&
RHS.RawData == RawData;
More information about the llvm-commits
mailing list