Class: Kumi::Core::IR::Decl

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumi/core/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Decl

Returns a new instance of Decl.



13
14
15
16
17
# File 'lib/kumi/core/ir.rb', line 13

def initialize(**args)
  super
  ops&.each(&:freeze)
  freeze
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



12
13
14
# File 'lib/kumi/core/ir.rb', line 12

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/kumi/core/ir.rb', line 12

def name
  @name
end

#opsObject

Returns the value of attribute ops

Returns:

  • (Object)

    the current value of ops



12
13
14
# File 'lib/kumi/core/ir.rb', line 12

def ops
  @ops
end

#shapeObject

Returns the value of attribute shape

Returns:

  • (Object)

    the current value of shape



12
13
14
# File 'lib/kumi/core/ir.rb', line 12

def shape
  @shape
end