7#ifndef LOOMC_COMPILE_H_
8#define LOOMC_COMPILE_H_
102typedef enum loomc_compile_artifact_flag_bits_e {
#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
uint32_t loomc_compile_artifact_flags_t
Bitmask of loomc_compile_artifact_flag_bits_t.
Definition compile.h:123
void loomc_compiler_release(loomc_compiler_t *compiler)
Releases a prepared compiler from one owner.
loomc_status_t loomc_compile_module(loomc_compiler_t *compiler, loomc_workspace_t *workspace, const loomc_pass_program_t *pass_program, loomc_module_t *module, const loomc_compile_options_t *options, loomc_allocator_t allocator, loomc_result_t **out_result)
Compiles a mutable module into in-memory artifacts.
struct loomc_compiler_t loomc_compiler_t
Prepared immutable compiler.
Definition compile.h:99
loomc_status_t loomc_compiler_create(loomc_context_t *context, const loomc_compiler_options_t *options, loomc_allocator_t allocator, loomc_compiler_t **out_compiler)
Creates a prepared immutable compiler.
void loomc_compiler_retain(loomc_compiler_t *compiler)
Retains a prepared compiler for another owner.
loomc_compile_artifact_flag_bits_t
Compile artifact request bits.
Definition compile.h:102
@ LOOMC_COMPILE_ARTIFACT_FLAG_REPORT_JSON
Return a JSON compile report artifact.
Definition compile.h:111
@ LOOMC_COMPILE_ARTIFACT_FLAG_LAUNCH_CONFIG
Return the compiled host launch-config program for all kernel entries.
Definition compile.h:119
@ LOOMC_COMPILE_ARTIFACT_FLAG_MODULE_TEXT
Return textual Loom module IR after successful compilation.
Definition compile.h:104
@ LOOMC_COMPILE_ARTIFACT_FLAG_MODULE_BYTECODE
Return binary Loom bytecode after successful compilation.
Definition compile.h:107
Per-invocation configuration bindings.
struct loomc_context_t loomc_context_t
Immutable Loom API context.
Definition context.h:47
Opaque in-memory Loom modules.
struct loomc_module_t loomc_module_t
Opaque parsed, linked, optimized, or lowered module.
Definition module.h:89
struct loomc_pass_program_t loomc_pass_program_t
Prepared immutable pass program.
Definition pass.h:86
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
Compile invocation options.
Definition compile.h:152
const void * next
Extension chain for compile invocation options such as loomc_target_specialization_options_t.
Definition compile.h:162
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition compile.h:158
loomc_config_options_t config
Per-invocation config dialect bindings and optional JSON object.
Definition compile.h:173
loomc_compile_artifact_flags_t artifact_flags
Requested result artifacts.
Definition compile.h:170
loomc_string_view_t module_name
Runtime artifact module name for this invocation.
Definition compile.h:166
loomc_structure_type_t type
Structure type.
Definition compile.h:155
Compiler creation options.
Definition compile.h:130
const void * next
Extension chain for future compiler options.
Definition compile.h:139
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition compile.h:136
loomc_structure_type_t type
Structure type.
Definition compile.h:133
Configuration options attached to a link or compile invocation.
Definition config.h:76
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63
Per-worker scratch workspace.
struct loomc_workspace_t loomc_workspace_t
Mutable per-worker scratch workspace.
Definition workspace.h:54