|
Loom C API
Public Loom compiler C API
|
SPIR-V target profiles from IREE HAL devices. More...
Go to the source code of this file.
Data Structures | |
| struct | loomc_spirv_iree_hal_profile_options_t |
| SPIR-V profile options for an IREE HAL Vulkan device. More... | |
Functions | |
| loomc_status_t | loomc_target_profile_create_spirv_iree_hal (loomc_target_environment_t *target_environment, const loomc_spirv_iree_hal_profile_options_t *options, loomc_allocator_t allocator, loomc_target_profile_t **out_profile, loomc_result_t **out_result) |
| Creates a SPIR-V target profile from an IREE HAL Vulkan device. | |
| const loomc_iree_hal_profile_provider_t * | loomc_spirv_iree_hal_profile_provider (void) |
| Returns the generic IREE HAL router provider for SPIR-V/Vulkan devices. | |
SPIR-V target profiles from IREE HAL devices.
This optional leaf adapts an IREE HAL Vulkan device into the public SPIR-V target profile fact model. It does not expose Vulkan headers or driver private types. The adapter uses stable HAL device queries such as vulkan.device :: api_version and vulkan.feature :: buffer_device_address, then creates an ordinary loomc_target_profile_t with SPIR-V facts and diagnostics.
The initial execution profile targets IREE HAL's raw Vulkan BDA SPIR-V executable target. Devices that cannot support that execution mode return a failed result with structured diagnostics instead of forcing callers to infer support from status codes.
| const loomc_iree_hal_profile_provider_t * loomc_spirv_iree_hal_profile_provider | ( | void | ) |
Returns the generic IREE HAL router provider for SPIR-V/Vulkan devices.
| loomc_status_t loomc_target_profile_create_spirv_iree_hal | ( | loomc_target_environment_t * | target_environment, |
| const loomc_spirv_iree_hal_profile_options_t * | options, | ||
| loomc_allocator_t | allocator, | ||
| loomc_target_profile_t ** | out_profile, | ||
| loomc_result_t ** | out_result ) |
Creates a SPIR-V target profile from an IREE HAL Vulkan device.
| target_environment | SPIR-V target environment that will own the profile. |
| options | SPIR-V IREE HAL profile options. |
| allocator | Host allocator used for result and profile storage. |
| out_profile | Receives one retained profile when the result succeeds. Receives NULL on failed result. |
| out_result | Receives a retained result containing adapter or SPIR-V profile diagnostics. |