Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Jul 15, 2025

This PR migrates the remaining global def reg to use the new mechanism. It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of the GlobalDef mechanism.

@Johnson9009
Copy link
Contributor

In the previous reflection design and implementation it can be used in runtime, because its runtime overhead is too big to runtime code.

Does the new reflection can be used in runtime code or not? If so does it introduce extra obvious runtime overhead?Thanks.

@tqchen
Copy link
Member Author

tqchen commented Jul 15, 2025

thanks @Johnson9009 yes, it is effectively the same thing, just different syntax sugar. so it will have the same overhead as original one

This PR migrates the remaining global def reg to use the new mechanism.
It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of
the GlobalDef mechanism.
Copy link
Contributor

@MasterJH5574 MasterJH5574 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MasterJH5574 MasterJH5574 merged commit b4a6b73 into main Jul 15, 2025
13 checks passed
@tqchen tqchen deleted the refl-cleanup branch July 17, 2025 19:17
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…ef (apache#18148)

This PR migrates the remaining global def reg to use the new mechanism.
It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of
the GlobalDef mechanism.
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
…ef (apache#18148)

This PR migrates the remaining global def reg to use the new mechanism.
It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of
the GlobalDef mechanism.
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
…ef (apache#18148)

This PR migrates the remaining global def reg to use the new mechanism.
It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of
the GlobalDef mechanism.
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
…ef (apache#18148)

This PR migrates the remaining global def reg to use the new mechanism.
It also phases out the TVM_FFI_REGISTER_GLOBAL macro in favor of
the GlobalDef mechanism.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants