Skip to main content

Module lowering_errors

Module lowering_errors 

Source
Expand description

Structured errors produced by the Cranelift → LoweredFunction lowering pipeline (RFC 0001 wave 2).

Each variant carries enough context for a maintainer to grep the call site and understand the failure. The boundary into [crate::pliron_dialect::PlironLoweringError] is provided so the wave-2 lowering driver (W2.4) and the CraneliftLowerer impl (W2.5) can bubble these errors through the trait surface.

Structs§

InstLocation
Location of a Cranelift instruction inside a function, used for diagnostics. Cheap to construct and stable across the lowering pass.

Enums§

LoweringError
Structured errors produced by the Cranelift → LoweredFunction lowering pipeline.