Class: YTLJit::AsmType::Scalar

Inherits:
TypeCommon show all
Defined in:
lib/ytljit/type.rb

Instance Attribute Summary collapse

Attributes inherited from TypeCommon

#alignment, #size, #type

Instance Method Summary collapse

Constructor Details

#initialize(size, align = 4, kind = :int) ⇒ Scalar

Returns a new instance of Scalar.



17
18
19
20
21
# File 'lib/ytljit/type.rb', line 17

def initialize(size, align = 4, kind = :int)
  @size = size
  @alignment = align
  @kind = kind
end

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind.



23
24
25
# File 'lib/ytljit/type.rb', line 23

def kind
  @kind
end