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

Build-configured target transformation support. More...

Go to the source code of this file.

Functions

loomc_status_t loomc_target_environment_create_configured_target (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates an environment supporting every configured target architecture.

Detailed Description

Build-configured target transformation support.

Link the optional //loom/binding/c/target/configured:target Bazel package or loom::binding::c::target::configured::target CMake target to use this factory. It joins portable command IR and every enabled target architecture, including families without an artifact emitter. The configured IR package supplies only representation support, while the configured compiler package also joins artifact-capable targets.

Function Documentation

◆ loomc_target_environment_create_configured_target()

loomc_status_t loomc_target_environment_create_configured_target ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates an environment supporting every configured target architecture.

The environment supplies target passes, lowering policies, legality, and verification in addition to the configured target IR representations. It does not contain artifact emitters, probe devices, or load platform runtimes.

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