[Mlir-commits] [mlir] [mlir][docs] dialect interfaces and mlir reduce documentation fix (PR #189258)

Mehdi Amini llvmlistbot at llvm.org
Sun Mar 29 09:50:35 PDT 2026


================
@@ -151,6 +151,32 @@ mlir_tablegen(DialectInlinerInterface.h.inc -gen-dialect-interface-decls)
 An example of this can be found in the DialectInlinerInterface implementation 
 and the related `CMakeLists.txt` under `mlir/include/mlir/Transforms`.
 
+##### Dialect Interface Methods
+
+There are three types of methods that can be used with a dialect interface,
+`InterfaceMethod`, `InterfaceMethodDeclaration` and `PureVirtualInterfaceMethod`.
+They are all comprised of the same core components, with the distinction that 
+`InterfaceMethod` also supports a default method body.
+
+Interface methods are comprised of the following components:
+
+*   Description
+    -   A string description of this method, its invariants, example usages,
+        etc.
----------------
joker-eph wrote:

```suggestion
*   Description: a string description of this method, its invariants, example usages, etc.
```

Not sure why the 2-level list? Same below.

https://github.com/llvm/llvm-project/pull/189258


More information about the Mlir-commits mailing list