Class: RLTK::CG::ConstantExpr
- 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
Instance Method Summary collapse
-
#initialize(ptr) ⇒ ConstantExpr
constructor
Constant expressions can only be instantiated from a pointer, and should never be instantiated by library users.
Methods inherited from Constant
#addr_space_cast, #bitcast_to, #get_element_ptr, #get_element_ptr_in_bounds
Methods inherited from User
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.
349 350 351 |
# File 'lib/rltk/cg/value.rb', line 349 def initialize(ptr) @ptr = check_type(ptr, FFI::Pointer, 'ptr') end |