[Mlir-commits] [llvm] [mlir] [MLIR] Add debug log to the pass manager (NFC) (PR #156205)
Jacques Pienaar
llvmlistbot at llvm.org
Tue Sep 2 23:56:42 PDT 2025
================
@@ -76,6 +76,13 @@ namespace llvm {
#define __LLVM_FILE_NAME__ ::llvm::impl::getShortFileName(__FILE__)
#endif
+#define LDBG_OS(name, LEVEL) \
----------------
jpienaar wrote:
The name is a bit confusing as it could also have been seen as debug type one. Could it be done so that it is inline? (and given inheritance, they could just assign to variable). Then the below could become
printAsTextualPipeline(LDBG_OS(1), /*pretty=*/false));
and
raw_ostream& os = LDBG_OS(type, level); ?
https://github.com/llvm/llvm-project/pull/156205
More information about the Mlir-commits
mailing list