Skip to content

bloqade.lanes.rewrite.transversal.RewriteLocations

← Module overview

classRewriteLocationssource

bloqade.lanes.rewrite.transversal.RewriteLocations

Bases: rewrite_abc.RewriteRule

Signature
class RewriteLocations(transform_location: Callable[[LocationAddress], Iterable[LocationAddress] | None])

Parameters

NameTypeDescription
transform_locationCallable[[LocationAddress], Iterable[LocationAddress] | None]

Attributes

NameTypeDescription
transform_locationCallable[[LocationAddress], Iterable[LocationAddress] | None]

methodrewrite_Statementsource

bloqade.lanes.rewrite.transversal.RewriteLocations.rewrite_Statement

def rewrite_Statement(node: ir.Statement)

Parameters

NameTypeDescription
nodeir.Statement
source