Class: LLVM::JITCompiler
- Inherits:
-
ExecutionEngine
- Object
- ExecutionEngine
- LLVM::JITCompiler
- Defined in:
- lib/llvm/execution_engine.rb
Instance Method Summary collapse
-
#initialize(mod, options = {}) ⇒ ExecutionEngine
constructor
Create a JIT execution engine.
Methods inherited from ExecutionEngine
#data_layout, #dispose, #functions, #modules, #pointer_to_global, #run_function, #target_machine, #to_ptr
Constructor Details
#initialize(mod, options = {}) ⇒ ExecutionEngine
Note:
You should call ‘LLVM.init_jit` before creating an execution engine.
Create a JIT execution engine.
178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/llvm/execution_engine.rb', line 178 def initialize(mod, = {}) # Prior to ruby-llvm 3.4.0, signature is initialize(mod, opt_level = 3) if .kind_of?(Integer) = { :opt_level => } end = { :opt_level => 3, }.merge() super end |