This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a change to branch tqchen/printer-doc-translation
in repository https://gitbox.apache.org/repos/asf/tvm.git
discard 90ba9e7990 [FIX][Printer] Preserve runtime attribute values through
metadata
discard c44e384d6a [FIX][CUDA] Preserve intrinsic operand checks in validators
discard 2263666807 [REFACTOR][Printer] Keep translation hooks with their
owning dialects
discard 35d4c0b653 [REFACTOR][CUDA] Reuse inference for fixed intrinsic result
types
discard 5fdfb5750b [REFACTOR][Printer] Inline translator operations and
localize metadata
discard 5363be9991 [REFACTOR][Printer] Move shared printing into tvm printer
discard 320cf4861b [DOCS][Script] Avoid duplicate entries for shared IR type
exports
discard 8a99ca93e5 [DOCS][Script] Document the typed integer literal factory
discard 27f35515df [FIX][Script] Use static keys for primitive constructor
names
discard e5e7d43e54 [FIX][Script] Preserve primitive constructors and scope
nodes
discard db1ac7f23f [TEST][Script] Expect explicit construction for constant
modulo
discard 05d7a9ac5b [FIX][Script] Preserve runtime display and simplify
diagnostic recovery
discard 379c4e8234 [STYLE][Script] Format printer integration declarations
discard 3abdd0ed75 [REFACTOR][Script] Retire the legacy docsifier and renderer
discard 23783c059e [REFACTOR][Script] Consolidate the Doc translation protocol
discard 5e01cfa58d [TEST][CUDA] Require supported devices for Blackwell
instructions
discard b58cc532f1 [TEST][Script] Align output expectations with the printer
syntax contract
discard ee90e7ada1 [FIX][Script] Render exported fixed vector type aliases
discard ad026d734d [FIX][Script] Reconstruct intrinsic calls from validated
operand contracts
discard 1982c8ce1d [FIX][Relax] Preserve contextual inference alongside
independent result inference
discard 9765642591 Merge commit '0587e59a696cb435ad4d328726a07daa8d966f3c'
into task565-printer-migration
discard 58545c5068 [FIX][Script] Preserve explicit results in external call
constructors
discard 99cde264e0 [FIX][CUDA] Infer annotation and synchronization results
from operands
discard f3f1c9ffbe [FIX][Script] Apply display conventions to pass diagnostics
discard 5be58b2244 [FIX][IR] Infer builtin results from validated operands
discard 481bf9756a [FIX][Script] Translate buffer operation bindings and
preserve intrinsic calls
discard cf0ac1ada3 Merge remote-tracking branch 'upstream/main' into
task565-printer-migration
discard 7a08895c18 [REFACTOR][Script] Spell every buffer declaration with its
dtype
discard ea641e9fc0 [FIX][Script] Render comment headers and isolate generated
names
discard cd43d94142 [FIX][Script] Preserve child layouts in buffer view syntax
discard 15eaa1bd47 [FIX][Script] Preserve external symbol ownership and
declaration order
discard a6e1a0035b [FIX][Script] Retain missing axis binding error type
discard 41032dba34 [REFACTOR][Script] Give variable bindings stable identities
and scoped state
discard 5581d6528b [FIX][Script] Read entry header bytes through the FFI
string API
discard b026cd9334 [FIX][Script] Support explicit axes in unrealized S-TIR
blocks
discard 04c919f8ca [REFACTOR][Script] Separate leading headers from ordinary
Doc rendering
discard d8cb7519be [FIX][Script] Distinguish explicit default layouts from
dialect defaults
discard a2888279a1 Clarify ownership of diagnostic identifier policy
discard 5469a9beb9 Resolve dialect spelling during Doc translation
discard 6a435296f8 [Script] Resolve annotation ancestors before translation
discard 73b5b704bd [Script] Expose underline identities to eager translation
discard 45408348dd [Script] Render ordinary Docs after dialect translation
discard 2aafc599f0 [FIX][TVMScript] Preserve null tile arguments during region
dispatch
discard 8a733b3382 [FIX][TVMScript] Keep inline attributes and tile region
identity
discard 3905bede9d [Script] Preserve explicit buffer layouts in S-TIR functions
discard 6b3e43408f [FIX][TVMScript] Remove printer names without public
constructors
discard 2dda0010fa [FIX][TVMScript] Delegate native hook error adaptation to
FromNative
discard ec0d4266e4 [FIX][TVMScript] Preserve scalar spelling for singleton
binding tuples
discard 69efd4c293 [FIX][TVMScript] Preserve semantic fields across printable
alternatives
discard 9ef3aa043b [FIX][TVMScript] Export semantic Docs and preserve layout
and tuple spans
discard f0d0ea751b [FIX][TVMScript] Retain root origins around transparent
expression results
discard f2c7dcd0af [FIX][TVMScript] Preserve provisional calls with explicit
result types
discard 2f25f81da3 [FIX][TVMScript] Attach parameter annotations to function
statements
discard a3b08322c4 [FIX][TVMScript] Materialize typed attributes without a
metadata table
discard c007efba22 [FEAT][TVMScript] Expose reflected node construction in
shared namespace
discard cf4ddae0db [FIX][TVMScript] Preserve complete call fields and
inference contracts
discard abf96f059c [DOC][TVMScript] Explain hook completion and identifier
lifetimes
discard 450ba82de5 [FEAT][TVMScript] Expose shared and packed function type
constructors
discard 319b8fb535 [FEAT][TVMScript] Expose core type constructors for
explicit calls
discard 3ff58c5158 [FIX][TVMScript] Resolve canonical tile names through
execution scopes
discard 77fea3df19 [FIX][TVMScript] Qualify tile operator names with their
exported namespace
discard dc859fb98c [REFACTOR][TVMScript] Register canonical operator names
through shared namespaces
discard dab63fe5fb [REFACTOR][TVMScript] Complete semantic translation and
value contexts
discard 64f9d2c74d [FIX][TVMScript] Share script display policy with
structural diagnostics
discard 7469a73ba0 [FIX][TVMScript] Recover parameter origins by preserved
field order
discard 24d66081a1 [FIX][TVMScript] Apply identifier address policy to free
variables
discard e4b7c82da7 [REFACTOR][TVMScript] Defer root block elision to semantic
rendering
discard 71e1e1163e [FIX][TVMScript] Reserve metadata loader identifiers before
translation
discard 886b3e5bf6 [REFACTOR][TVMScript] Render metadata and scalar buffer
docs directly
discard 9170358021 [FIX][TVMScript] Preserve buffer layout and shared binding
semantics
discard c4cbc6d2ff [FIX][TVMScript] Recover object diagnostics and reserve
module names
discard 49527a9c7d [FIX][TVMScript] Preserve function annotations and loop
options
discard 51d3c645ea [FIX][TVMScript] Preserve module selectors and render axis
remaps
discard f537f7adcc Render Relax type parameters and module call aliases
discard 0ac48b96f2 Preserve module device selectors and scoped script bindings
discard 44d3c79729 Preserve Relax device calls and metadata reparses
discard 9515b3df39 Cover remaining native script node and buffer forms
discard 677a24d574 Keep interactive repr concise under v2 default
discard e36235ee08 Translate primitive min and max in v2 printer
discard 78cc80863c Make v2 default printer and preserve explicit v1 entry
discard c201370d87 Print Relax call_tir keywords in parser API order
discard 464a7e3500 Preserve primitive Relax annotations and dependency ordered
free declarations
discard 367edec23a Render inferable Relax binding types directly
discard a1e81d4a68 Preserve concise headers and nested Relax definitions
discard ea6db26b3e Retain Relax binding types when output is less specific
discard 6bb7407d68 Render Relax call references for their root context
discard 18aebadb4c Preserve Let variables and Relax mesh range syntax
discard c3e44382e6 Render Relax format calls and void bindings canonically
discard a9b1e1e3af Recover IR paths from completed Doc origins
discard 2dd9559691 Record emitted Doc origins in translator scopes
discard 17324353a9 Fold slice endpoints with portable bigint arithmetic
discard d77373b9ab Name unnamed buffers and fold literal slice ends
discard 3e538fe4e0 Render buffer defaults through a semantic Doc
discard 40689a549a Keep TIRx ranges tuples and reducer identities explicit
discard 210b9a6daa Preserve direct-object display of handles and strings
discard fe0eaaed64 Preserve literal binary IR in script output
discard 5dcaea5db0 Render legacy import headers for interactive script
discard 493a673f5a Document v2 translation hook and ownership contracts
discard 2d67744822 Complete nested Relax bindings through destinations
discard 349c294062 Route Relax destinations through translation hooks
discard f5db6fc382 Preserve parser signatures for low-level TIRx calls
discard 461b6dc513 Use canonical TIRx constructors for named calls
discard 0f211cfc24 Render fixed Relax shape extents as literals
discard 8babd40322 Emit executable imports for used TVMScript namespaces
discard ba47eb13b2 Render used namespaces and recover visible source paths
discard f6c274f3ef Resolve requested opaque function derivation by name
discard 86820c57d6 Translate distributed Relax types and control flow
discard 5f4a1b92e8 Expand v2 translation across direct IR objects and module
forms
discard f622b6cad0 Inline CPU tensor constants and materialize captured buffers
discard 2d8ddeef80 Translate remaining legacy block predicates
discard 8b82badd81 Translate legacy S-TIR blocks in v2 printer
discard 675ed42ebb Preserve Relax call and binding semantics
discard a3bd63281d Add Relax function and binding translation
discard 57577f0dc0 Translate remaining TIRx function and expression forms
discard e3744fbaa9 Preserve pointer types and tile buffer argument semantics
discard 3b84f8323d Translate loop kinds and pointer-valued script nodes
discard f12524e39b Preserve allocated-address buffer construction constraints
discard 4b78651967 Translate TIRx buffer declarations and tile primitive calls
discard e195c62e4d Render TIRx buffer parameters and indexed accesses
discard 28bb64e872 Translate shared calls through canonical Op names and I.Call
discard d2eabd0725 Render eligible TIRx attribute scopes and scope identifiers
discard a4ab371c7c [SCRIPT] Emit parser-visible namespace imports in v2
discard 31bd4cb436 [SCRIPT] Render canonical namespace Docs in a v2 printer
discard 0e029a8f79 [SCRIPT] Introduce native TVMScript Doc translator
foundation
add 5b7c2fe787 [REFACTOR][Target] Move ConfigSchema into target headers
(#20509)
new 9a082e1eb4 [REFACTOR][Script] Replace docsifier with typed Doc
translation
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (90ba9e7990)
\
N -- N -- N refs/heads/tqchen/printer-doc-translation
(9a082e1eb4)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 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:
CMakeLists.txt | 23 +-
docs/arch/tvmscript.rst | 18 +-
docs/reference/api/python/index.rst | 2 +-
docs/reference/api/python/{ => script}/printer.rst | 10 +-
include/tvm/{ => script}/printer/config.h | 10 +-
include/tvm/{ => script}/printer/doc.h | 74 +--
include/tvm/{ => script}/printer/doc_translator.h | 58 ++-
include/tvm/{ => script}/printer/printer.h | 10 +-
include/tvm/{ir => target}/config_schema.h | 10 +-
include/tvm/target/target_kind.h | 4 +-
python/tvm/backend/cuda/cpp/builtins.py | 8 +-
python/tvm/backend/cuda/cpp/nvshmem.py | 15 +-
python/tvm/backend/cuda/ptx/engine.py | 96 +---
python/tvm/backend/cuda/script.py | 31 +-
python/tvm/ir/base.py | 4 +-
python/tvm/printer/_ffi_api.py | 21 -
python/tvm/relax/base_py_module.py | 2 +-
python/tvm/relax/script/ir_builder/__init__.py | 50 +-
python/tvm/runtime/script_printer.py | 13 +-
python/tvm/s_tir/schedule/trace.py | 4 +-
python/tvm/script/ir_builder/_printer_names.py | 63 ---
python/tvm/{ => script}/printer/__init__.py | 0
.../{s_tir/schedule => script/printer}/_ffi_api.py | 4 +-
python/tvm/{ => script}/printer/doc.py | 56 +--
python/tvm/{ => script}/printer/doc_printer.py | 0
python/tvm/{ => script}/printer/highlight.py | 0
python/tvm/tirx/script/ir_builder/op.py | 59 ++-
src/backend/cuda/codegen/intrin_rule_cuda.cc | 35 +-
src/backend/cuda/op/iket.cc | 59 +--
src/backend/cuda/op/target_builtin.cc | 81 ++-
src/backend/metal/codegen/intrin_rule_metal.cc | 23 +-
src/backend/metal/op/target_builtin.cc | 8 +-
src/backend/trn/op/target_builtin.cc | 2 +-
src/backend/webgpu/codegen/intrin_rule_webgpu.cc | 23 +-
src/ir/expr.cc | 2 +-
src/ir/prim/builtin.cc | 6 +-
src/ir/prim/expr.cc | 2 +-
src/ir/transform.cc | 1 -
src/printer/doc_translator.cc | 65 ---
src/printer/ir/misc.cc | 226 ---------
src/printer/ir/prim_expr.cc | 280 -----------
src/printer/ir/prim_type.cc | 113 -----
src/printer/ir/tensor.cc | 96 ----
.../backend/adreno/annotate_custom_storage.cc | 12 +-
src/relax/ir/block_builder.cc | 14 +-
src/relax/op/op.cc | 3 +-
src/relax/op/tensor/binary.cc | 12 -
src/relax/script/printer/binding.cc | 115 +++--
src/relax/script/printer/call.cc | 158 ++++--
src/relax/script/printer/dependent_type.cc | 156 ++++++
src/relax/script/printer/distributed.cc | 74 ++-
src/relax/script/printer/expr.cc | 71 ++-
src/relax/script/printer/function.cc | 63 ++-
src/relax/script/printer/global_info.cc | 16 +-
src/relax/script/printer/region.cc | 98 ++--
src/relax/script/printer/{utils.h => tir.cc} | 36 +-
src/relax/script/printer/type.cc | 117 +----
src/relax/script/printer/utils.h | 12 +-
src/s_tir/meta_schedule/database/json_database.cc | 2 +-
src/s_tir/schedule/error.cc | 2 +-
src/s_tir/script/printer/block.cc | 144 ------
src/s_tir/script/printer/config.cc | 4 +-
src/{ => script}/printer/config.cc | 6 +-
src/{ => script}/printer/dialect_prefix.h | 10 +-
src/{ => script}/printer/doc.cc | 112 +++--
.../printer/doc_printer.cc} | 117 ++++-
.../printer/doc_printer.h} | 20 +-
.../entry.cc => script/printer/doc_translator.cc} | 547 +++++----------------
src/script/printer/doc_translator.h | 56 +++
src/script/printer/entry.cc | 337 +++++++++++++
src/{ => script}/printer/ir/ir.cc | 163 +++---
src/script/printer/ir/misc.cc | 212 ++++++++
src/script/printer/ir/prim_expr.cc | 339 +++++++++++++
src/script/printer/ir/prim_type.cc | 146 ++++++
src/{ => script}/printer/ir/utils.cc | 141 ++----
src/{ => script}/printer/ir/utils.h | 52 +-
src/{ => script}/printer/script_printer.cc | 23 +-
src/{ => script}/printer/utils.h | 8 +-
src/target/target_kind.cc | 2 +-
src/tirx/ir/stmt.cc | 2 +-
src/tirx/op/builtin.cc | 205 ++++----
src/tirx/op/op.cc | 91 ++--
src/tirx/op/tirx.cc | 60 +--
src/tirx/script/printer/block.cc | 281 +++++++++++
src/tirx/script/printer/buffer.cc | 492 ++++++++++++------
src/tirx/script/printer/expr.cc | 315 ++++++++++--
src/tirx/script/printer/for_loop.cc | 29 +-
src/tirx/script/printer/function.cc | 65 ++-
src/tirx/script/printer/ir.cc | 191 ++-----
src/tirx/script/printer/stmt.cc | 422 ++++++++++------
src/tirx/script/printer/utils.h | 12 +-
tests/cpp/config_schema_test.cc | 3 +-
tests/cpp/tir_scalable_datatype.cc | 6 +-
.../relax/script/test_relax_script_printer.py | 33 +-
.../s_tir/script/test_s_tir_script_printer.py | 10 +-
.../transform/test_s_tir_transform_thread_sync.py | 6 +-
tests/python/script/test_script_printer_doc.py | 4 +-
tests/python/tirx/codegen/test_ptx_addr.py | 2 +-
tests/python/tirx/codegen/test_ptx_dialect.py | 2 +-
.../python/tirx/script/test_tirx_script_printer.py | 67 +--
tests/python/tirx/test_op_namespace_cleanup.py | 4 +-
101 files changed, 4052 insertions(+), 3317 deletions(-)
rename docs/reference/api/python/{ => script}/printer.rst (87%)
rename include/tvm/{ => script}/printer/config.h (96%)
rename include/tvm/{ => script}/printer/doc.h (92%)
rename include/tvm/{ => script}/printer/doc_translator.h (90%)
rename include/tvm/{ => script}/printer/printer.h (81%)
rename include/tvm/{ir => target}/config_schema.h (98%)
delete mode 100644 python/tvm/printer/_ffi_api.py
delete mode 100644 python/tvm/script/ir_builder/_printer_names.py
rename python/tvm/{ => script}/printer/__init__.py (100%)
copy python/tvm/{s_tir/schedule => script/printer}/_ffi_api.py (88%)
rename python/tvm/{ => script}/printer/doc.py (91%)
rename python/tvm/{ => script}/printer/doc_printer.py (100%)
rename python/tvm/{ => script}/printer/highlight.py (100%)
delete mode 100644 src/printer/doc_translator.cc
delete mode 100644 src/printer/ir/misc.cc
delete mode 100644 src/printer/ir/prim_expr.cc
delete mode 100644 src/printer/ir/prim_type.cc
delete mode 100644 src/printer/ir/tensor.cc
create mode 100644 src/relax/script/printer/dependent_type.cc
copy src/relax/script/printer/{utils.h => tir.cc} (52%)
delete mode 100644 src/s_tir/script/printer/block.cc
rename src/{ => script}/printer/config.cc (97%)
copy src/{ => script}/printer/dialect_prefix.h (81%)
rename src/{ => script}/printer/doc.cc (81%)
rename src/{printer/python_doc_printer.cc => script/printer/doc_printer.cc}
(92%)
rename src/{printer/dialect_prefix.h => script/printer/doc_printer.h} (58%)
rename src/{printer/entry.cc => script/printer/doc_translator.cc} (51%)
create mode 100644 src/script/printer/doc_translator.h
create mode 100644 src/script/printer/entry.cc
rename src/{ => script}/printer/ir/ir.cc (58%)
create mode 100644 src/script/printer/ir/misc.cc
create mode 100644 src/script/printer/ir/prim_expr.cc
create mode 100644 src/script/printer/ir/prim_type.cc
rename src/{ => script}/printer/ir/utils.cc (68%)
rename src/{ => script}/printer/ir/utils.h (56%)
rename src/{ => script}/printer/script_printer.cc (91%)
rename src/{ => script}/printer/utils.h (89%)
create mode 100644 src/tirx/script/printer/block.cc