Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
base.h File Reference

SPIR-V target package identity and environment creation. More...

Go to the source code of this file.

Macros

#define LOOMC_ARTIFACT_FORMAT_SPIRV   "spirv"
 SPIR-V binary artifact format.

Functions

loomc_status_t loomc_target_environment_create_spirv (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates a target environment containing the SPIR-V target package.

Detailed Description

SPIR-V target package identity and environment creation.

This header is the dependency-light entry point for embedders that want to link the SPIR-V target package. It does not include Vulkan, IREE HAL, or any saved-profile importer dependencies. Provider-specific adapters live under separate SPIR-V target leaves so an offline compiler or cross-compiler can use SPIR-V support without platform headers.

Function Documentation

◆ loomc_target_environment_create_spirv()

loomc_status_t loomc_target_environment_create_spirv ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates a target environment containing the SPIR-V target package.

Parameters
allocatorHost allocator used for target-environment storage.
out_target_environmentReceives one retained target environment on success.
Returns
OK when the target environment was created.
Ownership
The caller owns the returned reference and releases it with loomc_target_environment_release.