Skip to content

bloqade.rewrite.passes.callgraph.UpdateDialectsOnCallGraph

← Module overview

classUpdateDialectsOnCallGraphsource

bloqade.rewrite.passes.callgraph.UpdateDialectsOnCallGraph

Bases: passes.Pass

Update All dialects on the call graph to a new set of dialects given to this pass.

class UpdateDialectsOnCallGraph

Note: This pass does not update the dialects of the input method, but copies all other methods invoked within it before updating their dialects.

Usage

pass_ = UpdateDialectsOnCallGraph(rule=rule, dialects=new_dialects) pass_(some_method)

Attributes

NameTypeDefaultDescription
fold_passpasses.Foldfield(init=False)

methodunsafe_runsource

bloqade.rewrite.passes.callgraph.UpdateDialectsOnCallGraph.unsafe_run

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

Parameters

NameTypeDescription
mtir.Method

Returns

RewriteResult

source