Class: Kumi::IR::DF::Passes::DeclInlining

Inherits:
Passes::Base show all
Defined in:
lib/kumi/ir/df/passes/decl_inlining.rb

Defined Under Namespace

Classes: InlineResult, RegGenerator

Instance Method Summary collapse

Instance Method Details

#run(graph:, context: {}) ⇒ Object



12
13
14
15
# File 'lib/kumi/ir/df/passes/decl_inlining.rb', line 12

def run(graph:, context: {})
  functions = graph.functions.values.map { |fn| rewrite_function(fn, graph) }
  Kumi::IR::DF::Graph.new(name: graph.name, functions: functions)
end