[mlir] fix documentation includes

This commit is contained in:
Alex Zinenko 2023-05-31 08:58:16 +00:00
parent 895b555378
commit d8c18e422b
6 changed files with 18 additions and 5 deletions

View File

@ -28,6 +28,10 @@ This document describes the available MLIR passes and their contracts.
[include "ArithPasses.md"]
## 'arm\_sme' Dialect Passes
[include "ArmSMEPasses.md"]
## 'async' Dialect Passes
[include "AsyncPasses.md"]

View File

@ -325,3 +325,7 @@ transform.sequence failures(propagate) {
transform.yield
}
```
## Appendix: Autogenerated Documentation
[include "MyExtensionCh2.md"]

View File

@ -280,4 +280,7 @@ def CallToOp : Op<Transform_Dialect, "my.call_to_op",
}
```
## Appendix: Autogenerated Documentation
[include "MyExtensionCh3.md"]

View File

@ -15,7 +15,7 @@ demonstration of three use scenarios:
code to work with the transform dialect infrastructure.
- Setting up and using the transform dialect infrastructure in a downstream
out-of-tree project with custom dialects, transformations and passes.
After following the tutorial, one will be able to apply the transform dialect in
their work and extend it when necessary. Basic familiarity with MLIR is a
prerequisite. See [Toy tutorial](../Toy) for introduction to MLIR.

View File

@ -8,5 +8,6 @@ mlir_tablegen(MyExtension.cpp.inc -gen-op-defs)
# Add a CMakeTarget we can depend on to ensure the generation happens before the compilation.
add_public_tablegen_target(MyExtensionCh2IncGen)
# Don't forget to generate the documentation, this will produce a MyExtension.md under Dialects.
add_mlir_doc(MyExtension MyExtensionCh2 Dialects/ -gen-op-doc)
# Don't forget to generate the documentation, this will produce a
# MyExtensionCh2.md under Tutorials/transform
add_mlir_doc(MyExtension MyExtensionCh2 Tutorials/transform/ -gen-op-doc)

View File

@ -15,5 +15,6 @@ mlir_tablegen(MyExtensionTypes.cpp.inc -gen-typedef-defs)
# Add a CMakeTarget we can depend on to ensure the generation happens before the compilation.
add_public_tablegen_target(MyExtensionCh3IncGen)
# Don't forget to generate the documentation, this will produce a MyExtension.md under Dialects.
add_mlir_doc(MyExtension MyExtensionCh3 Dialects/ -gen-op-doc)
# Don't forget to generate the documentation, this will produce a
# MyExtensionCh3.md under Tutorials/transform
add_mlir_doc(MyExtension MyExtensionCh3 Tutorials/transform/ -gen-op-doc)