Skip to content

Constprop

ArchResolvedConstProp

Bases: MethodTable


              flowchart TD
              bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp[ArchResolvedConstProp]

              

              click bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp href "" "bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp"
            

Const-prop for arch-resolved statements (Loc / CzPartner).

Materializes the LocationAddress as a const.Value once arch_spec is bound (by BindArchSpec in the pipeline) and the operands are constant. While still unresolved (arch spec unbound, or operands not yet constant) it returns top() so the statement stays non-const and folds later. If the arch API resolves to None — no CZ partner, or no atom at the requested (zone, row, col) — it raises InterpreterError so the error surfaces during analysis (consistent with the interpreter impls in impl.py).