bloqade.rewrite.passes.callgraph.UpdateDialectsOnCallGraph
← Module overview
class
method
source
classUpdateDialectsOnCallGraph¶source
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 UpdateDialectsOnCallGraphNote: 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
| Name | Type | Default | Description |
|---|---|---|---|
fold_pass | passes.Fold | field(init=False) |
methodunsafe_run¶source
bloqade.rewrite.passes.callgraph.UpdateDialectsOnCallGraph.unsafe_run
def unsafe_run(mt: ir.Method) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
mt | ir.Method |
Returns
RewriteResult