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
#bitcast_to, #get_element_ptr, #get_element_ptr_in_bounds
Methods included from AbstractClass
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.
353 354 355 |
# File 'lib/rltk/cg/value.rb', line 353 def initialize(ptr) @ptr = type_check(ptr, FFI::Pointer, 'ptr') end |