Skip to content

Stmts

ArchResolvedStmt

Bases: Statement


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt[ArchResolvedStmt]

              

              click bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt href "" "bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt"
            

Base for arch-dialect statements resolved against a bound ArchSpec.

Holds arch_spec (populated by the pipeline's BindArchSpec pass before folding). While unbound, const-prop and the interpreter leave the statement unresolved; once arch_spec is bound and the operands are constant they materialize the LocationAddress result. Subclasses: Loc, CzPartner.

CzPartner

Bases: ArchResolvedStmt


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.CzPartner[CzPartner]
              bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt[ArchResolvedStmt]

                              bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt --> bloqade.lanes.dialects.arch.stmts.CzPartner
                


              click bloqade.lanes.dialects.arch.stmts.CzPartner href "" "bloqade.lanes.dialects.arch.stmts.CzPartner"
              click bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt href "" "bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt"
            

Resolve the CZ blockade-partner LocationAddress of a location.

arch.cz_partner(loc) returns the location an atom must occupy to be CZ-entangled with an atom at loc. The result is materialized by standard const-prop: once arch_spec is bound (by BindArchSpec) and the address operand is constant, the registered constprop impl returns a const.Value(LocationAddress) so the rest of the fold pipeline propagates it (e.g. into a move_to locations list).

Any CzPartner that survives resolution (because arch_spec was not bound, address did not const-fold, or the architecture has no partner for that location) keeps the downstream move_to non-const, which the existing move_to validation reports.

Loc

Bases: ArchResolvedStmt


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.Loc[Loc]
              bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt[ArchResolvedStmt]

                              bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt --> bloqade.lanes.dialects.arch.stmts.Loc
                


              click bloqade.lanes.dialects.arch.stmts.Loc href "" "bloqade.lanes.dialects.arch.stmts.Loc"
              click bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt href "" "bloqade.lanes.dialects.arch.stmts.ArchResolvedStmt"
            

Construct a LocationAddress from a (zone, row, col) grid coordinate.

Resolved against the architecture's addressing scheme (ArchSpec.location_at) once arch_spec is bound by BindArchSpec; zone / row / col must be compile-time constants.

SiteId

Bases: Statement


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.SiteId[SiteId]

              

              click bloqade.lanes.dialects.arch.stmts.SiteId href "" "bloqade.lanes.dialects.arch.stmts.SiteId"
            

Read the site_id of a LocationAddress (produced by the GetAttr rewrite).

WordId

Bases: Statement


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.WordId[WordId]

              

              click bloqade.lanes.dialects.arch.stmts.WordId href "" "bloqade.lanes.dialects.arch.stmts.WordId"
            

Read the word_id of a LocationAddress (produced by the GetAttr rewrite).

ZoneId

Bases: Statement


              flowchart TD
              bloqade.lanes.dialects.arch.stmts.ZoneId[ZoneId]

              

              click bloqade.lanes.dialects.arch.stmts.ZoneId href "" "bloqade.lanes.dialects.arch.stmts.ZoneId"
            

Read the zone_id of a LocationAddress (produced by the GetAttr rewrite).