Class: RLTK::CG::MCJITCompilerOptions

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

Overview

Options for initializing a MCJITCompiler.

Instance Method Summary collapse

Constructor Details

#initialize(opt_level = 0, code_model = :jit_default, no_frame_pointer_elim = false, enable_fast_i_sel = true) ⇒ MCJITCompilerOptions

Create an object representing MCJIT compiler options.

Parameters:

  • opt_level (Integer) (defaults to: 0)

    Optimization level

  • code_model (Symbol from _enum_code_model_) (defaults to: :jit_default)

    JIT compilation code model

  • no_frame_pointer_elim (Boolean) (defaults to: false)

    Disable frame pointer elimination

  • enable_fast_i_sel (Boolean) (defaults to: true)

    Turn on fast instruction selection



169
170
171
172
173
174
175
# 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