Skip to content

bloqade.rewrite.passes.callgraph.ReplaceMethods

← Module overview

classReplaceMethodssource

bloqade.rewrite.passes.callgraph.ReplaceMethods

Bases: RewriteRule

class ReplaceMethods(new_symbols: dict[ir.Method, ir.Method])

Parameters

NameTypeDescription
new_symbolsdict[ir.Method, ir.Method]

Attributes

NameTypeDescription
new_symbolsdict[ir.Method, ir.Method]

methodrewrite_Statementsource

bloqade.rewrite.passes.callgraph.ReplaceMethods.rewrite_Statement

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

Parameters

NameTypeDescription
nodeir.Statement

Returns

RewriteResult

source