class SyntaxTree::YARV::SeaOfNodes::MergeNode

Merge nodes are present in any block that has multiple incoming blocks. It provides a place for Phi nodes to attach their results.

Attributes

id[R]
inputs[R]
outputs[R]

Public Class Methods

new(id) click to toggle source
# File lib/syntax_tree/yarv/sea_of_nodes.rb, line 55
def initialize(id)
  @inputs = []
  @outputs = []
  @id = id
end

Public Instance Methods

label() click to toggle source
# File lib/syntax_tree/yarv/sea_of_nodes.rb, line 61
def label
  "#{id} ψ"
end