[tir] Add fake support for 'call_tir' op#12973
Conversation
|
@tvm-bot rerun |
Allow TVMScript to contain `T.call_tir(...)` calls. This is a small step toward a complete implementation of the 'call_tir' functionality. The op does nothing, and its arguments are not evaluated at runtime.
|
Hi @cconvey, What's the reason we can't implement this now as an Allocate and a Call? |
Thanks for the idea @Mousius ! Would you mind elaborating? It's entirely possible your idea makes sense, but I'm new to this area of the code, so some more detail would be helpful. |
I believe this is implementing the same Which would mean that for a short-term solution, instead of a no-op, you could rewrite it to allocate the buffer, here's my pseudo-code: The reason I suggest this approach is that provided you rewrote the original |
|
Hey @Mousius . There's a couple of intended differences between the TIR-level
This could be represented at the TIR level using either
Ideally, we'd want something that has the following properties
We're in the process of seeing how much of a TIR-level |
|
Ahh, sorry @Lunderberg, two things named the same and all that 😸 in which case would it be useful to map this to |
|
@tvm-bot rerun |
Mousius
left a comment
There was a problem hiding this comment.
@Lunderberg / @cconvey happy for this to go in as-is 😸
|
@cconvey I think this has been superseded, can we close? |
|
Closing for now, re-open if necessary 😸 |
Allow TVMScript to contain
T.call_tir(...)calls. This is a small step toward a complete implementation of the 'call_tir' functionality. The op does nothing, and its arguments are not evaluated at runtime.