Rewrite
BindArchSpec
dataclass
BindArchSpec(arch_spec: ArchSpec)
Bases: RewriteRule
flowchart TD
bloqade.lanes.dialects.arch.rewrite.BindArchSpec[BindArchSpec]
click bloqade.lanes.dialects.arch.rewrite.BindArchSpec href "" "bloqade.lanes.dialects.arch.rewrite.BindArchSpec"
Populate arch_spec on every unbound arch-resolved statement
(Loc, CzPartner, and any future ArchResolvedStmt).
Run once as a CallGraphPass before any folding so the const-prop impls
can resolve them during AggressiveUnroll. Only binds statements whose
attribute is still None — a statement that was constructed with an
explicit arch spec is left alone.
RewriteLocationAttr
dataclass
RewriteLocationAttr()
Bases: RewriteRule
flowchart TD
bloqade.lanes.dialects.arch.rewrite.RewriteLocationAttr[RewriteLocationAttr]
click bloqade.lanes.dialects.arch.rewrite.RewriteLocationAttr href "" "bloqade.lanes.dialects.arch.rewrite.RewriteLocationAttr"
Lower py.GetAttr on a LocationAddress (word_id / site_id /
zone_id) into the corresponding arch-dialect statement.