Struct sljit::sys::Compiler

source ·
pub struct Compiler { /* private fields */ }

Implementations§

source§

impl Compiler

source

pub fn new() -> Compiler

source§

impl Compiler

source§

impl Compiler

source

pub fn emit_put_label(&mut self, dst: i32, dstw: i64) -> PutLabel

source

pub fn emit_const(&mut self, dst: i32, dstw: i64, init_value: i64) -> Constant

source

pub fn get_compiler_error(&mut self) -> i32

source

pub fn alloc_memory(&mut self, size: i32) -> *mut c_void

source

pub fn get_allocator_data(&mut self) -> *mut c_void

source

pub fn get_exec_allocator_data(&mut self) -> *mut c_void

source

pub fn get_executable_offset(&mut self) -> i64

source

pub fn get_generated_code_size(&mut self) -> u64

source

pub fn emit_enter( &mut self, options: i32, arg_types: i32, scratches: i32, saveds: i32, fscratches: i32, fsaveds: i32, local_size: i32 ) -> i32

source

pub fn set_context( &mut self, options: i32, arg_types: i32, scratches: i32, saveds: i32, fscratches: i32, fsaveds: i32, local_size: i32 ) -> i32

source

pub fn emit_return_void(&mut self) -> i32

source

pub fn emit_return(&mut self, op: i32, src: i32, srcw: i64) -> i32

source

pub fn emit_return_to(&mut self, src: i32, srcw: i64) -> i32

source

pub fn emit_op0(&mut self, op: i32) -> i32

source

pub fn emit_op1( &mut self, op: i32, dst: i32, dstw: i64, src: i32, srcw: i64 ) -> i32

source

pub fn emit_op2( &mut self, op: i32, dst: i32, dstw: i64, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> i32

source

pub fn emit_op2u( &mut self, op: i32, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> i32

source

pub fn emit_shift_into( &mut self, op: i32, dst_reg: i32, src1_reg: i32, src2_reg: i32, src3: i32, src3w: i64 ) -> i32

source

pub fn emit_op_src(&mut self, op: i32, src: i32, srcw: i64) -> i32

source

pub fn emit_op_dst(&mut self, op: i32, dst: i32, dstw: i64) -> i32

source

pub fn emit_fop1( &mut self, op: i32, dst: i32, dstw: i64, src: i32, srcw: i64 ) -> i32

source

pub fn emit_fop2( &mut self, op: i32, dst: i32, dstw: i64, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> i32

source

pub fn emit_fop2r( &mut self, op: i32, dst_freg: i32, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> i32

source

pub fn emit_fset32(&mut self, freg: i32, value: f32) -> i32

source

pub fn emit_fset64(&mut self, freg: i32, value: f64) -> i32

source

pub fn emit_fcopy(&mut self, op: i32, freg: i32, reg: i32) -> i32

source

pub fn emit_ijump(&mut self, type_: i32, src: i32, srcw: i64) -> i32

source

pub fn emit_icall( &mut self, type_: i32, arg_types: i32, src: i32, srcw: i64 ) -> i32

source

pub fn emit_op_flags(&mut self, op: i32, dst: i32, dstw: i64, type_: i32) -> i32

source

pub fn emit_select( &mut self, type_: i32, dst_reg: i32, src1: i32, src1w: i64, src2_reg: i32 ) -> i32

source

pub fn emit_fselect( &mut self, type_: i32, dst_freg: i32, src1: i32, src1w: i64, src2_freg: i32 ) -> i32

source

pub fn emit_mem(&mut self, type_: i32, reg: i32, mem: i32, memw: i64) -> i32

source

pub fn emit_mem_update( &mut self, type_: i32, reg: i32, mem: i32, memw: i64 ) -> i32

source

pub fn emit_fmem(&mut self, type_: i32, freg: i32, mem: i32, memw: i64) -> i32

source

pub fn emit_fmem_update( &mut self, type_: i32, freg: i32, mem: i32, memw: i64 ) -> i32

source

pub fn emit_simd_mov( &mut self, type_: i32, freg: i32, srcdst: i32, srcdstw: i64 ) -> i32

source

pub fn emit_simd_replicate( &mut self, type_: i32, freg: i32, src: i32, srcw: i64 ) -> i32

source

pub fn emit_simd_lane_mov( &mut self, type_: i32, freg: i32, lane_index: i32, srcdst: i32, srcdstw: i64 ) -> i32

source

pub fn emit_simd_lane_replicate( &mut self, type_: i32, freg: i32, src: i32, src_lane_index: i32 ) -> i32

source

pub fn emit_simd_extend( &mut self, type_: i32, freg: i32, src: i32, srcw: i64 ) -> i32

source

pub fn emit_simd_sign( &mut self, type_: i32, freg: i32, dst: i32, dstw: i64 ) -> i32

source

pub fn emit_simd_op2( &mut self, type_: i32, dst_freg: i32, src1_freg: i32, src2_freg: i32 ) -> i32

source

pub fn emit_atomic_load(&mut self, op: i32, dst_reg: i32, mem_reg: i32) -> i32

source

pub fn emit_atomic_store( &mut self, op: i32, src_reg: i32, mem_reg: i32, temp_reg: i32 ) -> i32

source

pub fn get_local_base(&mut self, dst: i32, dstw: i64, offset: i64) -> i32

source

pub fn emit_op_custom(&mut self, instruction: *mut c_void, size: u32) -> i32

source

pub fn emit_jump(&mut self, type_: i32) -> Jump

source

pub fn emit_call(&mut self, type_: i32, arg_types: i32) -> Jump

source

pub fn emit_cmp( &mut self, type_: i32, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> Jump

source

pub fn emit_fcmp( &mut self, type_: i32, src1: i32, src1w: i64, src2: i32, src2w: i64 ) -> Jump

source

pub fn emit_label(&mut self) -> Label

source

pub fn set_compiler_memory_error(&mut self)

source

pub fn compiler_verbose(&mut self, verbose: *mut _IO_FILE)

source

pub fn set_current_flags(&mut self, current_flags: i32)

Trait Implementations§

source§

impl Drop for Compiler

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.