Class: LLVM::MCJITCompiler
- Inherits:
-
ExecutionEngine
- Object
- ExecutionEngine
- LLVM::MCJITCompiler
- Defined in:
- lib/llvm/execution_engine.rb
Instance Method Summary collapse
-
#initialize(mod, options = {}) ⇒ ExecutionEngine
constructor
Create a MCJIT 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
TODO:
Add :mcjmm option (MCJIT memory manager)
Note:
You should call ‘LLVM.init_jit(true)` before creating an execution engine.
Create a MCJIT execution engine.
211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/llvm/execution_engine.rb', line 211 def initialize(mod, = {}) = { :opt_level => 2, # LLVMCodeGenLevelDefault :code_model => 0, # LLVMCodeModelDefault :no_frame_pointer_elim => false, :enable_fast_i_sel => false, # TODO #:mcjmm => nil, }.merge() super end |