Sha256: f658315b859d332d3a1a14244f09ce5ad48d82afa68383b68b4e19b7b6072aa3

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

module Furnace
  class SSA::GenericInstruction < SSA::Instruction
    attr_reader :type

    def initialize(type, operands=[], name=nil)
      @type = type.to_type

      super(operands, name)
    end

    def type=(type)
      @type     = type.to_type

      SSA.instrument(self)
    end

    def replace_type_with(type, replacement)
      self.type = self.type.replace_type_with(type, replacement)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
furnace-0.4.0.beta.2 lib/furnace/ssa/generic_instruction.rb