Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
vulkaninfo.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_SPIRV_VULKANINFO_H_
8#define LOOMC_TARGET_SPIRV_VULKANINFO_H_
9
11
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
97
131 loomc_target_environment_t* target_environment,
132 const loomc_source_t* source,
134 loomc_allocator_t allocator, loomc_target_profile_t** out_profile,
135 loomc_result_t** out_result);
136
137#ifdef __cplusplus
138} // extern "C"
139#endif
140
141#endif // LOOMC_TARGET_SPIRV_VULKANINFO_H_
#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
struct loomc_result_t loomc_result_t
Immutable operation result.
Definition result.h:63
struct loomc_source_t loomc_source_t
Immutable source handle.
Definition source.h:80
SPIR-V target profile facts.
Host allocator used for persistent Loom object storage.
Definition base.h:375
Saved vulkaninfo profile import options.
Definition vulkaninfo.h:70
loomc_structure_type_t type
Structure type.
Definition vulkaninfo.h:73
const void * next
Reserved extension chain. Must be NULL.
Definition vulkaninfo.h:79
loomc_string_view_t profile_name
Optional profile key for GPUInfo/Vulkan Profiles wrapper JSON.
Definition vulkaninfo.h:89
uint32_t device_index
Device index for raw vulkaninfo-style devices arrays.
Definition vulkaninfo.h:95
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition vulkaninfo.h:76
loomc_string_view_t identifier
Stable profile identifier. Empty uses the source identifier.
Definition vulkaninfo.h:82
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
loomc_status_t loomc_target_profile_create_spirv_vulkaninfo(loomc_target_environment_t *target_environment, const loomc_source_t *source, const loomc_spirv_vulkaninfo_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 saved vulkaninfo JSON.