Star
81
Fork
27
代码
介绍
代码
Issues
9
Pull Requests
9
流水线
Actions
讨论
Wiki
项目成员
44
分析
项目设置
Star
81
Fork
27
master
msdebug
/
mlir
/
examples
/
toy
/
Ch6
/
include
下载当前目录
M
Martin Erhart
[mlir] Move FunctionInterfaces to Interfaces directory and inherit from CallableOpInterface
34a35a8b
创建于
2023年8月31日
历史提交
文件
最后提交记录
最后更新时间
toy
[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
2 年前
CMakeLists.txt
Add Ch.6 of the Toy tutorial. This chapters introduces the notion of a full conversion, and adds support for lowering down to the LLVM dialect, LLVM IR, and thus code generation. PiperOrigin-RevId: 275337786
6 年前