From 91d60977acfc8b8c7077da4250c446f57373ee77 Mon Sep 17 00:00:00 2001 From: vkovinicTT Date: Tue, 12 Nov 2024 14:49:59 +0000 Subject: [PATCH] trimmed white spaces --- forge/csrc/passes/mlir_compiler.cpp | 2 +- forge/csrc/reportify/reportify.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/forge/csrc/passes/mlir_compiler.cpp b/forge/csrc/passes/mlir_compiler.cpp index fdaf1c9d..cfaa127f 100644 --- a/forge/csrc/passes/mlir_compiler.cpp +++ b/forge/csrc/passes/mlir_compiler.cpp @@ -77,7 +77,7 @@ runtime::Binary run_mlir_compiler(tt::ForgeGraphModule& module) mlir_module->dump(); // save what's dumped to a file named "{name}.mlir" - reportify::dump_mlir("ttnn", mlir_module->getName()->str(), mlir_module.get()); + reportify::dump_mlir("ttnn", mlir_module->getName()->str(), mlir_module.get()); // Generate binary from the MLIR module. auto binary = mlir::tt::ttnn::ttnnToFlatbuffer(mlir_module.get()); diff --git a/forge/csrc/reportify/reportify.cpp b/forge/csrc/reportify/reportify.cpp index a73a692f..21386bea 100644 --- a/forge/csrc/reportify/reportify.cpp +++ b/forge/csrc/reportify/reportify.cpp @@ -437,7 +437,8 @@ JsonNamePairs create_jsons_for_graph( return this_json_name_pairs; } -JsonNamePairs create_jsons_for_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation) +JsonNamePairs create_jsons_for_mlir( + const std::string& file_name, const std::string& module_name, mlir::Operation* operation) { JsonNamePairs this_json_name_pairs; @@ -464,12 +465,13 @@ void dump_graph( * * This function generates a JSON representation of the given MLIR operation and writes it to a file. * The file path is following: `$REPORTIFY_PATH$/$OPERATION_NAME$/mlir_reports/$FILE_NAME$.mlir`. - * If the environment variable "FORGE_DISABLE_REPORTIFY_DUMP" is set to true, the function returns without performing any action. + * If the environment variable "FORGE_DISABLE_REPORTIFY_DUMP" is set to true, the function returns without performing + * any action. * * @param name The name of the file to be saved (currently in use are 'ttir' and 'ttnn'). * @param operation A pointer to the MLIR operation to be dumped. */ -void dump_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation) +void dump_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation) { if (env_as("FORGE_DISABLE_REPORTIFY_DUMP")) return;