diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-09 17:15:47 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-12 12:11:38 +0000 |
commit | 86a053f7b903225b0a7992dd8d5e80c6f0360700 (patch) | |
tree | 0d424787686698e1919ff12f15e8374a35120e30 /docs | |
parent | bd466195b9314997936fe6ea98e4d9eb3aa49eae (diff) | |
download | mesa-86a053f7b903225b0a7992dd8d5e80c6f0360700.tar.gz |
docs: Include ALU opcode descriptions
If we have a description for an ALU opcode in NIR, include it with our generated
HTML documentation so people don't need to go to nir_opcodes.py anyway because
the documentation is missing the documentation ;-)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Tested-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22929>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/_exts/nir.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/_exts/nir.py b/docs/_exts/nir.py index f7f6baff271..7d641d73006 100644 --- a/docs/_exts/nir.py +++ b/docs/_exts/nir.py @@ -58,6 +58,8 @@ def to_yn(b): - ${to_yn('associative' in op.algebraic_properties)} - ${to_yn('2src_commutative' in op.algebraic_properties)} +${("**Description:** " + op.description) if op.description != "" else ""} + **Constant-folding:** .. code-block:: c |