Skip to content

Commit b565ee1

Browse files
[acc] Fix OpenACC documentation (#77502)
After PR#75548, the OpenACC documentation on the MLIR website has a few issues. This change corrects them: - Renames OpenACC.md to OpenACCDialect.md so that links remain unchanged. In its current state, the links to https://mlir.llvm.org/docs/Dialects/OpenACCDialect/ no longer work. - Since the old OpenACCDialect.md (the one with operation definitions) is being included in the new file, rename the old file to prevent name ambiguity. - A header is needed in the .md file, otherwise the index on website is not properly created. - Add a new section before including the operations .md file because otherwise the separation is not clear.
1 parent 3210ce2 commit b565ee1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mlir/docs/Dialects/OpenACC.md renamed to mlir/docs/Dialects/OpenACCDialect.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 'acc' Dialect
2+
13
The `acc` dialect is an MLIR dialect for representing the OpenACC
24
programming model. OpenACC is a standardized directive-based model which
35
is used with C, C++, and Fortran to enable programmers to expose
@@ -446,4 +448,6 @@ operations are intended to be optimized in the following ways:
446448
dominates another.
447449
* Be able to hoist/sink such operations out of loops.
448450

449-
[include "Dialects/OpenACCDialect.md"]
451+
## Operations TOC
452+
453+
[include "Dialects/OpenACCDialectOps.md"]

mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ add_public_tablegen_target(acc_common_td)
44

55
add_mlir_dialect(OpenACCOps acc)
66

7-
add_mlir_doc(OpenACCOps OpenACCDialect Dialects/ -gen-dialect-doc -dialect=acc)
8-
add_dependencies(OpenACCDialectDocGen acc_common_td)
7+
add_mlir_doc(OpenACCOps OpenACCDialectOps Dialects/ -gen-dialect-doc -dialect=acc)
8+
add_dependencies(OpenACCDialectOpsDocGen acc_common_td)
99

1010
set(LLVM_TARGET_DEFINITIONS OpenACCOps.td)
1111
mlir_tablegen(OpenACCOpsEnums.h.inc -gen-enum-decls)

0 commit comments

Comments
 (0)