class RLTK::CG::MCJITCompilerOptions

Options for initializing a {MCJITCompiler}.

Public Class Methods

new(opt_level = 0, code_model = :jit_default, no_frame_pointer_elim = false, enable_fast_i_sel = true) click to toggle source

Create an object representing MCJIT compiler options.

@param [Integer] opt_level Optimization level @param [Symbol from enum_code_model] code_model JIT compilation code model @param [Boolean] no_frame_pointer_elim Disable frame pointer elimination @param [Boolean] enable_fast_i_sel Turn on fast instruction selection

Calls superclass method
# File lib/rltk/cg/execution_engine.rb, line 169
def initialize(opt_level = 0, code_model = :jit_default, no_frame_pointer_elim = false,
               enable_fast_i_sel = true)

        Bindings.initialize_mcjit_compiler_options(self.to_ptr, self.class.size)

        super(opt_level, code_model, no_frame_pointer_elim.to_i, enable_fast_i_sel.to_i, nil)
end