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

AMD XDNA compiler package identity and environment creation. More...

Go to the source code of this file.

Macros

#define LOOMC_ARTIFACT_FORMAT_XDNA   "xdna"
 Canonical Loom-owned XDNA ELF32 executable format.

Functions

loomc_status_t loomc_target_environment_create_xdna (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates a target environment containing the AIE2P XDNA compiler and emitter.

Detailed Description

AMD XDNA compiler package identity and environment creation.

The package lowers kernel-scoped pipelines to tile and array functions in one module. After the ordinary prepared-low target pipeline, generic loomc_emit_module emits one canonical ELF32 .xdna byte sequence containing all resident tile code, array configuration, control code, and entry metadata. Compilation and emission require neither a live device nor a vendor runtime.

Function Documentation

◆ loomc_target_environment_create_xdna()

loomc_status_t loomc_target_environment_create_xdna ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates a target environment containing the AIE2P XDNA compiler and emitter.

Parameters
allocatorHost allocator used for target-environment storage.
out_target_environmentReceives one retained environment on success.
Returns
OK when the target environment was created.
Ownership
The caller releases the returned reference with loomc_target_environment_release. The environment can be shared by compiler instances and workspaces across JIT invocations.