MachineIR API¶
MachineIR belongs to one target plugin and records its instruction dialect,
sections, entry points, ABI identity, command lineage, and program format.
Target-specific machine program contract.
_MACHINE_RESERVED
module-attribute
¶
_MACHINE_RESERVED = frozenset({'predicted_start', 'predicted_end', 'predicted_duration', 'estimated_time', 'latency_estimate'})
__all__
module-attribute
¶
__all__ = ['MachineEntryPoint', 'MachineInstruction', 'MachineIR', 'MachineOpcode', 'MachineSection', 'MachineSectionKind']
FrozenDict ¶
Bases: Mapping[str, V], Generic[V]
A compact, hashable mapping with recursively frozen values.
Source code in src/blueprinting/schema/frozen.py
__reduce__ ¶
Use the public constructor for process and UI cache round-trips.
DiagnosticBag ¶
VerificationReport
dataclass
¶
Bases: DiagnosticSet
Backward-compatible name for the domain-free immutable diagnostics.
Lineage ¶
Typed provenance from source entities to one lowering product.
CanonicalIRMixin ¶
Behavior shared by immutable canonical IR roots.
to_json ¶
Serialize through a self-describing, digest-checked envelope.
Source code in src/blueprinting/synthesizer/stages/common.py
from_json
classmethod
¶
Decode an exact-schema snapshot without exception control flow.
Source code in src/blueprinting/synthesizer/stages/common.py
require_from_json
classmethod
¶
Explicit exception adapter for trusted internal/replay boundaries.
Source code in src/blueprinting/synthesizer/stages/common.py
load_migrated
classmethod
¶
Load through an explicit registered migration path.
Source code in src/blueprinting/synthesizer/stages/common.py
verify ¶
IRHeader ¶
Version and provenance header embedded in every canonical IR.
SchemaVersion ¶
Semantic version of one serialized IR schema.
MachineOpcode ¶
Dialect-qualified opcode owned by one target plugin.
MachineInstruction ¶
Target instruction with explicit dependencies, operands, and lineage.
MachineSectionKind ¶
Bases: Enum
Container role of a machine-program section.
MachineSection ¶
Aligned code or data section in a target machine program.
MachineEntryPoint ¶
Named externally addressable instruction in a machine program.
MachineIR ¶
Bases: CanonicalIRMixin
Target-owned instruction dialect before final binary/container emission.
enum ¶
Register one closed enumeration through the public authoring surface.
Source code in src/blueprinting/schema/deriving.py
record ¶
Derive an immutable canonical record from an annotated class declaration.
Source code in src/blueprinting/schema/deriving.py
is_content_digest ¶
make_header ¶
make_header(schema_name: str, schema_version: SchemaVersion, *, parent_digests: Iterable[str] = (), features: Iterable[str] = (), producer_version: str = '0.0.0') -> IRHeader
Source code in src/blueprinting/synthesizer/stages/common.py
reject_reserved_attributes ¶
reject_reserved_attributes(bag: DiagnosticBag, attributes: FrozenDict, reserved: frozenset[str], *path: str) -> None
Reject semantic fields smuggled through extension dictionaries.
Source code in src/blueprinting/synthesizer/stages/common.py
verify_ordered_dag ¶
verify_ordered_dag(bag: DiagnosticBag, entities: Sequence[Entity], id_of: Callable[[Entity], StableId], dependencies_of: Callable[[Entity], Iterable[StableId]], path: str) -> None
Verify references and require canonical topological sequence order.
Source code in src/blueprinting/synthesizer/stages/common.py
verify_unique_ids ¶
verify_unique_ids(bag: DiagnosticBag, entities: Sequence[Entity], id_of: Callable[[Entity], StableId], path: str) -> None