diff options
| author | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 13:12:28 +0100 |
|---|---|---|
| committer | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 13:14:44 +0100 |
| commit | e901a7b99aa88d57009e5f9aca3ce838e5ccae8d (patch) | |
| tree | 33739b11a86a836d223a432f64ad3a0dae596685 /docs/related_projects.md | |
| parent | 99f99890c5ebe186ef2f9fe8ff6d675745d9e621 (diff) | |
tools: isa_coverage.py, RDNA2 ISA coverage of the translator from AMD's XML
Reads AMD's machine-readable RDNA2 ISA spec (path given with --isa, not vendored), scans
tools/rdna2spirv.py statically with ast and reports, per encoding, which instructions have a
rule, are refused or are unknown, plus every matched name that is not an RDNA2 instruction.
Tests use a small hand-written fixture; the real-XML test skips without LEONIDA_RDNA2_ISA_XML.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/related_projects.md')
| -rw-r--r-- | docs/related_projects.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/related_projects.md b/docs/related_projects.md index be9256ade..508af1733 100644 --- a/docs/related_projects.md +++ b/docs/related_projects.md | |||
| @@ -84,6 +84,19 @@ and file list in its README) with the licence file. `runtime/shims/xgameruntime. | |||
| 84 | `xgameruntime.dll` imports. The HTTP and WebSocket stack is not included. Unlike the projects above, this is code | 84 | `xgameruntime.dll` imports. The HTTP and WebSocket stack is not included. Unlike the projects above, this is code |
| 85 | use under a compatible licence, so the MIT notice must stay with the files. | 85 | use under a compatible licence, so the MIT notice must stay with the files. |
| 86 | 86 | ||
| 87 | ## AMD machine-readable GPU ISA specification | ||
| 88 | |||
| 89 | <https://gpuopen.com/machine-readable-isa> (reader: <https://github.com/GPUOpen-Tools/isa_spec_manager>) | ||
| 90 | |||
| 91 | AMD's XML description of the RDNA and CDNA instruction sets: instructions, encodings, operands, data formats. | ||
| 92 | |||
| 93 | **Licence:** MIT (`<License>MIT</License>` in each XML file; `isa_spec_manager` is MIT too), compatible with | ||
| 94 | GPL-3.0-or-later. | ||
| 95 | |||
| 96 | **What we use it for:** `tools/isa_coverage.py` reads `amdgpu_isa_rdna2.xml` from a path the user supplies and counts | ||
| 97 | which instructions the translator has a rule for ([isa_coverage.md](isa_coverage.md)). The XML is not vendored (11 MB); | ||
| 98 | tests use a small fixture of our own in the same schema. | ||
| 99 | |||
| 87 | ## The line | 100 | ## The line |
| 88 | 101 | ||
| 89 | | Fine | Not fine | | 102 | | Fine | Not fine | |