[Mlir-commits] [mlir] 196a09f - [mlir][doc] Add basic doc for extraTraitClassDeclaration.

Jacques Pienaar llvmlistbot at llvm.org
Sat Oct 21 16:36:03 PDT 2023


Author: Jacques Pienaar
Date: 2023-10-21T16:34:56-07:00
New Revision: 196a09f477acdab4cb6275ef935de6a81e89b1c1

URL: https://github.com/llvm/llvm-project/commit/196a09f477acdab4cb6275ef935de6a81e89b1c1
DIFF: https://github.com/llvm/llvm-project/commit/196a09f477acdab4cb6275ef935de6a81e89b1c1.diff

LOG: [mlir][doc] Add basic doc for extraTraitClassDeclaration.

Fixes #61247.

Added: 
    

Modified: 
    mlir/docs/Interfaces.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Interfaces.md b/mlir/docs/Interfaces.md
index e9236c9dfe17618..343522c5a3258d6 100644
--- a/mlir/docs/Interfaces.md
+++ b/mlir/docs/Interfaces.md
@@ -409,6 +409,10 @@ comprised of the following components:
         the instance is the interface class. In the trait declaration, the
         type of the instance is the concrete entity class
         (e.g. `IntegerAttr`, `FuncOp`, etc.).
+*   Extra Trait Class Declarations (Optional: `extraTraitClassDeclaration`)
+    -   Additional C++ code that is injected into the interface trait
+        declaration.
+    -   Allows the same replacements as extra shared class declarations.
 
 `OpInterface` classes may additionally contain the following:
 


        


More information about the Mlir-commits mailing list