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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to