pub struct Function { /* private fields */ }Implementations§
Source§impl Function
impl Function
pub fn compile(&self)
pub fn alloca(&self, size: c_long) -> Value
pub fn dump(&self) -> Result<String, Error>
pub fn to_closure<T>(&self) -> T
pub fn insn_call_native( &self, native_func: *mut c_void, params: Vec<Value>, return_type: Option<JitType>, ) -> Value
pub fn arg(&self, idx: i32) -> Result<Value, Exception>
pub fn insn_mult(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_add(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_pow(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_rem(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_div(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_sub(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_eq(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_and(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_or(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_xor(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_le(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_lt(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_ge(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_gt(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_ne(&mut self, left: &Value, right: &Value) -> Value
pub fn insn_acos(&mut self, value: &Value) -> Value
pub fn insn_asin(&mut self, value: &Value) -> Value
pub fn insn_atan(&mut self, value: &Value) -> Value
pub fn insn_cos(&mut self, value: &Value) -> Value
pub fn insn_cosh(&mut self, value: &Value) -> Value
pub fn insn_exp(&mut self, value: &Value) -> Value
pub fn insn_log(&mut self, value: &Value) -> Value
pub fn insn_log10(&mut self, value: &Value) -> Value
pub fn insn_sin(&mut self, value: &Value) -> Value
pub fn insn_sinh(&mut self, value: &Value) -> Value
pub fn insn_sqrt(&mut self, value: &Value) -> Value
pub fn insn_tan(&mut self, value: &Value) -> Value
pub fn insn_tanh(&mut self, value: &Value) -> Value
pub fn insn_return(&mut self, value: &Value)
pub fn insn_not(&mut self, value: &Value) -> Value
pub fn insn_branch(&self, label: &mut Label)
pub fn insn_branch_if(&self, value: &Value, label: &mut Label)
pub fn insn_branch_if_not(&self, value: &Value, label: &mut Label)
pub fn insn_load(&mut self, ptr: &Value) -> Value
pub fn insn_store(&mut self, ptr: &Value, value: &Value)
pub fn insn_call(&mut self, function: &Function, args: Vec<Value>) -> Value
pub fn insn_load_relative( &mut self, base_ptr: &Value, offset_bytes: c_long, typ: &JitType, ) -> Value
pub fn create_value_int(&mut self) -> Value
pub fn create_value_void_ptr(&mut self) -> Value
pub fn create_value_float32(&mut self) -> Value
pub fn create_value_float64(&mut self) -> Value
pub fn insn_label(&self, label: &mut Label)
pub fn insn_ceil(&self, value: &Value) -> Value
pub fn insn_floor(&self, value: &Value) -> Value
pub fn insn_rint(&self, value: &Value) -> Value
pub fn insn_round(&self, value: &Value) -> Value
pub fn insn_trunc(&self, value: &Value) -> Value
pub fn insn_load_elem_address( &self, base_addr: &Value, index: &Value, elem_type: &JitType, ) -> Value
pub fn create_float32_constant(&mut self, constant_value: c_float) -> Value
pub fn create_float64_constant(&mut self, constant_value: c_double) -> Value
pub fn create_long_constant(&mut self, constant_value: c_long) -> Value
pub fn create_sbyte_constant(&mut self, constant_value: c_char) -> Value
pub fn create_ubyte_constant(&mut self, constant_value: c_uchar) -> Value
pub fn create_short_constant(&mut self, constant_value: c_long) -> Value
pub fn create_ushort_constant(&mut self, constant_value: c_ulong) -> Value
pub fn create_int_constant(&mut self, constant_value: c_int) -> Value
pub fn create_ulong_constant(&mut self, constant_value: c_ulong) -> Value
pub fn create_uint_constant(&mut self, constant_value: c_uint) -> Value
pub fn create_nint_constant(&mut self, constant_value: c_int) -> Value
pub fn create_nuint_constant(&mut self, constant_value: c_int) -> Value
pub fn create_void_ptr_constant(&mut self, constant_value: *mut c_void) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more