Class: RLTK::CG::JITCompiler
- Inherits:
-
ExecutionEngine
- Object
- ExecutionEngine
- RLTK::CG::JITCompiler
- Defined in:
- lib/rltk/cg/execution_engine.rb
Overview
An execution engine that compiles the given code when needed.
Constant Summary
Constants inherited from ExecutionEngine
ExecutionEngine::CLASS_FINALIZER
Instance Attribute Summary
Attributes inherited from ExecutionEngine
Attributes included from BindingClass
Instance Method Summary collapse
-
#initialize(mod, opt_level = 3) ⇒ JITCompiler
constructor
Create a new just-in-time compiler.
Methods inherited from ExecutionEngine
#pointer_to_global, #run_function, #run_function_as_main, #target_data
Methods included from BindingClass
Constructor Details
#initialize(mod, opt_level = 3) ⇒ JITCompiler
Create a new just-in-time compiler.
153 154 155 156 157 |
# File 'lib/rltk/cg/execution_engine.rb', line 153 def initialize(mod, opt_level = 3) super(mod) do |ptr, error| Bindings.create_jit_compiler_for_module(ptr, mod, opt_level, error) end end |