Hzfengsy opened a new pull request, #18060: URL: https://github.com/apache/tvm/pull/18060
This commit introduces Python interfaces for TIR functors, enabling Python-side customization of expression and statement visiting and mutation operations. Key changes: - Add PyStmtExprVisitorNode and PyStmtExprMutatorNode classes in C++ - Implement Python bindings for all TIR expression and statement types - Support both visitor (read-only) and mutator (transforming) patterns - Add comprehensive dispatch mechanisms for Python callbacks - Include FFI registrations for Python-C++ interoperability This enables users to write custom TIR transformations and analysis passes directly in Python while maintaining performance through selective Python callback dispatch. -- 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]
