Skip to main content

LibraryQueryFn

Type Alias LibraryQueryFn 

Source
pub type LibraryQueryFn = unsafe extern "C" fn(max_version: u32, environment: *const c_void) -> *const c_void;
Expand description

The *_library_query entry point emitted by iree-compile --iree-llvmcpu-static-library-output-path= (declared in the generated header alongside the .o). Declared with opaque pointers so firmware can extern "C" it without naming generated binding types; the shape is ABI-identical to iree_hal_executable_library_query_fn_t (uint32_t, pointer) -> pointer.