Class: Kumi::IR::Loop::Function

Inherits:
Base::Function show all
Defined in:
lib/kumi/ir/loop.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Function

#blocks, #name, #parameters

Instance Method Summary collapse

Methods inherited from Base::Function

#append_block, #entry_block, #to_h

Constructor Details

#initialize(name:, return_reg:, **kwargs) ⇒ Function

Returns a new instance of Function.



16
17
18
19
# File 'lib/kumi/ir/loop.rb', line 16

def initialize(name:, return_reg:, **kwargs)
  super(name:, **kwargs)
  @return_reg = return_reg
end

Instance Attribute Details

#return_regObject (readonly)

Returns the value of attribute return_reg.



14
15
16
# File 'lib/kumi/ir/loop.rb', line 14

def return_reg
  @return_reg
end