This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a change to branch script/canonical-parser-df
in repository https://gitbox.apache.org/repos/asf/tvm.git
from 0894548d18 [DOCS][Script] Explain parser context ownership and lifetime
new 8d3f02362a [Script] Propagate original errors and consolidate source
inspection
new 532f38e2eb [Relax] Preserve definition scope when parsing rewriter
modules
new b7bb49e8b7 [Script] Migrate consumers to explicit loop and call
policies
new eee9ba3f29 [Script] Keep syntax registration in the parser registry
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/arch/tvmscript.rst | 25 +-
docs/tirx/tile_primitives/copy_async/dsmem.rst | 4 +-
.../cuda/tile_primitive/copy_async/dsmem.py | 10 +-
.../relax/frontend/nn/llm/position_embedding.py | 18 +-
python/tvm/relax/script/__init__.py | 5 +-
python/tvm/relax/script/builder/__init__.py | 4 +-
python/tvm/relax/script/builder/ir.py | 32 +-
python/tvm/relax/script/builder/parser_protocol.py | 2 +-
python/tvm/script/ir_builder/base.py | 33 +-
python/tvm/script/ir_builder/ir/__init__.py | 18 +-
python/tvm/script/ir_builder/ir/ir.py | 2 +-
python/tvm/script/ir_builder/ir/parser_protocol.py | 826 +++-----------------
python/tvm/script/parser/call_args_policy.py | 14 +-
python/tvm/script/parser/diagnostics.py | 159 ----
python/tvm/script/parser/entry.py | 35 +-
python/tvm/script/parser/inspect_source.py | 112 ++-
python/tvm/script/parser/prescan.py | 9 +-
python/tvm/script/parser/protocol_registry.py | 868 +++++++++++++++++++++
python/tvm/script/parser/source.py | 125 ---
python/tvm/script/parser/transpile.py | 22 +-
python/tvm/tirx/script/builder/__init__.py | 6 +-
python/tvm/tirx/script/builder/ir.py | 2 +-
python/tvm/tirx/script/builder/parser_protocol.py | 4 +-
python/tvm/tirx/script/jit.py | 4 +-
.../test_frontend_relax_construction_validation.py | 3 +-
.../test_relax_parser_comparison_integration.py | 4 +-
.../relax/script/test_rewriter_definition_scope.py | 121 +++
tests/python/relax/test_op_index.py | 2 +-
tests/python/relax/test_op_view.py | 21 +-
.../python/relax/test_runtime_builtin_rnn_state.py | 4 +-
tests/python/relax/test_transform.py | 12 +-
tests/python/relax/test_transform_cse.py | 4 +-
tests/python/relax/test_transform_fuse_tir.py | 6 +-
tests/python/relax/test_transform_legalize_ops.py | 4 +-
.../test_transform_rewrite_dataflow_reshape.py | 4 +-
tests/python/relax/test_tvmscript_parser.py | 99 ++-
.../s_tir/test_s_tir_axis_binding_validation.py | 3 +-
tests/python/script/dummy_builder.py | 12 +-
.../script/test_builder_protocol_contract.py | 156 +++-
.../python/script/test_capture_definition_scope.py | 9 +-
tests/python/script/test_capture_frontend_scope.py | 2 +-
tests/python/script/test_parser.py | 61 +-
.../python/script/test_parser_capture_lifetime.py | 33 +-
tests/python/script/test_parser_host_selection.py | 22 +-
tests/python/script/test_parser_latest_design.py | 61 +-
tests/python/script/test_parser_scope_helpers.py | 11 +-
tests/python/script/test_parser_scoped_symbols.py | 7 +-
.../python/script/test_parser_shared_resolvers.py | 4 +-
.../test_tir_analysis_verify_well_formed.py | 6 +-
.../python/tirx/codegen/test_codegen_blackwell.py | 10 +-
tests/python/tirx/codegen/test_codegen_cuda.py | 2 +-
tests/python/tirx/codegen/test_ptx_addr.py | 24 +-
tests/python/tirx/codegen/test_ptx_dialect.py | 132 ++--
.../test_frontend_construction_validation.py | 5 +-
.../script/test_native_span_and_loop_contracts.py | 21 +-
.../python/tirx/script/test_parser_buffer_views.py | 9 +-
.../tirx/script/test_parser_jit_specialization.py | 6 +-
.../tirx/script/test_parser_tirx_emission.py | 5 +-
.../tirx/script/test_parser_tirx_resolvers.py | 4 +-
.../script/test_tirx_builder_protocol_contract.py | 41 +-
.../test_tirx_parser_comparison_integration.py | 4 +-
tests/python/tirx/test_jit.py | 21 +-
tests/python/tirx/test_parser_printer.py | 58 +-
.../tirx/transform/test_transform_lower_tirx.py | 2 +-
.../tvmscript/test_tvmscript_error_report.py | 232 +++---
tests/python/tvmscript/test_tvmscript_ops.py | 2 +-
.../tvmscript/test_tvmscript_parser_source.py | 4 +-
.../python/tvmscript/test_tvmscript_parser_tir.py | 8 +-
.../tvmscript/test_tvmscript_syntax_sugar.py | 10 +-
69 files changed, 2008 insertions(+), 1602 deletions(-)
delete mode 100644 python/tvm/script/parser/diagnostics.py
create mode 100644 python/tvm/script/parser/protocol_registry.py
delete mode 100644 python/tvm/script/parser/source.py
create mode 100644 tests/python/relax/script/test_rewriter_definition_scope.py