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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 31 08:01:24 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.
----------------
aidint wrote:

This structure is used also here: https://github.com/aidint/llvm-project/blob/930734fdf088c26b784260bdb08887fee466fa3f/mlir/docs/Interfaces.md?plain=1#L546
I tried to keep it consistent. Should I change it?

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


More information about the Mlir-commits mailing list