You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2026/06/21 01:08:32 UTC

[PR] Add type index query mode [tvm-ffi]

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

   ## Summary
   - Add query-only behavior to TVMFFITypeGetOrAllocIndex when parent_type_index == -2.
   - Return the existing registered type index on hit, or -2 on miss without allocating/registering or mutating parent metadata.
   - Document the concrete -2 C API behavior and add focused C++ coverage for hit and miss/no-registration behavior.
   
   This query mode is reserved for a future release update that may optionally query type indices at startup.
   
   ## Validation
   - ./build/cpp_tests/lib/tvm_ffi_tests --gtest_filter=Object.TypeGetOrAllocIndexQuery*
   - ctest -V -C RelWithDebugInfo --test-dir build/cpp_tests --output-on-failure
   - pre-commit run --files include/tvm/ffi/c_api.h src/ffi/object.cc tests/cpp/test_object.cc


-- 
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: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [API] Add type index query mode [tvm-ffi]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen merged PR #640:
URL: https://github.com/apache/tvm-ffi/pull/640


-- 
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: discuss-archive-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org