Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_artifact_t Struct Reference

Borrowed artifact view owned by a producer-specific result or product. More...

#include <artifact.h>

Data Fields

loomc_artifact_kind_t kind
 Artifact kind.
loomc_string_view_t format
 Stable format string, such as amdgpu-hsaco, spirv, LOOMC_ARTIFACT_FORMAT_LOOM_TEXT, or LOOMC_ARTIFACT_FORMAT_JSON.
loomc_string_view_t identifier
 Human-readable artifact identifier.
loomc_byte_sequence_tcontents
 Immutable artifact bytes.

Detailed Description

Borrowed artifact view owned by a producer-specific result or product.

Lifetime
Artifact strings and the contents reference are owned by the operation-specific object that returned this view. They remain valid until that owner is released. Callers retaining contents independently use loomc_byte_sequence_retain.

Field Documentation

◆ contents

loomc_byte_sequence_t* loomc_artifact_t::contents

Immutable artifact bytes.

Valid artifacts always provide a non-NULL sequence, including for empty contents.


The documentation for this struct was generated from the following file: