tqchen opened a new pull request, #19625:
URL: https://github.com/apache/tvm/pull/19625

   ## Summary
   
   `ReplaceGlobalVars` was a public IR-layer API with only one in-tree C++
   caller (`relax::AttachGlobalSymbol`). The mechanism used a NodeFunctor
   vtable populated at static-init time by per-dialect `.cc` files in
   relax and tirx, which made the IR layer logically depend on its
   dialects even though the include graph did not show it.
   
   Move the dispatch logic into the consumer as file-local mutators and
   a private helper. Delete the public header, the IR-layer driver, both
   per-dialect dispatch registrations, the `IRModule.replace_global_vars`
   python method, and its dedicated test file. The behavior is still
   covered by `tests/python/relax/test_transform_attach_global_symbol.py`
   and by the pipelines that include the `AttachGlobalSymbol` pass.


-- 
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]

Reply via email to