llvm-capstone/mlir/docs/Tutorials
Martin Erhart 34a35a8b24 [mlir] Move FunctionInterfaces to Interfaces directory and inherit from CallableOpInterface
Functions are always callable operations and thus every operation
implementing the `FunctionOpInterface` also implements the
`CallableOpInterface`. The only exception was the FuncOp in the toy
example. To make implementation of the `FunctionOpInterface` easier,
this commit lets `FunctionOpInterface` inherit from
`CallableOpInterface` and merges some of their methods. More precisely,
the `CallableOpInterface` has methods to get the argument and result
attributes and a method to get the result types of the callable region.
These methods are always implemented the same way as their analogues in
`FunctionOpInterface` and thus this commit moves all the argument and
result attribute handling methods to the callable interface as well as
the methods to get the argument and result types. The
`FuntionOpInterface` then does not have to declare them as well, but
just inherits them from the `CallableOpInterface`.
Adding the inheritance relation also required to move the
`FunctionOpInterface` from the IR directory to the Interfaces directory
since IR should not depend on Interfaces.

Reviewed By: jpienaar, springerm

Differential Revision: https://reviews.llvm.org/D157988
2023-08-31 11:28:23 +00:00
..
Toy [mlir] Move FunctionInterfaces to Interfaces directory and inherit from CallableOpInterface 2023-08-31 11:28:23 +00:00
transform [mlir][transform][tutorial] Fix typo in inline code snippet. (NFC) 2023-07-10 10:38:33 +00:00
_index.md [mlir] add initial chapters of the transform dialect tutorial 2023-05-30 15:26:58 +00:00
CreatingADialect.md [mlir][docs] Group the docs for defining dialect components 2022-12-02 13:38:14 -08:00
DataFlowAnalysis.md [mlir][NFC] Replace references to Identifier with StringAttr 2021-11-16 17:36:26 +00:00
QuickstartRewrites.md [mlir][docs] Group the docs for defining dialect components 2022-12-02 13:38:14 -08:00
UnderstandingTheIRStructure.md [mlir] Update mlir/docs/Tutorials/UnderstandingTheIRStructure.md (NFC) 2023-08-11 16:09:38 +08:00