Class: RLTK::CG::MCJITCompiler

Inherits:
ExecutionEngine show all
Defined in:
lib/rltk/cg/execution_engine.rb

Overview

The new LLVM JIT execution engine.

Constant Summary

Constants inherited from ExecutionEngine

ExecutionEngine::CLASS_FINALIZER

Instance Attribute Summary

Attributes inherited from ExecutionEngine

#module

Attributes included from BindingClass

#ptr

Instance Method Summary collapse

Methods inherited from ExecutionEngine

#pointer_to_global, #run_function, #run_function_as_main, #target_data

Methods included from BindingClass

#==

Constructor Details

#initialize(mod, options = MCJITCompilerOptions.new) ⇒ MCJITCompiler

Create a new MC just-in-time-compiler.

Parameters:

  • mod (Module)

    Module to be executed

  • options (MCJITCompilerOptions) (defaults to: MCJITCompilerOptions.new)

    Options used to create the MCJIT

See Also:



188
189
190
191
192
# File 'lib/rltk/cg/execution_engine.rb', line 188

def initialize(mod, options = MCJITCompilerOptions.new)
	super(mod) do |ptr, error|
		Bindings.create_mcjit_compiler_for_module(ptr, mod, options, MCJITCompilerOptions.size, error)
	end
end