Ubospica opened a new pull request, #16090: URL: https://github.com/apache/tvm/pull/16090
This PR introduces a new pass NormalizeGlobalVar. This pass will possibly rename the GlobalVar in an IRModule to ensure these properties: 1. First ensure every public function has the same name as its "global_symbol" attribute; 2. To ensure 1., we may need to rename private functions with conflict name; 3. Finally, the name of every GlobalVar is unique in the IRModule. This is especially useful for BlockBuilder because we may 1) emit a private function and then 2) emit a public function with the same name. Previously, BlockBuilder will rename the latter, i.e. the public function. That leads the name of the public function does not match the name of its global_symbol attribute. This PR will use NormalizeGlobalVar to rename the result IRModule in `BlockBuilder.get()`. cc @junrushao @tqchen -- 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]
