tqchen opened a new pull request, #699: URL: https://github.com/apache/tvm-ffi/pull/699
## Rationale `TVMFFIGetTypeInfo` returns the stable entry for a registered type index without modifying observable state. Exposing this contract lets supporting compilers coalesce repeated lookups. ## Change - Add a portable `TVM_FFI_ATTRIBUTE_PURE` macro for GCC and Clang, with a safe no-op fallback. - State the registered-index precondition and annotate `TVMFFIGetTypeInfo`. ## Validation The C and C++ header checks, C++ test suite, formatting, and a focused optimized compiler benchmark pass. -- 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]
