Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
amdgpu/iree_hal.h
Go to the documentation of this file.
1// Copyright 2026 The IREE Authors
2//
3// Licensed under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7#ifndef LOOMC_TARGET_AMDGPU_IREE_HAL_H_
8#define LOOMC_TARGET_AMDGPU_IREE_HAL_H_
9
12
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
53
81 loomc_target_environment_t* target_environment,
83 loomc_allocator_t allocator, loomc_target_profile_t** out_profile,
84 loomc_result_t** out_result);
85
93
94#ifdef __cplusplus
95} // extern "C"
96#endif
97
98#endif // LOOMC_TARGET_AMDGPU_IREE_HAL_H_
loomc_status_t loomc_target_profile_create_amdgpu_iree_hal(loomc_target_environment_t *target_environment, const loomc_amdgpu_iree_hal_profile_options_t *options, loomc_allocator_t allocator, loomc_target_profile_t **out_profile, loomc_result_t **out_result)
Creates an exact AMDGPU target profile from an IREE HAL device.
const loomc_iree_hal_profile_provider_t * loomc_amdgpu_iree_hal_profile_provider(void)
Returns the generic IREE HAL router provider for AMDGPU devices.
AMDGPU target profile facts.
#define LOOMC_API_EXPORT
Exports a public Loom C API symbol from a shared library build.
Definition base.h:34
size_t loomc_host_size_t
Host allocation and container size type.
Definition base.h:45
loomc_structure_type_t
Structure type values used by extensible public descriptors.
Definition base.h:181
struct iree_status_handle_t * loomc_status_t
Opaque status handle.
Definition base.h:55
Optional target-profile router for IREE HAL devices.
struct loomc_result_t loomc_result_t
Immutable operation result.
Definition result.h:63
Host allocator used for persistent Loom object storage.
Definition base.h:375
AMDGPU profile options for an IREE HAL device.
Definition amdgpu/iree_hal.h:31
iree_hal_device_t * device
IREE HAL device borrowed for the duration of the call.
Definition amdgpu/iree_hal.h:48
const void * next
Reserved extension chain. Must be NULL.
Definition amdgpu/iree_hal.h:40
loomc_string_view_t identifier
Stable profile identifier used in diagnostics.
Definition amdgpu/iree_hal.h:45
iree_hal_physical_device_affinity_t physical_device_affinity
Optional physical-device set the exact target must fully cover.
Definition amdgpu/iree_hal.h:51
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition amdgpu/iree_hal.h:37
loomc_structure_type_t type
Structure type.
Definition amdgpu/iree_hal.h:34
One linked IREE HAL profile provider.
Definition iree_hal.h:104
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63
struct loomc_target_environment_t loomc_target_environment_t
Prepared immutable target environment.
Definition target.h:123
struct loomc_target_profile_t loomc_target_profile_t
Prepared immutable target profile.
Definition target.h:135