Class: RBF::JIT
- Inherits:
-
Object
- Object
- RBF::JIT
- Defined in:
- lib/rbf/jit.rb,
lib/rbf/jit/code.rb
Defined Under Namespace
Classes: Code
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #compile(tree) ⇒ Object
-
#initialize(options) ⇒ JIT
constructor
A new instance of JIT.
Constructor Details
#initialize(options) ⇒ JIT
Returns a new instance of JIT.
38 39 40 |
# File 'lib/rbf/jit.rb', line 38 def initialize () @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
36 37 38 |
# File 'lib/rbf/jit.rb', line 36 def @options end |
Class Method Details
.supported? ⇒ Boolean
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rbf/jit.rb', line 20 def supported? raise require 'llvm' require 'llvm/core' require 'llvm/execution_engine' require 'llvm/transforms/scalar' LLVM.init_x86 true rescue false end |