Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
link.h
Go to the documentation of this file.
1// Copyright 2026 The IREE Authors
2//
3// Licensed under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7#ifndef LOOMC_LINK_H_
8#define LOOMC_LINK_H_
9
10#include "loomc/config.h"
11#include "loomc/link_index.h"
12#include "loomc/module.h"
13#include "loomc/result.h"
14#include "loomc/workspace.h"
15
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
78
98
110
112typedef uint32_t loomc_link_flags_t;
113
153
169 loomc_context_t* context, const loomc_linker_options_t* options,
170 loomc_allocator_t allocator, loomc_linker_t** out_linker);
171
199 const loomc_link_options_t* options,
200 loomc_module_t** out_module, loomc_result_t** out_result);
201
209
218
219#ifdef __cplusplus
220} // extern "C"
221#endif
222
223#endif // LOOMC_LINK_H_
#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
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
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
Configuration options attached to a link or compile invocation.
Definition config.h:76
Linker creation options.
Definition link.h:84
loomc_string_view_t module_name
Default output module name for invocations that do not override it.
Definition link.h:96
loomc_structure_type_t type
Structure type.
Definition link.h:87
loomc_host_size_t structure_size
Size of this structure in bytes.
Definition link.h:90
const void * next
Extension chain for future linker options.
Definition link.h:93
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