MCPcopy Create free account

hub / github.com/TomBebbington/jit.rs / functions

Functions244 in github.com/TomBebbington/jit.rs

↓ 130 callersMethodinto
(self)
src/types.rs:356
↓ 36 callersFunctionfrom_ptr
(ptr: *mut c_void)
src/util.rs:52
↓ 31 callersMethodclone
Make a copy of the type descriptor by increasing its reference count.
src/types.rs:321
↓ 26 callersMethodinsn_unop
(&self, value: &'a Val, f: unsafe extern "C" fn(
src/function.rs:910
↓ 24 callersMethodinsn_binop
(&self, v1: &'a Val, v2: &'a Val, f: unsafe extern "C" fn(
src/function.rs:898
↓ 15 callersFunctionsimple_type
(cx: &mut ExtCtxt, name: &'static str, as_cow:bool)
macro/src/macros.rs:26
↓ 12 callersFunctionfrom_ptr_opt
(ptr: *mut c_void)
src/util.rs:36
↓ 11 callersMethoditer
Iterate through the instructions
src/insn.rs:120
↓ 9 callersMethodinsn_label
Make an instruction that sets a label
src/function.rs:547
↓ 5 callersMethodget_kind
Get a value that indicates the kind of this type. This allows callers to quickly classify a type to determine how it should be handled further.
src/types.rs:417
↓ 5 callersMethodinsn_call_native
Make an instruction that calls a native function that has the signature given with some arguments
src/function.rs:770
↓ 5 callersMethodinsn_store_relative
Make an instruction that stores the `value` at the address `dest + offset`, where `dest` must be a pointer
src/function.rs:537
↓ 5 callersFunctionrun
(cmd: &mut Command, text: Option<&str>)
sys/build.rs:89
↓ 5 callersFunctiontype_expr
(cx: &mut ExtCtxt, sp: Span, ty: P<Ty>, as_cow: bool)
macro/src/macros.rs:35
↓ 4 callersFunctioncount
(func: &UncompiledFunction<'a>, code: &mut Peekable<I>, curr:char)
examples/brainfuck.rs:39
↓ 4 callersMethodfields
Iterate over the type's fields ```rust use jit::*; let pos_t = get::<(f64, f64)>(); let f64_t = get::<f64>(); for field in pos_t.fields() { assert_eq
src/types.rs:471
↓ 4 callersMethodinsn_branch
Make an instruction that branches to a certain label
src/function.rs:554
↓ 4 callersMethodinsn_branch_if_not
Make an instruction that branches to a certain label if the value is false
src/function.rs:568
↓ 4 callersMethodinsn_load_relative
Make an instruction that loads a value of the given type from `value + offset`, where `value` must be a pointer
src/function.rs:513
↓ 4 callersMethodnext
(&mut self)
src/elf.rs:34
↓ 3 callersMethodcompile
Compile the function
src/function.rs:1004
↓ 3 callersFunctioncompile_expr
(cx: &mut ExtCtxt, ctx: &ExprCtxt, expr: P<Expr>)
macro/src/macros.rs:318
↓ 3 callersFunctionexists
PathExt::exists isn't stable, so fake it by querying file metadata.
sys/build.rs:25
↓ 3 callersMethodget_type
Get the type of the value
src/value.rs:34
↓ 3 callersMethodinsn_of
Make an instructional representation of a Rust value ```rust use jit::*; let mut ctx = Context::<()>::new(); let func = UncompiledFunction::new(&mut c
src/function.rs:315
↓ 3 callersMethodparams
Iterate over the function signature's parameters ```rust use jit::*; let sig_t = get::<fn(i32, i32) -> i32>(); let i32_t = get::<i32>(); for param in
src/types.rs:485
↓ 3 callersMethodsize_hint
(&self)
src/types.rs:238
↓ 3 callersMethodwrite
Write to the filename given (not implemented by LibJIT yet, so there's no point to this yet but I'm sure GNU will hear the people sing the songs of an
src/elf.rs:172
↓ 2 callersFunctionfrom_ptr_oom
(ptr: *mut c_void)
src/util.rs:43
↓ 2 callersMethodinsn_convert
Make an instruction that converts the value to the type given
src/function.rs:296
↓ 2 callersMethodinsn_store
Make an instruction that stores the contents of `val` into `dest`, where `dest` is a temporary value or local value
src/function.rs:529
↓ 2 callersMethodis_pointer
Check if this is a pointer ```rust use jit::*; assert!(get::<&'static u8>().is_pointer()); ```
src/types.rs:578
↓ 2 callersFunctionrun
(ctx: &mut Context, code: &str)
examples/brainfuck.rs:126
↓ 2 callersMethodset_optimization_level
Set the optimization level of the function, where the bigger the level, the more effort should be spent optimising
src/function.rs:971
↓ 2 callersMethodset_recompilable
Make this function a candidate for recompilation
src/function.rs:985
↓ 2 callersMethodwith
Run a closure with the compiled function as an argument
src/function.rs:100
↓ 1 callersFunctioncompile
(func: &UncompiledFunction<'a>, code: &str)
examples/brainfuck.rs:48
↓ 1 callersMethodderef
(&self)
src/types.rs:338
↓ 1 callersMethodend
(&mut self, func: &UncompiledFunction<'a>)
examples/brainfuck.rs:30
↓ 1 callersMethodfunctions
Iterate through the functions contained inside this context
src/context.rs:76
↓ 1 callersMethodget_return
Get the type returned by this function type.
src/types.rs:431
↓ 1 callersMethodinsn_branch_if
Make an instruction that branches to a certain label if the value is true
src/function.rs:561
↓ 1 callersMethodinsn_call_native0
Make an instruction that calls a Rust function that has the signature given with no arguments and expects a return value
src/function.rs:806
↓ 1 callersMethodinsn_call_native1
Make an instruction that calls a Rust function that has the signature given with a single argument and expects a return value
src/function.rs:816
↓ 1 callersMethodinsn_default_return
Return from the function
src/function.rs:342
↓ 1 callersMethodis_float
Check if this is a floating-point number ```rust use jit::*; assert!(get::<f64>().is_float()); assert!(!get::<i16>().is_float()); ```
src/types.rs:526
↓ 1 callersMethodis_primitive
Check if this is a primitive ```rust use jit::*; assert!(get::<i16>().is_primitive()); assert!(!get::<(i16, i16)>().is_primitive()); ```
src/types.rs:513
↓ 1 callersMethodis_signature
Check if this is a signature ```rust use jit::*; assert!(get::<fn(i16) -> i16>().is_signature()); ```
src/types.rs:566
↓ 1 callersFunctionmul_add_tutorial
An [example from the libjit manual][example], translated to Rust. We compile and call a function equivalent to: ```c int mul_add(int x, int y, int z
sys/examples/mul_add.rs:18
Methodadd_function
Add a function to the ELF
src/elf.rs:180
Methodadd_needed
Add a dependency to the ELF
src/elf.rs:188
Methodadd_to_context
(&self, ctx:&Context)
src/elf.rs:129
Functionbench_gcd
(b: &mut Bencher)
benches/gcd.rs:11
Functionbench_raw_gcd
(b: &mut Bencher)
benches/gcd.rs:26
Methodborrow
(&self)
src/types.rs:298
Methodcompile
(self, func:&UncompiledFunction<'a>)
src/compile.rs:22
Methodcompile_with
Compile the function and call a closure with it directly
src/function.rs:1017
Methoddefault
()
src/function.rs:37
Methoddefault
()
tests/compile.rs:59
Methodderef
(&self)
src/label.rs:34
Methodderef
(&self)
src/function.rs:82
Methodderef_mut
(&mut self)
src/types.rs:345
Methodderef_mut
(&mut self)
src/label.rs:39
Methodderef_mut
(&mut self)
src/function.rs:87
Methoddescription
(&self)
src/elf.rs:82
Methoddest_is_value
Get if the destination value is a value
src/insn.rs:31
Methoddrop
Free a type descriptor by decreasing its reference count.
src/types.rs:330
Methoddrop
(&mut self)
src/elf.rs:148
Methoddrop
(&mut self)
src/function.rs:220
Methoddrop
(&mut self)
src/context.rs:96
Methoddrop
(&mut self)
tests/tags.rs:28
Functiondump
(cb: F)
src/util.rs:5
Methodends_in_dead
Check if the block ends in dead code
src/insn.rs:114
Functionexpand_derive_compile
(cx: &mut ExtCtxt, sp: Span, _meta: &MetaItem, item: &Annotatable, push: &mut FnMut(Annotatable))
macro/src/macros.rs:75
Functionexpand_jit
(cx: &mut ExtCtxt, sp: Span, tt: &[TokenTree])
macro/src/macros.rs:432
Methodfloat32_value
(&mut self)
sys/lib.rs:239
Methodfloat64_value
(&mut self)
sys/lib.rs:242
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/value.rs:17
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/types.rs:45
Methodfmt
(&self, fmt:&mut fmt::Formatter)
src/insn.rs:70
Methodfmt
(&self, fmt:&mut fmt::Formatter)
src/label.rs:16
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/elf.rs:72
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/function.rs:92
Functionfree_data
(data: *mut c_void)
src/jit.rs:72
Methodfrom
Convert from a native pointer
src/types.rs:612
Methodfrom
Convert to a native pointer
src/function.rs:173
Functiongcd
(x: usize, y: usize)
benches/gcd.rs:27
Functionget
Get the Rust type given as a type descriptor
src/types.rs:671
Methodget_alignment
Get the alignment of this type in bytes.
src/types.rs:409
Methodget_current
Get the current block of this function
src/function.rs:997
Methodget_dest
Get the destination value
src/insn.rs:25
Methodget_entry
Get the entry block of this function
src/function.rs:991
Methodget_field
Find the field/parameter index for a particular name.
src/types.rs:490
Methodget_function
Get the function which made this value
src/value.rs:40
Methodget_function
Get the function containing this value
src/insn.rs:49
Methodget_max_optimization_level
Get the max optimization level
src/function.rs:978
Methodget_name
Get the field's name or none if it lacks one
src/types.rs:177
Methodget_name
Get the name of the instruction
src/insn.rs:61
Methodget_name
Get the name of this ELF binary
src/elf.rs:122
Methodget_offset
Get the offset of the field
src/types.rs:197
next →1–100 of 244, ranked by callers