bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp
classArchResolvedConstProp¶source
bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp
Bases: interp.MethodTable
Const-prop for arch-resolved statements (``Loc`` / ``CzPartner``).
class ArchResolvedConstPropMaterializes 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).
methodcz_partner¶source
bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp.cz_partner
def cz_partner(_, frame: Frame, stmt: CzPartner)Parameters
| Name | Type | Description |
|---|---|---|
_ | — | |
frame | Frame | |
stmt | CzPartner |
methodloc¶source
bloqade.lanes.dialects.arch.constprop.ArchResolvedConstProp.loc