tqchen commented on PR #17216:
URL: https://github.com/apache/tvm/pull/17216#issuecomment-2260887460

   I think this is mainly a design consideration here on what do we view the 
intended use of CreateCallTIR, in terms of different expectations we have on 
caller of the function. I can see some merits on auto deduction or call for 
explicitness
   
   Given `call_tir` is lower level, having "less automation" here during pass 
and have explicitly checking would ensure correctness while indeed asking pass 
writers to do a bit more. It is like explicitly annotating types when writing 
c++ code versus writing `auto`. I think encouraging pass writers to explicitly 
think about the DPS pattern and always provide the return argument helps to 
reduce uncertainty here. While I can indeed see some merits of automated 
decusion, given it is not always possible, I still prefer we have the 
explicitness and provide good amount of consistency checking
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to