Class: RLTK::CG::ConstantExpr

Inherits:
Constant show all
Defined in:
lib/rltk/cg/value.rb

Overview

This class represents a wide range of values returned by various operations.

Instance Attribute Summary

Attributes included from BindingClass

#ptr

Instance Method Summary collapse

Methods inherited from Constant

#addr_space_cast, #bitcast_to, #get_element_ptr, #get_element_ptr_in_bounds

Methods inherited from User

#operands

Methods inherited from Value

#==, #attributes, #bitcast, #constant?, #dump, #hash, #name, #name=, #null?, #print, #trunc, #trunc_or_bitcast, #type, #undefined?, #zextend, #zextend_or_bitcast

Methods included from BindingClass

#==

Constructor Details

#initialize(ptr) ⇒ ConstantExpr

Constant expressions can only be instantiated from a pointer, and should never be instantiated by library users.

Parameters:

  • ptr (FFI::Pointer)


349
350
351
# File 'lib/rltk/cg/value.rb', line 349

def initialize(ptr)
	@ptr = check_type(ptr, FFI::Pointer, 'ptr')
end