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
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
65
72
81
96
105
132
159
162
183
192
206
231
256
290
304 loomc_allocator_t allocator, loomc_link_index_builder_t** out_builder);
305
314
328
342 loomc_source_t* source);
343
355
377 loomc_link_index_builder_t* builder, loomc_link_index_t** out_link_index,
378 loomc_result_t** out_result);
379
388
397
404
412 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
413 loomc_link_index_provider_t* out_provider);
414
421
429 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
430 loomc_link_index_module_t* out_module);
431
438
446 const loomc_link_index_t* link_index, loomc_host_size_t ordinal,
447 loomc_link_index_symbol_t* out_symbol);
448
460 const loomc_link_index_t* link_index, loomc_string_view_t name,
461 loomc_link_index_symbol_t* out_symbol);
462
474 const loomc_link_index_t* link_index,
475 const loomc_link_index_symbol_t* symbol,
476 loomc_link_index_symbol_t* out_symbol);
477
486 const loomc_link_index_t* link_index,
488 loomc_link_index_symbol_t* out_symbol);
489
490#ifdef __cplusplus
491} // extern "C"
492#endif
493
494#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
Text and JSON 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:64
struct loomc_source_t loomc_source_t
Immutable source handle.
Definition source.h:81
Host allocator used for persistent Loom object storage.
Definition base.h:390
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63