class RCGTK::MCJITCompiler

The new LLVM JIT execution engine.

Public Class Methods

new(mod, options = MCJITCompilerOptions.new) click to toggle source

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

@see llvm.org/docs/MCJITDesignAndImplementation.html @see blog.llvm.org/2013/07/using-mcjit-with-kaleidoscope-tutorial.html

@param [Module] mod Module to be executed @param [MCJITCompilerOptions] options Options used to create the MCJIT

Calls superclass method RCGTK::ExecutionEngine::new
# File lib/rcgtk/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