Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
config.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_CONFIG_H_
8#define LOOMC_CONFIG_H_
9
10#include "loomc/base.h"
11
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
57
59typedef enum loomc_config_policy_flag_bits_e {
63
66
89
90#ifdef __cplusplus
91} // extern "C"
92#endif
93
94#endif // LOOMC_CONFIG_H_
Base types, descriptors, spans, and host allocation helpers.
size_t loomc_host_size_t
Host allocation and container size type.
Definition base.h:45
loomc_config_policy_flag_bits_t
Configuration validation and resolution policy bit values.
Definition config.h:59
@ LOOMC_CONFIG_POLICY_FLAG_REQUIRE_RESOLVED
Require all final operation config values to be resolved.
Definition config.h:61
uint32_t loomc_config_policy_flags_t
Bitmask of loomc_config_policy_flag_bits_t values.
Definition config.h:65
Single configuration key/value binding.
Definition config.h:50
loomc_string_view_t key
Config key, with a leading @ accepted by normalization.
Definition config.h:52
loomc_string_view_t value
Config value spelling.
Definition config.h:55
Configuration options attached to a link or compile invocation.
Definition config.h:76
loomc_string_view_t json_object
Optional JSON/JSONC object string normalized into the same binding set.
Definition config.h:84
const loomc_config_binding_t * bindings
Plain key/value bindings.
Definition config.h:78
loomc_config_policy_flags_t flags
Config validation and resolution policy flags.
Definition config.h:87
loomc_host_size_t binding_count
Number of entries in bindings.
Definition config.h:81
Non-owning string view over bytes that need not be NUL-terminated.
Definition base.h:63