[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACC72NKZDVWVS0C101ZM2J":3,"skill-same:01M6ACC72NKZDVWVS0C101ZM2J":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":17,"updatedAt":47,"install":48,"resources":61},"01M6ACC72NKZDVWVS0C101ZM2J","tirx-ptx-dialect","TVM PTX 方言指令表维护","Register, extend, or audit instructions in the table-driven T.ptx dialect (python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Ftable.py), and move the table to a newer PTX ISA version. Use when adding a PTX instruction or qualifier, widening an operand domain, fixing a ptxas certification failure, or checking the table's comments against the PTX ISA document.","在表驱动的 T.ptx 方言（python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Ftable.py）中注册、扩展或审查指令，并将该表迁移到更新的 PTX ISA 版本。适用于添加 PTX 指令或限定符、扩展操作数取值范围、修复 ptxas 认证失败，或对照 PTX ISA 文档检查表中的注释。","apache\u002Ftvm","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACBZAJXV6B7T950208GGVD",13899,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftirx-ptx-dialect\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33],"tirx ptx dialect","python","tvm","2026-11-10 10:12:30",false,"---\nname: tirx-ptx-dialect\ndescription: Register, extend, or audit instructions in the table-driven T.ptx dialect (python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Ftable.py), and move the table to a newer PTX ISA version. Use when adding a PTX instruction or qualifier, widening an operand domain, fixing a ptxas certification failure, or checking the table's comments against the PTX ISA document.\n---\n\n# TIRx PTX dialect (`T.ptx`)\n\n`T.ptx.\u003Cmnemonic>.\u003Cqualifiers>(operands...)` is not hand-written per\ninstruction. One data table describes every instruction family; one engine\nresolves calls, renders an inline-asm helper, and registers the TVM op; three\ngenerators derive the IDE stub, a coverage table and a helper dump from the\nsame table. Adding an instruction means adding **data**, then proving it\nagainst ptxas.\n\n| file | role |\n|---|---|\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Ftable.py` | the table: `InstructionEntry` \u002F `ModifierSlot` \u002F `OperandSlot`, check functions, variant enumeration. tvm-free. **Read its three dataclass docstrings before editing.** |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Frender.py` | renders one variant to a `__forceinline__ __device__` helper (`asm` or `asm volatile`, according to `asm_volatile`). `CBinding` = how each TVM dtype binds a register; `BRIDGE` = three scoped cases covering the two register classes inline asm cannot bind directly (`.pred`, and the block-local `.b8` registers behind the `e2m1x2` and `st_async_b8reg` tokens) — not a general `.b8` mechanism. tvm-free. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fengine.py` | `register_table()` makes each entry a TVM op `tirx.ptx.\u003Cname>` with a generic codegen; `PTXNamespace` resolves `T.ptx` attribute chains and the string form `T.ptx[\"...\"]`; trace-time coercion and `check`\u002F`imm_check`. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_stubs.py` | `python -m tvm.backend.cuda.ptx.gen_stubs -o python\u002Ftvm\u002Fscript\u002Ftirx.pyi` — the checked-in stub; a test diffs it against the generator. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_helpers.py` | `python -m tvm.backend.cuda.ptx.gen_helpers \u003Cfamily>` — dump the exact helper source of every variant without compiling a kernel (it still imports `tvm`, so it needs the usual built worktree on `PYTHONPATH`). |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_coverage.py` | markdown coverage table of the whole dialect. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py` | per-ISA-section dispatch tests, structural invariants, ptxas certification. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_cvt.py` | one case per registered `cvt` syntax line (`_FORM_CASES`); coverage of every cvt entry is asserted. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_addr.py` | `T.ptx.addr(base, byte_offset)` immediates. |\n\nThe namespace itself is installed by `python\u002Ftvm\u002Fbackend\u002Fcuda\u002F__init__.py::script_namespaces()`;\nnothing there changes when the table grows.\n\n> **DO NOT introduce a new mechanism in an `InstructionEntry` without the\n> user's explicit approval.** Stop, explain why the existing entry model is\n> insufficient and what codegen or validation behavior the mechanism would\n> add, then wait for approval before implementing it.\n\n## 1. Ground rules the table enforces\n\nThe first four are tested mechanically — a new entry that breaks one fails\nthe suite. The last one (what the comments claim) is audited by hand, §4.\n\n- **One entry = one syntax shape.** Split into sibling entries sharing the\n  `mnemonic` when the register-group shape or the result structure changes\n  (scalar vs vector destination, `mul` vs `mul.wide`), or when an optional\n  operand is told apart only by call arity (`{, count}`, `state` vs the `_`\n  sink); the engine then selects by arity and by which tokens are written.\n  An operand whose presence is fixed by one written qualifier stays in the\n  entry with a 0-or-1-register `lanes` function — `{, cache_policy}` with\n  `.L2::cache_hint`, `{, ctaMask}` with `.multicast::cluster` use\n  `lanes=_present_lanes(\"\u003Cslot>\")`. Variants that only add or remove dotted\n  qualifiers are optional slots of one entry.\n- **Single-instruction invariant**: every helper emits exactly one native PTX\n  instruction. The only extra statements allowed are the framework `@p`\n  wrapper and the `BRIDGE` boundary conversions. `raw_render` is the escape\n  hatch and every user of it must be listed in `RAW_ENTRIES` inside\n  `test_ptx_single_instruction_invariant`.\n- **Every legal closed variant assembles**: `renderings()` enumerates the\n  product of modifiers × operand dtypes × closed immediates × `@p` (for\n  entries without a destination) and full certification assembles all of it\n  through ptxas at `cert_arch`. Four things get *representative* coverage\n  instead of the full product, and each says so in its docstring: an OPEN\n  immediate is certified at `imm_combos`'s samples (default `\"0\"`), which\n  proves the shape, not the caller's constant; sink masks are walked once at\n  one representative modifier combination per sink domain (`renderings`);\n  address immediates are a small separate axis (`_addr_offset_samples`);\n  and the destination-predicated `pred=` helpers (`*_pred_undef` \u002F\n  `*_pred_keep`) are not enumerated at all — cover those with a\n  production-shaped test when a call site needs them. Conversely a `check()`\n  must never reject a legal form to make certification pass — narrow with\n  evidence.\n- **Dispatch must be unambiguous**: no two entries may accept the same call\n  (`test_ptx_dispatch_unambiguous`); helper names must be unique\n  (`test_ptx_all_variants_render_unique`).\n- **Comments cite the ISA**: the section number, the syntax line reproduced\n  verbatim, the type\u002Fqualifier domains, `sm_XX` floors, and a `NOT REGISTERED:`\n  note with the reason for every syntax line or token deliberately left out.\n  A fact that comes from ptxas rather than the document is marked `MEASURED`\n  and quotes the ptxas message. Section and table numbers follow the ISA\n  version named in the module docstring (currently **PTX ISA 9.4**, the CUDA\n  13.4 developer-preview document, see §5).\n\n## 2. Designing the entry\n\nOpen the instruction's section in the ISA document and transcribe, in this\norder:\n\n1. **Name \u002F mnemonic \u002F family.** `name` is the table key and must be a Python\n   identifier. Dotted mnemonics are a family plus single-choice slots\n   (`cvta.to.shared` → `cvta` + slots), or `mnemonic=\"st.bulk\"` with\n   `name=\"st_bulk\"` when the dot is part of the instruction's identity.\n   Several entries sharing a mnemonic (`mov`, `mbarrier`, `mma`) use\n   distinct `name`s (`mov`, `mov_pack_2`, ...) and the same `mnemonic`.\n   Entries that collide with an existing family on the same shape need a\n   suffix (`add_int` vs `add`\u002F`add_half`) and are told apart by their tokens.\n2. **Slots** (`ModifierSlot(name, choices, optional)`), in asm render order —\n   exactly the `{.qual}` positions of the syntax line, each with the ISA's\n   `.qual = { ... }` list as `choices`. Tokens with `::` are written as-is\n   (`\"shared::cta\"`); users type `shared__cta`. Python keywords get a\n   trailing underscore only at the call site (`global_`).\n3. **Operands** (`OperandSlot`), in PTX operand order, destinations first\n   because PTX writes them first:\n   - `rw`: `\"w\"` destination, `\"rw\"` accumulator (`\"+\"`), `\"r\"` input. A\n     `\"w\"` operand binds `\"=\"`; it does **not** block `pred=` — under a false\n     predicate the value is undefined unless the caller passes\n     `preserve_dst=True`, which switches the binding to `\"+\"` (see\n     `test_ptx_predicated_destination_*`). Those two helpers are rendered on\n     demand, not by `renderings()`.\n   - `kind`: `\"reg\"` (default), `\"addr\"` (`[%k]`, space from `space=` or the\n     entry's `space` slot; set `allow_imm_offset=True` only for an independent\n     byte address), `\"ptr\"` (raw pointer value), `\"imm\"` (text operand:\n     `literal=` fixed by the ISA, `choices=` closed caller set, neither = open\n     immediate certified at samples; validate open ones with `imm_check`).\n   - `dtype`: a `PTX_TYPE_DTYPES` key, a slot name, or a module-level pure\n     function of the modifier map (`_wide_dtype`). `None` means the entry's\n     `type` slot. `dtypes=` narrows\u002Fwidens the TVM dtype domain independently\n     (see the relaxed-carrier note in §6 before widening anything).\n   - `lanes` (int or function of the modifier map) for brace-enclosed register\n     groups; `vector=`, `bracket=`, `pipe=` for the few composite spellings;\n     `sinkable=` only where the ISA lets a caller write `_` for a lane.\n4. **`check`**: one pure module-level function `mod_map -> error | None` per\n   entry with a one-line docstring (it is surfaced by the stub and the coverage\n   table). Encode only what the ISA syntax block and notes state; every\n   restriction that comes from ptxas instead is a separate `MEASURED` clause.\n   Never a lambda: frozen dataclasses hash callables by identity.\n5. **`cert_arch`**: the **maximum** `sm_XX` floor over the entry's variants\n   (default is `PTX_ARCH`, `sm_90`). Certifying below a variant's floor makes\n   ptxas report legal forms as illegal, and that verdict would then get baked\n   into a `check()`.\n6. `orders_memory=True` for fences\u002Fbarriers\u002Fwaits (no address operand but the\n   `\"memory\"` clobber is needed); `asm_volatile` stays at its default.\n\nWorked example — the whole registration of `movmatrix` (commit a29a5e97ba,\n4 files, 40 lines):\n\n```python\n    # movmatrix per PTX ISA 9.7.16.5.17 -- transpose one distributed m8n8\n    # matrix whose 16-bit elements are carried by one b32 register per lane.\n    #\n    #   movmatrix.sync.aligned.m8n8.trans.b16 d, a;\n    InstructionEntry(\n        name=\"movmatrix\",\n        slots=(\n            ModifierSlot(\"sync\", (\"sync\",)),\n            ModifierSlot(\"aligned\", (\"aligned\",)),\n            ModifierSlot(\"shape\", (\"m8n8\",)),\n            ModifierSlot(\"trans\", (\"trans\",)),\n            ModifierSlot(\"type\", (\"b16\",)),\n        ),\n        cert_arch=\"sm_75\",\n        operands=(\n            OperandSlot(\"d\", rw=\"w\", dtype=\"b32\"),\n            OperandSlot(\"a\", dtype=\"b32\"),\n        ),\n    ),\n```\n\nPut the entry under its ISA chapter banner in `_ENTRIES` (`# PTX ISA 9.7.x —\n...`), next to the instructions it shares a mnemonic with.\n\n## 3. Verify — every gate, in this order\n\nRun from the TVM repo root with the workspace `PYTHONPATH` (see `tir-test`).\n\n1. **Table loads and enumerates.** A `check()` that filters out every\n   combination, a duplicate name, or a bad `allow_imm_offset` slot fails at\n   import.\n   ```bash\n   python -c \"from tvm.backend.cuda.ptx.table import TABLE, variants; e=TABLE['\u003Cname>']; print(len(variants(e)))\"\n   python -m tvm.backend.cuda.ptx.gen_helpers \u003Cname> | head -60   # eyeball the asm\n   ```\n2. **Add tests for the new surface** (before running the suite, so one run\n   settles everything):\n   - a call in the dispatch test of its ISA section\n     (`test_ptx_\u003Csection>_dispatch`) asserting the exact emitted line, e.g.\n     `assert \"mul.wide.s32 %0, %1, %2;\" in src`;\n   - a new `cvt` line → a `_FORM_CASES` row in `test_ptx_cvt.py`\n     (`test_cvt_cases_cover_every_registered_entry` fails otherwise);\n   - `raw_render` → `RAW_ENTRIES`;\n   - a destination-predicated (`pred=`) call site → a production-shaped\n     codegen test, since certification does not enumerate those helpers;\n   - only when the instruction belongs to the MegaMoE extracted-intrinsics\n     surface → its kernel and mnemonic list in\n     `3rdparty\u002Ftvm-tirx\u002Ftests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_cuda.py::test_megamoe_extracted_intrinsics_codegen`\n     (that test covers one workload, not the dialect).\n3. **Regenerate the stub** — any change to a family's tokens or shapes makes\n   `test_ptx_stub_up_to_date` fail until you do:\n   ```bash\n   python -m tvm.backend.cuda.ptx.gen_stubs -o python\u002Ftvm\u002Fscript\u002Ftirx.pyi\n   ```\n4. **Fast suite** (no `PTX_CERT`): structural invariants + dispatch tests +\n   a seeded ptxas sample.\n   ```bash\n   python -m pytest tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_cvt.py tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_addr.py -q\n   ```\n   `test_ptx_all_variants_render_unique` ends with `assert total == \u003CN>`;\n   its failure message prints the new total — update the constant and\n   re-run.\n5. **Full certification** — mandatory after any table change, and the only\n   gate that proves the domain. It assembles every closed variant of every\n   entry, split into 32 shards; pick 8, 16 or 32 workers to taste (each one\n   drives its own nvcc; `-n auto` on a many-core box mostly burns memory).\n   ~3.5 min at `-n 16`, ~6.5 min at `-n 8` on a B200-class host for the\n   ~760k-variant PTX ISA 9.4 table (`test_ptx_all_variants_render_unique`\n   pins the exact count).\n   ```bash\n   PTX_CERT=1 python -m pytest -n 16 -q \\\n     tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py::test_ptx_all_helpers_certify\n   ```\n   A failure names `\u003Carch> batch \u003Ck>` and the ptxas message. To find the\n   variant: render the failing family with `gen_helpers`, or assemble the\n   batch yourself (`nvcc -arch=\u003Carch> -ptx` then `ptxas`, map the error line\n   back to the preceding `.entry`). Fix by narrowing the domain with a\n   `MEASURED` clause, never by loosening the invariant.\n6. `pre-commit run --files \u003Cchanged files>` and commit as\n   `feat(lower-tirx): support PTX \u003Cinstruction>` (Conventional Commits, see\n   the workspace `CLAUDE.md`).\n\n## 4. Auditing the comments against the ISA\n\nThe comments are load-bearing (they are what a reviewer checks the data\nagainst), so audit them the way the data is certified: download the ISA HTML\nfor the version the module docstring names, convert to text, and verify every\nsection number, quoted sentence, reproduced syntax line, type list and\n`sm_XX` note. Things that have gone wrong before and are worth a targeted\npass: a `NOT REGISTERED` bullet naming something the table registers a few\nhundred lines later; a section number copied from a neighbouring\ninstruction; a version number attached to the wrong syntax line; \"the N-th\nsyntax line\" ordinals; `Table NN` numbers, which are global and shift between\nISA versions.\n\n## 5. Toolchain and ISA-version model\n\n- The dialect targets the **ptxas of the installed CUDA toolkit**, not the\n  latest ISA document. CUDA 13.4's ptxas implements PTX ISA 9.4. Establish\n  what yours implements from ptxas itself — `nvcc -ptx` only shows the\n  version the front end chose to emit, and `-ptx` never validates inline\n  asm:\n  ```bash\n  command -v nvcc ptxas && nvcc --version | tail -1 && ptxas --version | tail -1\n  printf '.version 9.4\\n.target sm_107a\\n.address_size 64\\n.visible .entry k() { ret; }\\n' \\\n    | ptxas -arch=sm_107a - -o \u002Fdev\u002Fnull   # CUDA 13.4: accepted\n  ```\n  A `.version` directive above what ptxas implements is refused outright\n  (\"Unsupported .version ...; current version is '9.4'\"), which is the\n  quickest way to read a toolkit's ceiling. Then let the certification suite\n  (which compiles real inline-asm helpers to cubin) be the final word.\n- The table's citations follow that same version (module docstring of\n  `table.py`: \"Section and table numbers cite PTX ISA 9.4\", URL\n  `docs.nvidia.com\u002Fcuda\u002Fdeveloper-preview\u002F13.4\u002Fparallel-thread-execution\u002F`;\n  once CUDA 13.4 ships, the stable copy is\n  `docs.nvidia.com\u002Fcuda\u002Farchive\u002F13.4.0\u002Fparallel-thread-execution\u002F`). The\n  live `docs.nvidia.com\u002Fcuda\u002Fparallel-thread-execution\u002F` page is whatever\n  version is newest and its numbering differs; every ISA version stays\n  available under `docs.nvidia.com\u002Fcuda\u002Farchive\u002F\u003Ccuda version>\u002F`.\n- Every `MEASURED` clause in `table.py` \u002F `render.py` names the toolkit it\n  was taken on (currently CUDA 13.4). A toolkit bump re-measures all of them\n  (§6 step 5); a clause that names an older toolkit is a bug.\n- Certification needs only `nvcc`\u002F`ptxas`; the on-GPU round-trip tests need\n  a driver that can load a cubin from that toolkit. A newer toolkit with an\n  older driver can therefore certify a table but not run it.\n- `PTX_ARCH` (env, default `sm_90`) is the certification arch for entries\n  without `cert_arch`.\n\n## 6. Moving the table to a newer PTX ISA\n\nDo this as one commit series, in this order:\n\n1. **Toolchain first.** Install the CUDA toolkit whose ptxas implements the\n   target ISA and confirm via `.version` (§5). Until then, a new form cannot\n   be registered: certification would fail, and a `check()` written against\n   an older ptxas would silently delete the coverage later.\n2. **Build the section map structurally, from both TOCs.** Dump both HTML\n   documents to text, extract the two tables of contents (`\u003Cnum> \u003Ctitle>`),\n   and derive a `rule(old) -> new` function from where the new version\n   inserted sections; cross-check it by asserting every old `9.7.*` entry\n   maps to an identically titled new entry. Never trust title matching\n   alone (duplicate titles such as \"mov\" x2 or \"Async Proxy\" x2 collide) and\n   never shift chapters only — a chapter-only shift was the exact mistake\n   made the first time this table changed versions.\n3. **Retarget the citations.** Update the module docstring's version\n   statement and URL, then run the renumbering over `table.py`,\n   `engine.py`, `render.py`, `3rdparty\u002Ftvm-tirx\u002Ftests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_*.py` and\n   `test_cuda.py`, skipping any block that already carries the new\n   numbering (`_PTX_94_ENTRIES` was such a block for 9.3→9.4). Hand-fix the\n   forms a regex cannot: ranges that span an insertion (`9.7.x.a-b`), brace\n   groups (`9.7.4.{1,2,3}`), sibling shorthand (`.12`, `\u002F .17`), global\n   `Table NN` numbers, and `:line` offsets (re-derive against the new\n   section text from the quoted sentence, or drop the offset and keep the\n   quote). Then regenerate the stub (§3).\n4. **Register the newly legal forms.** Read the new version's release notes\n   (ISA chapter 13.1) and the per-section \"introduced in PTX ISA version\n   X.Y\" notes; each one: read the section, apply §2, then §3 including full\n   certification at the right `cert_arch`. Keep the new version's additions\n   grouped (the `_PTX_94_ENTRIES` list is the 9.4 group).\n5. **Re-measure every `MEASURED` clause on the new toolkit** and reword it\n   to name that toolkit. Registered forms are re-proven by full\n   certification; excluded forms need a targeted probe each (raw PTX through\n   `ptxas -arch=\u003Ca>` for grammar claims, an exact force-inlined kernel\n   through `nvcc` for crash claims — `test_ptx_dialect._certification_kernel`\n   builds that shape). Quote the diagnostic the new ptxas actually prints;\n   texts change between releases. If a gap has closed, either widen the\n   domain with certification or say so in the clause — never leave a\n   sentence that attributes the restriction to a toolkit you no longer use.\n   ISA §9.4.1 Tables 27\u002F28 are an upper bound and say so (\"some combinations\n   may still be invalid for a particular instruction\"); the `_cvt_dst_dtypes`\n   \u002F `_cvt_src_dtypes` docstrings record the measured gaps.\n6. Regenerate the stub, update the variant\u002Faddress counts the tests pin,\n   run the full suite, and run the §4 audit against the new document before\n   merging.\n\nWorked example, PTX ISA 9.3 → 9.4:\n\n- 9.4 inserted chapter `9.7.6 Alternate Floating-Point Instructions`, so\n  every `9.7.N` with N ≥ 6 became `9.7.(N+1)` (comparison `9.7.6→9.7.7`,\n  data movement `9.7.9→9.7.10`, fabric `9.7.10→9.7.11`, sync\n  `9.7.14→9.7.15`, mma `9.7.15→9.7.16`, wgmma `9.7.16→9.7.17`, tcgen05\n  `9.7.17→9.7.18`, misc `9.7.20→9.7.21`).\n- Inside data movement, `applypriority.async.bulk[.tensor]` were inserted as\n  `9.7.10.18\u002F19`, so `9.7.9.18..27 → 9.7.10.20..29` (+2), and \"Overriding\n  tensor property value\" as `9.7.10.28.5.2`, so\n  `9.7.9.26.5.2..4 → 9.7.10.28.5.3..5`.\n- Inside tcgen05, \"Decompression of input matrices\" became `9.7.18.10.8`,\n  so `9.7.17.10.8.x → 9.7.18.10.9.x` and `9.7.17.10.9.x → 9.7.18.10.10.x`.\n- Global tables: tcgen05.ld\u002Fst register-count tables `52\u002F53 → 59\u002F61`,\n  tensormap `new_val` validity `33 → 36`; the relaxed-typing tables `27\u002F28`\n  kept their numbers.\n- Two files still carried 9.2 numbering (`test_ptx_cvt.py`, `render.py`:\n  cvt as `9.7.9.21`, which in 9.3 is cvta) — check every file's baseline\n  before mapping it.\n- Toolchain facts that changed on 13.4: the `.L2::cache_hint` diagnostics\n  on `.shared`\u002F`.local`\u002F`.volatile`, the bare\n  `clusterlaunchcontrol.query_cancel` diagnostic, `multimem.st.async`\n  accepting 16\u002F32-bit sources for its byte forms, and the bf16 atom\n  bit-bucket forms compiling again (still withheld pending certification).\n- 9.4-only sections worth registering later: `9.7.6.1-4` (alternate FP\n  x4 arithmetic, sm_100a\u002Fsm_103a), `9.7.10.28.1.3` (report mechanisms),\n  `9.7.18.10.7.2.6 \u002F .3.6` (block16 K=128\u002F256 scale layouts).\n","# TIRx PTX dialect (`T.ptx`)\n\n`T.ptx.\u003Cmnemonic>.\u003Cqualifiers>(operands...)` is not hand-written per\ninstruction. One data table describes every instruction family; one engine\nresolves calls, renders an inline-asm helper, and registers the TVM op; three\ngenerators derive the IDE stub, a coverage table and a helper dump from the\nsame table. Adding an instruction means adding **data**, then proving it\nagainst ptxas.\n\n| file | role |\n|---|---|\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Ftable.py` | the table: `InstructionEntry` \u002F `ModifierSlot` \u002F `OperandSlot`, check functions, variant enumeration. tvm-free. **Read its three dataclass docstrings before editing.** |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Frender.py` | renders one variant to a `__forceinline__ __device__` helper (`asm` or `asm volatile`, according to `asm_volatile`). `CBinding` = how each TVM dtype binds a register; `BRIDGE` = three scoped cases covering the two register classes inline asm cannot bind directly (`.pred`, and the block-local `.b8` registers behind the `e2m1x2` and `st_async_b8reg` tokens) — not a general `.b8` mechanism. tvm-free. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fengine.py` | `register_table()` makes each entry a TVM op `tirx.ptx.\u003Cname>` with a generic codegen; `PTXNamespace` resolves `T.ptx` attribute chains and the string form `T.ptx[\"...\"]`; trace-time coercion and `check`\u002F`imm_check`. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_stubs.py` | `python -m tvm.backend.cuda.ptx.gen_stubs -o python\u002Ftvm\u002Fscript\u002Ftirx.pyi` — the checked-in stub; a test diffs it against the generator. |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_helpers.py` | `python -m tvm.backend.cuda.ptx.gen_helpers \u003Cfamily>` — dump the exact helper source of every variant without compiling a kernel (it still imports `tvm`, so it needs the usual built worktree on `PYTHONPATH`). |\n| `python\u002Ftvm\u002Fbackend\u002Fcuda\u002Fptx\u002Fgen_coverage.py` | markdown coverage table of the whole dialect. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py` | per-ISA-section dispatch tests, structural invariants, ptxas certification. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_cvt.py` | one case per registered `cvt` syntax line (`_FORM_CASES`); coverage of every cvt entry is asserted. |\n| `tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_addr.py` | `T.ptx.addr(base, byte_offset)` immediates. |\n\nThe namespace itself is installed by `python\u002Ftvm\u002Fbackend\u002Fcuda\u002F__init__.py::script_namespaces()`;\nnothing there changes when the table grows.\n\n> **DO NOT introduce a new mechanism in an `InstructionEntry` without the\n> user's explicit approval.** Stop, explain why the existing entry model is\n> insufficient and what codegen or validation behavior the mechanism would\n> add, then wait for approval before implementing it.\n\n## 1. Ground rules the table enforces\n\nThe first four are tested mechanically — a new entry that breaks one fails\nthe suite. The last one (what the comments claim) is audited by hand, §4.\n\n- **One entry = one syntax shape.** Split into sibling entries sharing the\n  `mnemonic` when the register-group shape or the result structure changes\n  (scalar vs vector destination, `mul` vs `mul.wide`), or when an optional\n  operand is told apart only by call arity (`{, count}`, `state` vs the `_`\n  sink); the engine then selects by arity and by which tokens are written.\n  An operand whose presence is fixed by one written qualifier stays in the\n  entry with a 0-or-1-register `lanes` function — `{, cache_policy}` with\n  `.L2::cache_hint`, `{, ctaMask}` with `.multicast::cluster` use\n  `lanes=_present_lanes(\"\u003Cslot>\")`. Variants that only add or remove dotted\n  qualifiers are optional slots of one entry.\n- **Single-instruction invariant**: every helper emits exactly one native PTX\n  instruction. The only extra statements allowed are the framework `@p`\n  wrapper and the `BRIDGE` boundary conversions. `raw_render` is the escape\n  hatch and every user of it must be listed in `RAW_ENTRIES` inside\n  `test_ptx_single_instruction_invariant`.\n- **Every legal closed variant assembles**: `renderings()` enumerates the\n  product of modifiers × operand dtypes × closed immediates × `@p` (for\n  entries without a destination) and full certification assembles all of it\n  through ptxas at `cert_arch`. Four things get *representative* coverage\n  instead of the full product, and each says so in its docstring: an OPEN\n  immediate is certified at `imm_combos`'s samples (default `\"0\"`), which\n  proves the shape, not the caller's constant; sink masks are walked once at\n  one representative modifier combination per sink domain (`renderings`);\n  address immediates are a small separate axis (`_addr_offset_samples`);\n  and the destination-predicated `pred=` helpers (`*_pred_undef` \u002F\n  `*_pred_keep`) are not enumerated at all — cover those with a\n  production-shaped test when a call site needs them. Conversely a `check()`\n  must never reject a legal form to make certification pass — narrow with\n  evidence.\n- **Dispatch must be unambiguous**: no two entries may accept the same call\n  (`test_ptx_dispatch_unambiguous`); helper names must be unique\n  (`test_ptx_all_variants_render_unique`).\n- **Comments cite the ISA**: the section number, the syntax line reproduced\n  verbatim, the type\u002Fqualifier domains, `sm_XX` floors, and a `NOT REGISTERED:`\n  note with the reason for every syntax line or token deliberately left out.\n  A fact that comes from ptxas rather than the document is marked `MEASURED`\n  and quotes the ptxas message. Section and table numbers follow the ISA\n  version named in the module docstring (currently **PTX ISA 9.4**, the CUDA\n  13.4 developer-preview document, see §5).\n\n## 2. Designing the entry\n\nOpen the instruction's section in the ISA document and transcribe, in this\norder:\n\n1. **Name \u002F mnemonic \u002F family.** `name` is the table key and must be a Python\n   identifier. Dotted mnemonics are a family plus single-choice slots\n   (`cvta.to.shared` → `cvta` + slots), or `mnemonic=\"st.bulk\"` with\n   `name=\"st_bulk\"` when the dot is part of the instruction's identity.\n   Several entries sharing a mnemonic (`mov`, `mbarrier`, `mma`) use\n   distinct `name`s (`mov`, `mov_pack_2`, ...) and the same `mnemonic`.\n   Entries that collide with an existing family on the same shape need a\n   suffix (`add_int` vs `add`\u002F`add_half`) and are told apart by their tokens.\n2. **Slots** (`ModifierSlot(name, choices, optional)`), in asm render order —\n   exactly the `{.qual}` positions of the syntax line, each with the ISA's\n   `.qual = { ... }` list as `choices`. Tokens with `::` are written as-is\n   (`\"shared::cta\"`); users type `shared__cta`. Python keywords get a\n   trailing underscore only at the call site (`global_`).\n3. **Operands** (`OperandSlot`), in PTX operand order, destinations first\n   because PTX writes them first:\n   - `rw`: `\"w\"` destination, `\"rw\"` accumulator (`\"+\"`), `\"r\"` input. A\n     `\"w\"` operand binds `\"=\"`; it does **not** block `pred=` — under a false\n     predicate the value is undefined unless the caller passes\n     `preserve_dst=True`, which switches the binding to `\"+\"` (see\n     `test_ptx_predicated_destination_*`). Those two helpers are rendered on\n     demand, not by `renderings()`.\n   - `kind`: `\"reg\"` (default), `\"addr\"` (`[%k]`, space from `space=` or the\n     entry's `space` slot; set `allow_imm_offset=True` only for an independent\n     byte address), `\"ptr\"` (raw pointer value), `\"imm\"` (text operand:\n     `literal=` fixed by the ISA, `choices=` closed caller set, neither = open\n     immediate certified at samples; validate open ones with `imm_check`).\n   - `dtype`: a `PTX_TYPE_DTYPES` key, a slot name, or a module-level pure\n     function of the modifier map (`_wide_dtype`). `None` means the entry's\n     `type` slot. `dtypes=` narrows\u002Fwidens the TVM dtype domain independently\n     (see the relaxed-carrier note in §6 before widening anything).\n   - `lanes` (int or function of the modifier map) for brace-enclosed register\n     groups; `vector=`, `bracket=`, `pipe=` for the few composite spellings;\n     `sinkable=` only where the ISA lets a caller write `_` for a lane.\n4. **`check`**: one pure module-level function `mod_map -> error | None` per\n   entry with a one-line docstring (it is surfaced by the stub and the coverage\n   table). Encode only what the ISA syntax block and notes state; every\n   restriction that comes from ptxas instead is a separate `MEASURED` clause.\n   Never a lambda: frozen dataclasses hash callables by identity.\n5. **`cert_arch`**: the **maximum** `sm_XX` floor over the entry's variants\n   (default is `PTX_ARCH`, `sm_90`). Certifying below a variant's floor makes\n   ptxas report legal forms as illegal, and that verdict would then get baked\n   into a `check()`.\n6. `orders_memory=True` for fences\u002Fbarriers\u002Fwaits (no address operand but the\n   `\"memory\"` clobber is needed); `asm_volatile` stays at its default.\n\nWorked example — the whole registration of `movmatrix` (commit a29a5e97ba,\n4 files, 40 lines):\n\n```python\n    # movmatrix per PTX ISA 9.7.16.5.17 -- transpose one distributed m8n8\n    # matrix whose 16-bit elements are carried by one b32 register per lane.\n    #\n    #   movmatrix.sync.aligned.m8n8.trans.b16 d, a;\n    InstructionEntry(\n        name=\"movmatrix\",\n        slots=(\n            ModifierSlot(\"sync\", (\"sync\",)),\n            ModifierSlot(\"aligned\", (\"aligned\",)),\n            ModifierSlot(\"shape\", (\"m8n8\",)),\n            ModifierSlot(\"trans\", (\"trans\",)),\n            ModifierSlot(\"type\", (\"b16\",)),\n        ),\n        cert_arch=\"sm_75\",\n        operands=(\n            OperandSlot(\"d\", rw=\"w\", dtype=\"b32\"),\n            OperandSlot(\"a\", dtype=\"b32\"),\n        ),\n    ),\n```\n\nPut the entry under its ISA chapter banner in `_ENTRIES` (`# PTX ISA 9.7.x —\n...`), next to the instructions it shares a mnemonic with.\n\n## 3. Verify — every gate, in this order\n\nRun from the TVM repo root with the workspace `PYTHONPATH` (see `tir-test`).\n\n1. **Table loads and enumerates.** A `check()` that filters out every\n   combination, a duplicate name, or a bad `allow_imm_offset` slot fails at\n   import.\n   ```bash\n   python -c \"from tvm.backend.cuda.ptx.table import TABLE, variants; e=TABLE['\u003Cname>']; print(len(variants(e)))\"\n   python -m tvm.backend.cuda.ptx.gen_helpers \u003Cname> | head -60   # eyeball the asm\n   ```\n2. **Add tests for the new surface** (before running the suite, so one run\n   settles everything):\n   - a call in the dispatch test of its ISA section\n     (`test_ptx_\u003Csection>_dispatch`) asserting the exact emitted line, e.g.\n     `assert \"mul.wide.s32 %0, %1, %2;\" in src`;\n   - a new `cvt` line → a `_FORM_CASES` row in `test_ptx_cvt.py`\n     (`test_cvt_cases_cover_every_registered_entry` fails otherwise);\n   - `raw_render` → `RAW_ENTRIES`;\n   - a destination-predicated (`pred=`) call site → a production-shaped\n     codegen test, since certification does not enumerate those helpers;\n   - only when the instruction belongs to the MegaMoE extracted-intrinsics\n     surface → its kernel and mnemonic list in\n     `3rdparty\u002Ftvm-tirx\u002Ftests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_cuda.py::test_megamoe_extracted_intrinsics_codegen`\n     (that test covers one workload, not the dialect).\n3. **Regenerate the stub** — any change to a family's tokens or shapes makes\n   `test_ptx_stub_up_to_date` fail until you do:\n   ```bash\n   python -m tvm.backend.cuda.ptx.gen_stubs -o python\u002Ftvm\u002Fscript\u002Ftirx.pyi\n   ```\n4. **Fast suite** (no `PTX_CERT`): structural invariants + dispatch tests +\n   a seeded ptxas sample.\n   ```bash\n   python -m pytest tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_cvt.py tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_addr.py -q\n   ```\n   `test_ptx_all_variants_render_unique` ends with `assert total == \u003CN>`;\n   its failure message prints the new total — update the constant and\n   re-run.\n5. **Full certification** — mandatory after any table change, and the only\n   gate that proves the domain. It assembles every closed variant of every\n   entry, split into 32 shards; pick 8, 16 or 32 workers to taste (each one\n   drives its own nvcc; `-n auto` on a many-core box mostly burns memory).\n   ~3.5 min at `-n 16`, ~6.5 min at `-n 8` on a B200-class host for the\n   ~760k-variant PTX ISA 9.4 table (`test_ptx_all_variants_render_unique`\n   pins the exact count).\n   ```bash\n   PTX_CERT=1 python -m pytest -n 16 -q \\\n     tests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_dialect.py::test_ptx_all_helpers_certify\n   ```\n   A failure names `\u003Carch> batch \u003Ck>` and the ptxas message. To find the\n   variant: render the failing family with `gen_helpers`, or assemble the\n   batch yourself (`nvcc -arch=\u003Carch> -ptx` then `ptxas`, map the error line\n   back to the preceding `.entry`). Fix by narrowing the domain with a\n   `MEASURED` clause, never by loosening the invariant.\n6. `pre-commit run --files \u003Cchanged files>` and commit as\n   `feat(lower-tirx): support PTX \u003Cinstruction>` (Conventional Commits, see\n   the workspace `CLAUDE.md`).\n\n## 4. Auditing the comments against the ISA\n\nThe comments are load-bearing (they are what a reviewer checks the data\nagainst), so audit them the way the data is certified: download the ISA HTML\nfor the version the module docstring names, convert to text, and verify every\nsection number, quoted sentence, reproduced syntax line, type list and\n`sm_XX` note. Things that have gone wrong before and are worth a targeted\npass: a `NOT REGISTERED` bullet naming something the table registers a few\nhundred lines later; a section number copied from a neighbouring\ninstruction; a version number attached to the wrong syntax line; \"the N-th\nsyntax line\" ordinals; `Table NN` numbers, which are global and shift between\nISA versions.\n\n## 5. Toolchain and ISA-version model\n\n- The dialect targets the **ptxas of the installed CUDA toolkit**, not the\n  latest ISA document. CUDA 13.4's ptxas implements PTX ISA 9.4. Establish\n  what yours implements from ptxas itself — `nvcc -ptx` only shows the\n  version the front end chose to emit, and `-ptx` never validates inline\n  asm:\n  ```bash\n  command -v nvcc ptxas && nvcc --version | tail -1 && ptxas --version | tail -1\n  printf '.version 9.4\\n.target sm_107a\\n.address_size 64\\n.visible .entry k() { ret; }\\n' \\\n    | ptxas -arch=sm_107a - -o \u002Fdev\u002Fnull   # CUDA 13.4: accepted\n  ```\n  A `.version` directive above what ptxas implements is refused outright\n  (\"Unsupported .version ...; current version is '9.4'\"), which is the\n  quickest way to read a toolkit's ceiling. Then let the certification suite\n  (which compiles real inline-asm helpers to cubin) be the final word.\n- The table's citations follow that same version (module docstring of\n  `table.py`: \"Section and table numbers cite PTX ISA 9.4\", URL\n  `docs.nvidia.com\u002Fcuda\u002Fdeveloper-preview\u002F13.4\u002Fparallel-thread-execution\u002F`;\n  once CUDA 13.4 ships, the stable copy is\n  `docs.nvidia.com\u002Fcuda\u002Farchive\u002F13.4.0\u002Fparallel-thread-execution\u002F`). The\n  live `docs.nvidia.com\u002Fcuda\u002Fparallel-thread-execution\u002F` page is whatever\n  version is newest and its numbering differs; every ISA version stays\n  available under `docs.nvidia.com\u002Fcuda\u002Farchive\u002F\u003Ccuda version>\u002F`.\n- Every `MEASURED` clause in `table.py` \u002F `render.py` names the toolkit it\n  was taken on (currently CUDA 13.4). A toolkit bump re-measures all of them\n  (§6 step 5); a clause that names an older toolkit is a bug.\n- Certification needs only `nvcc`\u002F`ptxas`; the on-GPU round-trip tests need\n  a driver that can load a cubin from that toolkit. A newer toolkit with an\n  older driver can therefore certify a table but not run it.\n- `PTX_ARCH` (env, default `sm_90`) is the certification arch for entries\n  without `cert_arch`.\n\n## 6. Moving the table to a newer PTX ISA\n\nDo this as one commit series, in this order:\n\n1. **Toolchain first.** Install the CUDA toolkit whose ptxas implements the\n   target ISA and confirm via `.version` (§5). Until then, a new form cannot\n   be registered: certification would fail, and a `check()` written against\n   an older ptxas would silently delete the coverage later.\n2. **Build the section map structurally, from both TOCs.** Dump both HTML\n   documents to text, extract the two tables of contents (`\u003Cnum> \u003Ctitle>`),\n   and derive a `rule(old) -> new` function from where the new version\n   inserted sections; cross-check it by asserting every old `9.7.*` entry\n   maps to an identically titled new entry. Never trust title matching\n   alone (duplicate titles such as \"mov\" x2 or \"Async Proxy\" x2 collide) and\n   never shift chapters only — a chapter-only shift was the exact mistake\n   made the first time this table changed versions.\n3. **Retarget the citations.** Update the module docstring's version\n   statement and URL, then run the renumbering over `table.py`,\n   `engine.py`, `render.py`, `3rdparty\u002Ftvm-tirx\u002Ftests\u002Fpython\u002Ftirx\u002Fcodegen\u002Ftest_ptx_*.py` and\n   `test_cuda.py`, skipping any block that already carries the new\n   numbering (`_PTX_94_ENTRIES` was such a block for 9.3→9.4). Hand-fix the\n   forms a regex cannot: ranges that span an insertion (`9.7.x.a-b`), brace\n   groups (`9.7.4.{1,2,3}`), sibling shorthand (`.12`, `\u002F .17`), global\n   `Table NN` numbers, and `:line` offsets (re-derive against the new\n   section text from the quoted sentence, or drop the offset and keep the\n   quote). Then regenerate the stub (§3).\n4. **Register the newly legal forms.** Read the new version's release notes\n   (ISA chapter 13.1) and the per-section \"introduced in PTX ISA version\n   X.Y\" notes; each one: read the section, apply §2, then §3 including full\n   certification at the right `cert_arch`. Keep the new version's additions\n   grouped (the `_PTX_94_ENTRIES` list is the 9.4 group).\n5. **Re-measure every `MEASURED` clause on the new toolkit** and reword it\n   to name that toolkit. Registered forms are re-proven by full\n   certification; excluded forms need a targeted probe each (raw PTX through\n   `ptxas -arch=\u003Ca>` for grammar claims, an exact force-inlined kernel\n   through `nvcc` for crash claims — `test_ptx_dialect._certification_kernel`\n   builds that shape). Quote the diagnostic the new ptxas actually prints;\n   texts change between releases. If a gap has closed, either widen the\n   domain with certification or say so in the clause — never leave a\n   sentence that attributes the restriction to a toolkit you no longer use.\n   ISA §9.4.1 Tables 27\u002F28 are an upper bound and say so (\"some combinations\n   may still be invalid for a particular instruction\"); the `_cvt_dst_dtypes`\n   \u002F `_cvt_src_dtypes` docstrings record the measured gaps.\n6. Regenerate the stub, update the variant\u002Faddress counts the tests pin,\n   run the full suite, and run the §4 audit against the new document before\n   merging.\n\nWorked example, PTX ISA 9.3 → 9.4:\n\n- 9.4 inserted chapter `9.7.6 Alternate Floating-Point Instructions`, so\n  every `9.7.N` with N ≥ 6 became `9.7.(N+1)` (comparison `9.7.6→9.7.7`,\n  data movement `9.7.9→9.7.10`, fabric `9.7.10→9.7.11`, sync\n  `9.7.14→9.7.15`, mma `9.7.15→9.7.16`, wgmma `9.7.16→9.7.17`, tcgen05\n  `9.7.17→9.7.18`, misc `9.7.20→9.7.21`).\n- Inside data movement, `applypriority.async.bulk[.tensor]` were inserted as\n  `9.7.10.18\u002F19`, so `9.7.9.18..27 → 9.7.10.20..29` (+2), and \"Overriding\n  tensor property value\" as `9.7.10.28.5.2`, so\n  `9.7.9.26.5.2..4 → 9.7.10.28.5.3..5`.\n- Inside tcgen05, \"Decompression of input matrices\" became `9.7.18.10.8`,\n  so `9.7.17.10.8.x → 9.7.18.10.9.x` and `9.7.17.10.9.x → 9.7.18.10.10.x`.\n- Global tables: tcgen05.ld\u002Fst register-count tables `52\u002F53 → 59\u002F61`,\n  tensormap `new_val` validity `33 → 36`; the relaxed-typing tables `27\u002F28`\n  kept their numbers.\n- Two files still carried 9.2 numbering (`test_ptx_cvt.py`, `render.py`:\n  cvt as `9.7.9.21`, which in 9.3 is cvta) — check every file's baseline\n  before mapping it.\n- Toolchain facts that changed on 13.4: the `.L2::cache_hint` diagnostics\n  on `.shared`\u002F`.local`\u002F`.volatile`, the bare\n  `clusterlaunchcontrol.query_cancel` diagnostic, `multimem.st.async`\n  accepting 16\u002F32-bit sources for its byte forms, and the bf16 atom\n  bit-bucket forms compiling again (still withheld pending certification).\n- 9.4-only sections worth registering later: `9.7.6.1-4` (alternate FP\n  x4 arithmetic, sm_100a\u002Fsm_103a), `9.7.10.28.1.3` (report mechanisms),\n  `9.7.18.10.7.2.6 \u002F .3.6` (block16 K=128\u002F256 scale layouts).\n",{"name":5,"description":7},"main","70ec7d5bf20326ef301ee3f06eb6aed51760331d",".agents\u002Fskills\u002Ftirx-ptx-dialect",4044,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm","https:\u002F\u002Ftvm.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-13 09:16:04",{"source":9,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add apache\u002Ftvm --skill tirx-ptx-dialect",{"tool":54,"command":55},"bunx","bunx skills add apache\u002Ftvm --skill tirx-ptx-dialect",{"tool":57,"command":58},"pnpm","pnpm dlx skills add apache\u002Ftvm --skill tirx-ptx-dialect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftirx-ptx-dialect\u002FSKILL.md",true,[],[63,79],{"skillNo":64,"name":65,"nameZh":66,"description":67,"descriptionZh":68,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":69,"categories":70,"keywords":75,"publishedAt":34},"01M6ACC45MKWYRHQ9CAD1Q254Q","tir-test","TVM TIRx 测试运行","Run TVM's in-tree TIRx tests and tirx-kernels import and correctness checks.","运行 TVM 内置的 TIRx 测试，以及 tirx-kernels 的导入与正确性检查。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftir-test\u002FSKILL.md",[71,74],{"categoryNo":72,"categoryName":73,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[76,77,78,33],"test","tir test","run",{"skillNo":80,"name":81,"nameZh":82,"description":17,"descriptionZh":83,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":90,"publishedAt":34},"01M6ACC1F929HWF8S5Y1PCTQVC","tir-build","TVM TIR 构建","","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftir-build\u002FSKILL.md",[86,87],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[91],"tir build"]