Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Sep 13, 2025

This PR updates TVM_FFI_STATIC_INIT_BLOCK to function style. Now we do the code as follows, which is cleaner in generally and also helps error reporting to locate the right place.

TVM_FFI_STATIC_INIT_BLOCK() {
  RegisterStaffs();
}

@tqchen
Copy link
Member Author

tqchen commented Sep 13, 2025

https://gist.github.com/tqchen/f86ba7c4ce1edad93f85bd6a3b6dffb3 contains a script to do auto migration

This PR updates TVM_FFI_STATIC_INIT_BLOCK to function style.
Now we do the code as follows, which is cleaner in generally
and also helps error reporting to locate the right place.

TVM_FFI_STATIC_INIT_BLOCK() {
  RegisterStaffs();
}
@MasterJH5574 MasterJH5574 merged commit 5ddc5bc into apache:main Sep 13, 2025
13 checks passed
MasterJH5574 added a commit to MasterJH5574/mlc-llm that referenced this pull request Sep 14, 2025
Following apache/tvm#18312, this PR updates the
`TVM_FFI_STATIC_INIT_BLOCK` to functional style.
MasterJH5574 added a commit to mlc-ai/mlc-llm that referenced this pull request Sep 14, 2025
Following apache/tvm#18312, this PR updates the
`TVM_FFI_STATIC_INIT_BLOCK` to functional style.
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