Module: YTLJit::AsmType

Defined in:
lib/ytljit/type.rb,
lib/ytljit/struct.rb

Defined Under Namespace

Classes: Array, PointedData, Pointer, Scalar, Struct, StructMember, TypeCommon, Union

Constant Summary collapse

@@type_table =
{}

Class Method Summary collapse

Class Method Details

.deftype(name, tinfo) ⇒ Object



87
88
89
90
91
# File 'lib/ytljit/type.rb', line 87

def self.deftype(name, tinfo)
  type = Scalar.new(*tinfo)
  const_set(name.to_s.upcase, type)
  @@type_table[name] = type
end

.type_tableObject



93
94
95
# File 'lib/ytljit/type.rb', line 93

def self.type_table
  @@type_table
end