Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Jul 13, 2025

This PR migrates most TVM_FFI_REGISTER_GLOBAL registrations
to new reflection style.

tqchen added 2 commits July 12, 2025 17:06
This PR migrates most TVM_FFI_REGISTER_GLOBAL registrations
to new reflection style.
@yongwww yongwww merged commit 99f5e66 into apache:main Jul 13, 2025
13 checks passed
@tqchen
Copy link
Member Author

tqchen commented Jul 14, 2025

Note for downstream refactors, i created a script to help doing this migration,

https://github.com/tqchen/tvm/blob/ffi-update/apps/refactor_ffi.py

Steps

  • first run python apps/refactor_ffi.py folder_path --refactor --inplace
  • Create a commit, the diff should be simple enough for review
    • NOTE: the script may have limitations for corner cases, so do a pass to make sure things are OK
  • Run clang-format

ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…pache#18142)

* [REFACTOR] Migrate TVM_FFI_REGISTER_GLOBAL to new reflection style

This PR migrates most TVM_FFI_REGISTER_GLOBAL registrations
to new reflection style.

* Lint

* Fix up the macro related reg
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.

2 participants