From f1d70c8bbea1b273d661f53e4c6ab0057e69aefe Mon Sep 17 00:00:00 2001 From: Vladimir Canic Date: Thu, 30 Jan 2025 09:58:56 +0000 Subject: [PATCH] Enable printing of debug info in TTIR --- forge/csrc/passes/lower_to_mlir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/forge/csrc/passes/lower_to_mlir.cpp b/forge/csrc/passes/lower_to_mlir.cpp index 64b814dc7..9f0f372cb 100644 --- a/forge/csrc/passes/lower_to_mlir.cpp +++ b/forge/csrc/passes/lower_to_mlir.cpp @@ -167,7 +167,6 @@ class MLIRGenerator // save what's dumped to a file named "{file_name}.mlir" reportify::dump_mlir("ttir", graphModule_.getNameAttr().getValue().str(), graphModule_.getOperation()); -#ifdef DEBUG // Create a string to store the output std::string moduleStr; llvm::raw_string_ostream rso(moduleStr); @@ -179,8 +178,7 @@ class MLIRGenerator rso.flush(); - log_trace(LogMLIRCompiler, "MLIR module after lowering ForgeGraphModule:\n{}", moduleStr); -#endif + log_debug(LogMLIRCompiler, "MLIR module after lowering ForgeGraphModule:\n{}", moduleStr); return graphModule_; }