Skip to content

bloqade.lanes.dialects.arch.rewrite.BindArchSpec

← Module overview

classBindArchSpecsource

bloqade.lanes.dialects.arch.rewrite.BindArchSpec

Bases: RewriteRule

Populate ``arch_spec`` on every unbound arch-resolved statement (``Loc``, ``CzPartner``, and any future ``ArchResolvedStmt``).

class BindArchSpec(arch_spec: ArchSpec)

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.

Parameters

NameTypeDescription
arch_specArchSpec

Attributes

NameTypeDescription
arch_specArchSpec

methodrewrite_Statementsource

bloqade.lanes.dialects.arch.rewrite.BindArchSpec.rewrite_Statement

def rewrite_Statement(node: ir.Statement) -> RewriteResult

Parameters

NameTypeDescription
nodeir.Statement

Returns

RewriteResult

source