Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_link_module_provider_t Struct Reference

Invocation-local materialized module provider. More...

#include <link.h>

Data Fields

const loomc_module_t * module
 Immutable module to index and materialize for this invocation.
loomc_string_view_t provider_name
 Stable provider label for diagnostics and private-name determinism.
loomc_link_provider_role_t role
 Provider linkage role.

Detailed Description

Invocation-local materialized module provider.

Materialized providers let same-version producers link an existing loomc_module_t directly without serializing it into a source first. They participate in the same provider order and linkage-role rules as sources in a frozen index.

Lifetime
The module and provider name are borrowed for the duration of loomc_link_module. The module is neither retained nor mutated. The caller must keep it alive and must not mutate it concurrently with linking.

Field Documentation

◆ provider_name

loomc_string_view_t loomc_link_module_provider_t::provider_name

Stable provider label for diagnostics and private-name determinism.

Empty uses the module name.


The documentation for this struct was generated from the following file: