Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
link_index.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_INDEX_H_
8#define LOOMC_LINK_INDEX_H_
9
10#include "loomc/config.h"
11#include "loomc/context.h"
12#include "loomc/result.h"
13
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
56
63
72
87
96
123
147
150
171
180
193
218
243
277
291 loomc_allocator_t allocator, loomc_link_index_builder_t** out_builder);
292
301
315
329 loomc_source_t* source);
330
342
364 loomc_link_index_builder_t* builder, loomc_link_index_t** out_link_index,
365 loomc_result_t** out_result);
366
375
384
391
399 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
400 loomc_link_index_provider_t* out_provider);
401
408
416 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
417 loomc_link_index_module_t* out_module);
418
425
433 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
434 loomc_link_index_symbol_t* out_symbol);
435
443 const loomc_link_index_t* link_index, loomc_string_view_t name,
444 loomc_link_index_symbol_t* out_symbol);
445
453 const loomc_link_index_t* link_index,
454 const loomc_link_index_symbol_t* symbol,
455 loomc_link_index_symbol_t* out_symbol);
456
465 const loomc_link_index_t* link_index,
467 loomc_link_index_symbol_t* out_symbol);
468
469#ifdef __cplusplus
470} // extern "C"
471#endif
472
473#endif // LOOMC_LINK_INDEX_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.
Reusable Loom API context.
struct loomc_context_t loomc_context_t
Immutable Loom API context.
Definition context.h:47
Shared operation result container.
struct loomc_result_t loomc_result_t
Immutable operation result.
Definition result.h:63
struct loomc_source_t loomc_source_t
Immutable source handle.
Definition source.h:80
Host allocator used for persistent Loom object storage.
Definition base.h:375
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63