From ac27b634ec4b9e63bbac6c588f1740ea40fc6da4 Mon Sep 17 00:00:00 2001 From: tqchen Date: Tue, 26 May 2026 14:32:48 +0000 Subject: [PATCH] [REFACTOR] Move src/ir/script_printer.cc to src/script/printer/ TVMScriptPrinter is declared in include/tvm/script/printer/config.h and its sibling helpers already live under src/script/printer/. The implementation file's location under src/ir/ was inherited from an older layout and does not match the header. Also registers the new path in CMakeLists.txt, which uses an explicit file list for src/script/printer/ rather than a glob. --- CMakeLists.txt | 1 + src/{ir => script/printer}/script_printer.cc | 0 2 files changed, 1 insertion(+) rename src/{ir => script/printer}/script_printer.cc (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46958c542e73..63d05da35334 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -297,6 +297,7 @@ tvm_file_glob(GLOB_RECURSE COMPILER_SRCS src/script/ir_builder/base.cc src/script/ir_builder/ir/*.cc src/script/printer/config.cc + src/script/printer/script_printer.cc src/script/printer/doc.cc src/script/printer/doc_printer/*.cc src/script/printer/ir_docsifier.cc diff --git a/src/ir/script_printer.cc b/src/script/printer/script_printer.cc similarity index 100% rename from src/ir/script_printer.cc rename to src/script/printer/script_printer.cc