Class: RLTK::CG::GlobalVariable
- Inherits:
-
GlobalValue
- Object
- Value
- User
- Constant
- GlobalValue
- RLTK::CG::GlobalVariable
- Defined in:
- lib/rltk/cg/value.rb
Overview
This class represents global variables.
Instance Attribute Summary
Attributes included from BindingClass
Instance Method Summary collapse
-
#thread_local=(local) ⇒ void
Set this global variable as thread local or not.
-
#thread_local? ⇒ Boolean
Check to see if this global variable is thread local.
Methods inherited from GlobalValue
#alignment, #alignment=, #declaration?, #global_constant=, #global_constant?, #initialize, #initializer, #initializer=, #linkage, #linkage=, #section, #section=, #visibility, #visibility=
Methods inherited from Constant
#bitcast_to, #get_element_ptr, #get_element_ptr_in_bounds, #initialize
Methods included from AbstractClass
Methods inherited from User
Methods inherited from Value
#==, #attributes, #bitcast, #constant?, #dump, #hash, #initialize, #name, #name=, #null?, #print, #trunc, #trunc_or_bitcast, #type, #undefined?, #zextend, #zextend_or_bitcast
Methods included from BindingClass
Constructor Details
This class inherits a constructor from RLTK::CG::GlobalValue
Instance Method Details
#thread_local=(local) ⇒ void
This method returns an undefined value.
Set this global variable as thread local or not.
1200 1201 1202 |
# File 'lib/rltk/cg/value.rb', line 1200 def thread_local=(local) Bindings.set_thread_local(@ptr, local.to_i) end |
#thread_local? ⇒ Boolean
Check to see if this global variable is thread local.
1191 1192 1193 |
# File 'lib/rltk/cg/value.rb', line 1191 def thread_local? Bindings.is_thread_local(@ptr).to_bool end |