bloqade.lanes.dialects.arch.rewrite.BindArchSpec
← Module overview
class
method
source
classBindArchSpec¶source
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
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec |
Attributes
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec |
methodrewrite_Statement¶source
bloqade.lanes.dialects.arch.rewrite.BindArchSpec.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
RewriteResult