[Mlir-commits] [mlir] ad38f40 - [mlir] Switch debugString helper to << operator
Jacques Pienaar
llvmlistbot at llvm.org
Fri Apr 1 16:33:41 PDT 2022
Author: Jacques Pienaar
Date: 2022-04-01T16:33:35-07:00
New Revision: ad38f409f99d4db656658ecd26d731714a67a80a
URL: https://github.com/llvm/llvm-project/commit/ad38f409f99d4db656658ecd26d731714a67a80a
DIFF: https://github.com/llvm/llvm-project/commit/ad38f409f99d4db656658ecd26d731714a67a80a.diff
LOG: [mlir] Switch debugString helper to << operator
Supports more cases.
Added:
Modified:
mlir/include/mlir/Support/DebugStringHelper.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Support/DebugStringHelper.h b/mlir/include/mlir/Support/DebugStringHelper.h
index fffc2e3be0aaf..43db6fd9fd2fc 100644
--- a/mlir/include/mlir/Support/DebugStringHelper.h
+++ b/mlir/include/mlir/Support/DebugStringHelper.h
@@ -28,7 +28,7 @@ template <typename T>
static std::string debugString(T &&op) {
std::string instrStr;
llvm::raw_string_ostream os(instrStr);
- op.print(os);
+ os << op;
return os.str();
}
More information about the Mlir-commits
mailing list