This is an automated email from the ASF dual-hosted git repository.

tlopex pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 58d6a5a8f9 [REFACTOR] Move src/ir/script_printer.cc to 
src/script/printer/ (#19611)
58d6a5a8f9 is described below

commit 58d6a5a8f972002ba17f387d961c867a418d987e
Author: Tianqi Chen <[email protected]>
AuthorDate: Tue May 26 12:22:03 2026 -0400

    [REFACTOR] Move src/ir/script_printer.cc to src/script/printer/ (#19611)
    
    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.
    
    Pure relocation — no logic change. `CMakeLists.txt` uses an explicit
    file list for `src/script/printer/` (not a glob), so the new path is
    added there as well.
    
    Tested locally: CPU build + `pytest tests/python/tvmscript/` (771
    passed, 1 skipped, 1 xfailed) + `pytest
    tests/python/relax/test_tvmscript_printer_relax.py` (47 passed) +
    `pytest
    tests/python/relax/distributed/test_distributed_tvmscript_printer.py` (4
    passed) — all pass.
---
 CMakeLists.txt                               | 1 +
 src/{ir => script/printer}/script_printer.cc | 0
 2 files changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46958c542e..63d05da353 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

Reply via email to