aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRik Huijzer <github@huijzer.xyz>2023-11-30 10:29:50 +0100
committerGitHub <noreply@github.com>2023-11-30 10:29:50 +0100
commite9869b57707fc6dd828872a70c2f377cc0061978 (patch)
tree425af3556f76f010e659b0b6b47388188c58e450 /clang/lib/CodeGen/CodeGenModule.cpp
parentb72456120f1db38ed7068fb592fcf768c6d5cce2 (diff)
downloadllvm-e9869b57707fc6dd828872a70c2f377cc0061978.zip
llvm-e9869b57707fc6dd828872a70c2f377cc0061978.tar.gz
llvm-e9869b57707fc6dd828872a70c2f377cc0061978.tar.bz2
[mlir][docgen] Add ops source link (#73657)
This patch suggests to change two things. Firstly, it adds a source link above the generated operations docs (above the `emitOpDoc` calls). This link will point directly to the source TableGen file for the group of operations. For example, for the current [`amdgpu`](https://mlir.llvm.org/docs/Dialects/AMDGPU/) page, the link will add a source link below the "Operation definition" heading pointing to [`mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPU.td`](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPU.td). The link is wrapped in a "op-definitions-source-link" class which could allow for custom styling, but it also looks reasonable without custom styling I think: ![afbeelding](https://github.com/llvm/llvm-project/assets/20724914/7c0e59b9-b14b-4f5d-a671-c87e857a7b03) Secondly, this patch simplifies the header names such as "Operation definition" and "Attribute definition" to "Operations" and "Attributes" respectively. This is in line with manually defined subheadings on pages such as the one for the [`vector`](https://mlir.llvm.org/docs/Dialects/Vector/#operations) dialect.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions