Skip to content

bloqade.lanes.passes.ASAPPlacePass

← Module overview

classASAPPlacePasssource

bloqade.lanes.passes.ASAPPlacePass

Bases: passes.Pass

ASAP scheduling optimization for the place dialect.

class ASAPPlacePass

Merges all adjacent StaticPlacement blocks, reorders gates by ASAP dependency scheduling, then fuses adjacent compatible gates.

debug.Info statements are stripped at the start of this pass. ASAP scheduling cannot reorder across opaque debug nodes, so they must be removed before the merge/reorder/fuse sequence. Use SequentialPlacePass if debug statements must be preserved.

Attributes

NameTypeDefaultDescription
namestr'asap_place'

methodunsafe_runsource

bloqade.lanes.passes.ASAPPlacePass.unsafe_run

def unsafe_run(mt: ir.Method) -> RewriteResult

Parameters

NameTypeDescription
mtir.Method

Returns

RewriteResult

source