support function call in dsl #239
Closed
mouliangyu
started this conversation in
Ideas
Replies: 1 comment
-
|
当前已支持使用@inline_proc装饰器进行函数调用 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当前我们dsl 内不支持函数调用,像 vmod 这种软实现的接口目前就只能暴力展开在 trems 实现内。我想加上函数调用的支持,允许 dsl 侧自己做一些接口封装。当前思路为
dsl 支持 pto.func 装饰器,callsite 生成函数调用并做 callee 的实例化,并在 callee 上标记 pto.always_inline attr。
ptoas 中 parse mlir 后,由专用 pass 完成函数 inline
Beta Was this translation helpful? Give feedback.
All reactions