Class: Rattler::Compiler::Optimizer::OptimizationSequence

Inherits:
Optimization
  • Object
show all
Defined in:
lib/rattler/compiler/optimizer/optimization_sequence.rb

Overview

An OptimizationSequence sequences a pair of optimzations so that applying the sequence applies the first optimization, then applies the second optimzation to the result.

Instance Method Summary collapse

Methods inherited from Optimization

#>>, >>, #applies_to?, applies_to?, apply, #apply, instance

Constructor Details

#initialize(init, last) ⇒ OptimizationSequence

Returns a new instance of OptimizationSequence.



11
12
13
14
15
# File 'lib/rattler/compiler/optimizer/optimization_sequence.rb', line 11

def initialize(init, last)
  super()
  @init = init
  @last = last
end