Add a dialect docs

This commit is contained in:
ilgeco
2026-11-06 11:33:33 +01:00
parent 66db4b66da
commit f061cbf0ef
10 changed files with 2065 additions and 0 deletions
+21
View File
@@ -170,6 +170,27 @@ Do not refactor when:
# Documentation
* Keep `docs/dialects/index.html` current when operations, assembly, verifiers,
lowering, bufferization, or codegen contracts change. Update the same change.
* Each entry must describe the exact printed mnemonic and syntax, input/output
roles and shapes, attributes and units, semantics, and constraints. Distinguish
enforced checks from producer assumptions and backend limits. Read the relevant
implementation, not only the TableGen summary. Preserve the offline HTML format.
* State what every structural dimension and identifier counts. Distinguish SSA
values and fragment slots from logical model axes, memory allocation, and core
placement. For graph batches, follow the graph fragment invariant explicitly.
Do not assume input tensors have a leading lane dimension. Shared bindings
describe SSA reuse; they do not guarantee shared physical storage.
Trace input producers and layout descriptors. Inputs can use logical coordinates
or fragment slots; a logical tensor type does not guarantee dense storage.
* Run `.venv/bin/python docs/dialects/check_reference.py` and
`.venv/bin/python -m unittest discover -s docs/dialects -p 'test_*.py'`.
For syntax changes, parse and print affected examples with the current
`onnx-mlir-opt --maccel=PIM` build in their required region/weight context.
* Keep `docs/lowering-visuals/im2col-story` current when convolution, GEMM,
graph publication, or scheduling contracts change. Update the generator,
regenerate SVGs, and run `node docs/lowering-visuals/im2col-story/book.test.js`.
* Do not create or retain agent change reports, investigation logs, debugging histories, temporary benchmark audits, or task-completion summaries in repository documentation. Report these findings in the final response instead.
* Documentation should describe the current system, its contracts, usage, and reproducible methodology. Document lasting limitations where relevant, without narrating how they were discovered or fixed.