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

Global metadata view written into caller-provided storage. More...

#include <module.h>

Data Fields

loomc_host_size_t global_ordinal
 Ordinal in the module's global metadata sequence.
loomc_string_view_t symbol_name
 Loom module symbol name, without a leading @.
loomc_module_global_kind_t kind
 Global category.
loomc_module_global_flags_t flags
 Present metadata flags.

Detailed Description

Global metadata view written into caller-provided storage.

This is the common identity record for supported global definitions. Additional type, initializer, storage-class, or target-specific payloads should be queried through typed accessors instead of being mixed into this structure as mutually exclusive fields.

Lifetime
symbol_name borrows from the module that produced this view. The view and global_ordinal remain valid until that module is released or mutated.

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