@wrongtest I've thought about the option A3 vs A4. From the parsing / 
translation from TVM script to TIR, it is acceptable to have `T.allocate` 
translated to `Allocate + DeclBuffer` two nodes. But it will be tricky for 
`TVMScriptPrinter`. We will need to find both `Allocate` and `DeclBuffer` nodes 
and then print `T.allocate`, and these two nodes do not have to be parent/child 
of each other. I'm not sure if this behavior, which breaks 1-to-1 mapping 
between TVM script and TIR, is desirable. Alternatively, we can add an option 
to `T.allocate`, such as `def allocate(..., return_buffer: bool)`. What do you 
think?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/70#issuecomment-1133153361
You are receiving this because you are subscribed to this thread.

Message ID: <apache/tvm-rfcs/pull/70/c1133153...@github.com>

Reply via email to