Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Jun 16, 2025

This PR updates the FFI type registry structures and API to be future compatible to reflection needs.

  • Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
  • Updates the MethodInfo and FieldInfo to contain complete ABI information.
  • Removes the dependency on unordered_map in the registry.
  • Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

This PR updates the FFI type registry structures and API to
be future compatible to reflection needs.

- Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
- Updates the MethodInfo and FieldInfo to contain complete ABI information.
- Removes the dependency on unordered_map in the registry.
- Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

x
@Hzfengsy Hzfengsy merged commit 9a7c0dd into apache:main Jun 16, 2025
13 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
)

[FFI][REFACTOR] Update registry to have full meta-data

This PR updates the FFI type registry structures and API to
be future compatible to reflection needs.

- Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
- Updates the MethodInfo and FieldInfo to contain complete ABI information.
- Removes the dependency on unordered_map in the registry.
- Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

x
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
)

[FFI][REFACTOR] Update registry to have full meta-data

This PR updates the FFI type registry structures and API to
be future compatible to reflection needs.

- Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
- Updates the MethodInfo and FieldInfo to contain complete ABI information.
- Removes the dependency on unordered_map in the registry.
- Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

x
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
)

[FFI][REFACTOR] Update registry to have full meta-data

This PR updates the FFI type registry structures and API to
be future compatible to reflection needs.

- Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
- Updates the MethodInfo and FieldInfo to contain complete ABI information.
- Removes the dependency on unordered_map in the registry.
- Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

x
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
)

[FFI][REFACTOR] Update registry to have full meta-data

This PR updates the FFI type registry structures and API to
be future compatible to reflection needs.

- Introduce TVM_FFI_STATIC_INIT_BLOCK for all registration purposes.
- Updates the MethodInfo and FieldInfo to contain complete ABI information.
- Removes the dependency on unordered_map in the registry.
- Updates TVMFFIErrorSetRaisedByCStr to TVMFFIErrorSetRaisedFromCStr to be more idiomatic

x
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