tqchen opened a new pull request, #20462: URL: https://github.com/apache/tvm/pull/20462
## Summary DataType values can be ordinary operation arguments, but their type and TVMScript spelling currently live in Relax. This PR moves AnyType to the root IR layer and shares DataType-valued constant construction and printing across dialects. - Define `AnyType` in the root IR type layer as `ir.AnyType`; Relax keeps its `AnyType`/`ObjectType` aliases and `R.Any`, and JSON using the former `relax.AnyType` key is upgraded on load. - Expose `dtype` as an ordinary shared builder call constructing a `GenericConst` typed by `AnyType`; DataType values print as `T.dtype(...)` (including inside Relax functions) and `I.dtype(...)` in shared IR module contexts, while `R.dtype` remains accepted when parsing. - Treat generic constants as leaves in TIR path traversal so DataType values can appear in operation arguments. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
