Skip to content

Commit 196a09f

Browse files
committed
[mlir][doc] Add basic doc for extraTraitClassDeclaration.
Fixes llvm#61247.
1 parent 01ea528 commit 196a09f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlir/docs/Interfaces.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ comprised of the following components:
409409
the instance is the interface class. In the trait declaration, the
410410
type of the instance is the concrete entity class
411411
(e.g. `IntegerAttr`, `FuncOp`, etc.).
412+
* Extra Trait Class Declarations (Optional: `extraTraitClassDeclaration`)
413+
- Additional C++ code that is injected into the interface trait
414+
declaration.
415+
- Allows the same replacements as extra shared class declarations.
412416

413417
`OpInterface` classes may additionally contain the following:
414418

0 commit comments

Comments
 (0)