84#define LOOMC_EMIT_OPTION_KEY_IDENTIFIER "emit.identifier"
87#define LOOMC_EMIT_OPTION_KEY_ARTIFACT_MANIFEST_MODE \
88 "emit.artifact_manifest.mode"
91#define LOOMC_EMIT_OPTION_KEY_ARTIFACT_MANIFEST_IDENTIFIER \
92 "emit.artifact_manifest.identifier"
95#define LOOMC_EMIT_OPTION_KEY_COMPILE_REPORT_MODE "emit.compile_report.mode"
98#define LOOMC_EMIT_OPTION_KEY_COMPILE_REPORT_IDENTIFIER \
99 "emit.compile_report.identifier"
105typedef enum loomc_emit_artifact_flag_bits_e {
In-memory output artifacts produced by compiler operations.
Artifact manifest emission controls.
#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
Compile report emission controls.
loomc_status_t loomc_emit_module(loomc_target_environment_t *target_environment, loomc_workspace_t *workspace, loomc_module_t *module, const loomc_emit_options_t *options, loomc_allocator_t allocator, loomc_result_t **out_result)
Emits target artifacts from a prepared module.
loomc_emit_artifact_flag_bits_t
Emit artifact request flag bits.
Definition emit.h:105
@ LOOMC_EMIT_ARTIFACT_FLAG_PRIMARY
Request the primary loadable artifact.
Definition emit.h:108
uint32_t loomc_emit_artifact_flags_t
Emit artifact request flags.
Definition emit.h:102
Opaque in-memory Loom modules.
struct loomc_module_t loomc_module_t
Opaque parsed, linked, optimized, or lowered module.
Definition module.h:89
Shared operation result container.
struct loomc_result_t loomc_result_t
Immutable operation result.
Definition result.h:63
Host allocator used for persistent Loom object storage.
Definition base.h:375
Target emission options.
Definition emit.h:118
loomc_structure_type_t type
Structure type. Must be LOOMC_STRUCTURE_TYPE_EMIT_OPTIONS when nonzero.
Definition emit.h:120
const void * next
Extension chain for emission options.
Definition emit.h:126
loomc_emit_artifact_flags_t artifact_flags
Requested artifact classes. Zero requests the primary artifact.
Definition emit.h:137
loomc_string_view_t artifact_format
Artifact format to emit.
Definition emit.h:130
loomc_string_view_t identifier
Artifact identifier for the primary output.
Definition emit.h:134
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition emit.h:123
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63
Prepared target environments and target lowering pipelines.
struct loomc_target_environment_t loomc_target_environment_t
Prepared immutable target environment.
Definition target.h:123
Per-worker scratch workspace.
struct loomc_workspace_t loomc_workspace_t
Mutable per-worker scratch workspace.
Definition workspace.h:54