102typedef enum loomc_link_flag_bits_e {
118typedef enum loomc_link_mode_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
Text and JSON configuration bindings.
struct loomc_context_t loomc_context_t
Immutable Loom API context.
Definition context.h:47
loomc_link_flag_bits_t
Link operation flags.
Definition link.h:102
@ LOOMC_LINK_FLAG_INCLUDE_INPUT_EXPORTS
Select exported INPUT-provider symbols as roots and compute their closure.
Definition link.h:104
@ LOOMC_LINK_FLAG_STRIP_TEST_SYMBOLS
Strip symbols used only by test or benchmark tooling.
Definition link.h:111
@ LOOMC_LINK_FLAG_ALLOW_UNRESOLVED_SYMBOLS
Preserve reachable unresolved references for a later link or specialization step.
Definition link.h:108
void loomc_linker_retain(loomc_linker_t *linker)
Retains a prepared linker for another owner.
loomc_status_t loomc_link_request(loomc_linker_t *linker, loomc_workspace_t *workspace, const loomc_request_t *input_request, const loomc_link_request_options_t *options, loomc_allocator_t allocator, loomc_request_t **out_request, loomc_result_t **out_result)
Seals an ordinary request against an optional frozen library index.
uint32_t loomc_link_flags_t
Bitmask of loomc_link_flag_bits_t values.
Definition link.h:115
void loomc_linker_release(loomc_linker_t *linker)
Releases a prepared linker from one owner.
struct loomc_linker_t loomc_linker_t
Prepared immutable linker.
Definition link.h:79
loomc_status_t loomc_link_module(loomc_linker_t *linker, loomc_workspace_t *workspace, const loomc_link_options_t *options, loomc_module_t **out_module, loomc_result_t **out_result)
Links a frozen index into an opaque module.
loomc_link_mode_t
Link product selection mode.
Definition link.h:118
@ LOOMC_LINK_MODE_MERGE
Merge every primary-input symbol into one relocatable module.
Definition link.h:121
@ LOOMC_LINK_MODE_LINK
Retain explicit roots or exported primary-input roots and their reachable closure through the complet...
Definition link.h:127
loomc_status_t loomc_linker_create(loomc_context_t *context, const loomc_linker_options_t *options, loomc_allocator_t allocator, loomc_linker_t **out_linker)
Creates a prepared immutable linker.
Reusable link indexes for deterministic library and source discovery.
struct loomc_link_index_t loomc_link_index_t
Frozen immutable link index.
Definition link_index.h:71
Opaque in-memory Loom modules.
struct loomc_module_t loomc_module_t
Opaque parsed, linked, optimized, or lowered module.
Definition module.h:89
Immutable compiler products and their recursively published requests.
struct loomc_request_t loomc_request_t
Immutable independently compilable product request.
Definition product.h:167
Shared operation result container.
struct loomc_result_t loomc_result_t
Immutable operation result.
Definition result.h:64
Host allocator used for persistent Loom object storage.
Definition base.h:390
Text configuration options attached to a link or command-product operation.
Definition config.h:77
Link invocation options.
Definition link.h:143
loomc_host_size_t root_symbol_count
Number of entries in root_symbols.
Definition link.h:168
loomc_string_view_t module_name
Output module name for this invocation. Empty uses the linker's default.
Definition link.h:158
const void * next
Optional invocation extensions such as loomc_target_specialization_options_t.
Definition link.h:152
loomc_host_size_t root_provider_count
Number of entries in root_provider_ordinals.
Definition link.h:182
const loomc_host_size_t * root_provider_ordinals
Provider ordinals whose exported symbols are roots in link mode.
Definition link.h:179
loomc_structure_type_t type
Structure type. Must be LOOMC_STRUCTURE_TYPE_LINK_OPTIONS when nonzero.
Definition link.h:145
loomc_config_options_t config
Per-invocation config bindings materialized into the linked output module.
Definition link.h:174
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition link.h:148
loomc_link_index_t * link_index
Frozen provider index to link.
Definition link.h:155
loomc_link_flags_t flags
Link operation flags.
Definition link.h:171
loomc_link_mode_t mode
Product selection mode. Zero defaults to LOOMC_LINK_MODE_MERGE.
Definition link.h:161
const loomc_string_view_t * root_symbols
Root symbol names for link mode.
Definition link.h:165
Request-linking options.
Definition link.h:192
loomc_config_options_t config
Config bindings materialized into the linked request.
Definition link.h:212
loomc_string_view_t module_name
Output module name. Empty uses the linker's default module name.
Definition link.h:209
const void * next
Optional invocation extensions such as loomc_target_specialization_options_t.
Definition link.h:202
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition link.h:198
loomc_structure_type_t type
Structure type.
Definition link.h:195
const loomc_link_index_t * library_index
Optional frozen library-only index used to resolve request declarations.
Definition link.h:206
Linker creation options.
Definition link.h:86
loomc_string_view_t module_name
Default output module name for invocations that do not override it.
Definition link.h:98
loomc_structure_type_t type
Structure type.
Definition link.h:89
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition link.h:92
const void * next
Extension chain for future linker options.
Definition link.h:95
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