API reference
python:irx:irx.builder.runtime.registry.RuntimeFeatureState
class RuntimeFeatureState
RuntimeFeatureState(owner: 'VisitorProtocol', registry: RuntimeFeatureRegistry, active_features: Iterable[str] | None = None)
Source: packages/irx/src/irx/builder/runtime/registry.py:133
Track feature activation and symbol declarations for one module.
Attributes
-
_owner — Type: VisitorProtocol
-
_registry — Type: RuntimeFeatureRegistry
-
_active_features — Type: set[str]
-
_declared_symbols — Type: dict[tuple[str, str], ir.Function]
Methods
-
__init__ — Initialize RuntimeFeatureState.
-
activate — Activate a runtime feature for the current module.
-
active_feature_names — Return the active feature names.
-
dependency_order — Validate a feature dependency graph before activating any nodes.
-
feature — Return a registered feature by name.
-
feature_declares_symbol — Return whether one feature declares one symbol.
-
is_active — Return whether a feature is active for the current module.
-
linker_flags — Return the linker flags required by active features.
-
native_artifacts — Return the native artifacts required by active features.
-
require_symbol — Activate a feature and declare one of its external symbols.