Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperTails/wasmcraft2
/ functions
Functions
555 in github.com/SuperTails/wasmcraft2
⨍
Functions
555
◇
Types & classes
118
↓ 2 callers
Function
run
The main entry point for Wasmcraft. This will read a WebAssembly file and compile it into a datapack, possibly saving the resulting datapack or simula
src/lib.rs:225
↓ 2 callers
Function
run_interp
( mut indiv_time: Vec<u64>, mut intrin_cum_times: Vec<u64>, mut intrin_visited: Vec<bool>, intrin_funcs: V
src/lib.rs:333
↓ 2 callers
Method
set_live_in
(&mut self, live_in: BlockLiveIn)
src/ssa/liveness.rs:447
↓ 2 callers
Function
signed_div
(dst: Register, mut lhs: Register, mut rhs: Register, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1001
↓ 2 callers
Function
signed_less_than_eq_64
(dst: Register, lhs: DoubleRegister, rhs: DoubleRegister, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1324
↓ 2 callers
Function
simplify_range_list
(list: &mut Vec<RangeInclusive<usize>>)
src/ssa/liveness.rs:28
↓ 2 callers
Method
step
(&mut self)
src/lir/interp.rs:577
↓ 2 callers
Method
store
(&mut self, addr: usize, bytes: &[u8])
src/ssa/mod.rs:1428
↓ 2 callers
Method
swap_remove_arm
(&mut self, arm: usize)
src/ssa/mod.rs:85
↓ 2 callers
Method
ty
(self)
src/validator.rs:18
↓ 2 callers
Method
union
(&mut self, t1: SsaVar, t2: SsaVar, dest: SsaVar)
src/ssa/opt/coalesce.rs:119
↓ 2 callers
Function
unsigned_div
(dst: Register, mut lhs: Register, mut rhs: Register, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1060
↓ 2 callers
Function
unsigned_greater_than_eq
(dst: Register, lhs: Register, rhs: Register, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:997
↓ 2 callers
Function
unsigned_less_than_eq
(dst: Register, lhs: Register, rhs: Register, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:964
↓ 2 callers
Function
unsigned_less_than_eq_64
(dst: Register, lhs: DoubleRegister, rhs: DoubleRegister, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1272
↓ 2 callers
Method
unwrap_i64
(self)
src/ssa/mod.rs:275
↓ 1 callers
Method
add_block
(&mut self)
src/ssa/mod.rs:1354
↓ 1 callers
Method
add_data
(&mut self, d: Data<'a>)
src/wasm_file.rs:15
↓ 1 callers
Method
add_element
(&mut self, elem: Element<'a>)
src/wasm_file.rs:45
↓ 1 callers
Method
add_export
(&mut self, export: Export<'a>)
src/wasm_file.rs:114
↓ 1 callers
Function
add_export_funcs
(exports: &HashMap<String, BlockId>, code: &mut Vec<Function>)
src/pack_emitter/mod.rs:2558
↓ 1 callers
Method
add_global
(&mut self, global: Global<'a>)
src/wasm_file.rs:60
↓ 1 callers
Method
add_import
(&mut self, i: Import<'a>)
src/wasm_file.rs:91
↓ 1 callers
Method
add_memory
(&mut self, memory: MemoryType)
src/wasm_file.rs:140
↓ 1 callers
Function
add_prologue
Adds the prologue to the given SSA function. See [validate] for usage. The prologue fetches the function parameters and initializes the other locals
src/validator.rs:1271
↓ 1 callers
Method
add_source
(&mut self, block: usize, vars: Vec<TypedSsaVar>)
src/ssa/mod.rs:100
↓ 1 callers
Method
add_table
(&mut self, ty: TableType)
src/wasm_file.rs:30
↓ 1 callers
Method
add_type
(&mut self, ty: Type)
src/wasm_file.rs:161
↓ 1 callers
Method
arm_mut
(&mut self, index: usize)
src/ssa/mod.rs:78
↓ 1 callers
Function
avoid_color
( if_graph: &IFGraph, node: SsaVar, bad_color: Color, fixed_nodes: &mut Set<SsaVar>, old_c
src/ssa/opt/coalesce.rs:291
↓ 1 callers
Function
best_affine_subset
( chunk: &Chunk, affinity_edges: &AffinityEdges, goal_color: Color, coloring: &Coloring, )
src/ssa/opt/coalesce.rs:386
↓ 1 callers
Function
bit_run_to_mask
(run: Range<u32>)
src/pack_emitter/mod.rs:1488
↓ 1 callers
Method
call
(&mut self, func: usize, params: &[TypedValue])
src/lir/interp.rs:241
↓ 1 callers
Method
check_cond
(&mut self, cond: &Condition)
src/lir/interp.rs:269
↓ 1 callers
Method
check_func_id
(&mut self, func_id: usize)
src/block_id_map.rs:30
↓ 1 callers
Function
coalesce
( func: &SsaFunction, if_graph: &IFGraph, coloring: &mut Coloring, )
src/ssa/opt/coalesce.rs:535
↓ 1 callers
Function
compute_affinity_edges
Returns all of the affinity edges in a function. Two temps have an affinity edge between them when one is copied to another, e.g. by a phi node or by
src/ssa/opt/coalesce.rs:46
↓ 1 callers
Function
compute_block_use_def_sets
Computes the effective use and def sets for a basic block. To make liveness analysis faster, we can do the liveness calculations at the block level f
src/ssa/liveness.rs:564
↓ 1 callers
Function
compute_chunk_cost
(nodes: &[SsaVar], affinity_edges: &AffinityEdges)
src/ssa/opt/coalesce.rs:444
↓ 1 callers
Function
compute_chunks
( mut if_graph: IFGraph, affinity_edges: &[(u32, (TypedSsaVar, TypedSsaVar))], coloring: &DenseMap
src/ssa/opt/coalesce.rs:168
↓ 1 callers
Function
compute_liveness_info
(function: &SsaFunction, predecessors: &PredInfo)
src/ssa/liveness.rs:481
↓ 1 callers
Method
compute_liveness_info_multi
(&mut self, block_id: BlockId, block: &SsaBasicBlock, live_out: &TypedSsaVarSet)
src/ssa/liveness.rs:357
↓ 1 callers
Function
compute_straight_live_in_multi
(instr: &SsaInstr, live_out: TypedSsaVarSet)
src/ssa/liveness.rs:549
↓ 1 callers
Function
connect_to_server
()
tests/server_test.rs:10
↓ 1 callers
Method
const_pool
(&self)
src/ssa/reg_alloc.rs:79
↓ 1 callers
Method
constable_vars
(&mut self)
src/ssa/mod.rs:859
↓ 1 callers
Function
constant_load_16
(memory: &[i32], offset: i32)
src/pack_emitter/mod.rs:3014
↓ 1 callers
Function
constant_load_64
(memory: &[i32], offset: i32)
src/pack_emitter/mod.rs:2899
↓ 1 callers
Method
contains
(&self, elem: T)
src/set.rs:48
↓ 1 callers
Function
contains_back_edge
(func: &SsaFunction)
src/ssa/call_graph.rs:144
↓ 1 callers
Function
contains_scheduled_jump
(func: &SsaFunction)
src/ssa/call_graph.rs:138
↓ 1 callers
Function
convert
(ctx: &CompileContext, ssa_program: SsaProgram)
src/ssa/lir_emitter.rs:1358
↓ 1 callers
Function
convert_phi_to_lir
( phi_node: &PhiNode, source: BlockId, ra: &mut dyn RegAlloc, )
src/ssa/lir_emitter.rs:1381
↓ 1 callers
Method
cost
(&self, a: SsaVar, b: SsaVar)
src/ssa/opt/coalesce.rs:31
↓ 1 callers
Function
create_array_with_consts
(regs: &[Register])
src/pack_emitter/mod.rs:275
↓ 1 callers
Function
create_cmd_count_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:38
↓ 1 callers
Function
create_constants_init
(constants: &HashSet<i32>, code: &mut Vec<String>)
src/pack_emitter/mod.rs:69
↓ 1 callers
Function
create_globals_init
(globals: &[TypedValue], code: &mut Vec<String>)
src/pack_emitter/mod.rs:128
↓ 1 callers
Function
create_init_func
init code: create objectives set up globals set up memory reset local stack reset data stack initialize constants initialize "return address" constant
src/pack_emitter/mod.rs:163
↓ 1 callers
Function
create_memory_init
(memory: &[Memory], code: &mut Vec<String>)
src/pack_emitter/mod.rs:93
↓ 1 callers
Function
create_nested_return_func
(cond: Register, values: &[(usize, BlockId)], funcs: &mut Vec<Function>)
src/pack_emitter/mod.rs:206
↓ 1 callers
Function
create_pointers_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:54
↓ 1 callers
Function
create_return_addrs_init
(blocks: I, code: &mut Vec<String>)
src/pack_emitter/mod.rs:146
↓ 1 callers
Function
create_return_to_saved_func
(program: &LirProgram)
src/pack_emitter/mod.rs:179
↓ 1 callers
Function
create_scoreboard_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:32
↓ 1 callers
Function
create_stack_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:43
↓ 1 callers
Function
create_stdout_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:50
↓ 1 callers
Function
create_zeroed_array
(count: usize)
src/pack_emitter/mod.rs:292
↓ 1 callers
Function
dead_block_removal
Removes blocks that are never jumped to.
src/ssa/opt/dead_block_removal.rs:6
↓ 1 callers
Method
default
()
src/set.rs:194
↓ 1 callers
Function
do_block_const_prop
(id: BlockId, block: &mut SsaBasicBlock)
src/ssa/const_prop.rs:376
↓ 1 callers
Function
do_dead_code_elim
(_program: &mut SsaProgram)
src/ssa/dce.rs:5
↓ 1 callers
Function
do_func_const_prop
(func: &mut SsaFunction)
src/ssa/const_prop.rs:362
↓ 1 callers
Function
do_strength_reduction
(block: &mut SsaBasicBlock, constants: &StaticState)
src/ssa/const_prop.rs:704
↓ 1 callers
Function
emit_block
(block_id: BlockId, block: &LirBasicBlock, parent: &LirProgram, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:2338
↓ 1 callers
Function
emit_constant_or
(dst: Register, lhs: RegisterWithInfo, rhs: i32, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1496
↓ 1 callers
Function
emit_constant_xor
(dst: Register, lhs: RegisterWithInfo, mut rhs: i32, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1711
↓ 1 callers
Function
emit_function
(func: &LirFunction, parent: &LirProgram, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:2486
↓ 1 callers
Function
emit_instr
(instr: &LirInstr, parent: &LirProgram, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1814
↓ 1 callers
Function
emit_program
Converts an LIR program to a list of Minecraft datapack functions.
src/pack_emitter/mod.rs:2565
↓ 1 callers
Function
emit_xor_low_bits
Returns the remaining mask that must be handled, if successful.
src/pack_emitter/mod.rs:1682
↓ 1 callers
Function
eval
(expr: &SExpr, test_state: Option<&mut TestState<'_>>)
tests/server_test.rs:134
↓ 1 callers
Method
eval
(&mut self, expr: &SExpr)
tests/test_common.rs:352
↓ 1 callers
Method
eval
(&mut self, expr: &SExpr)
tests/server_test.rs:213
↓ 1 callers
Function
eval_const_expr
(init_expr: &ConstExpr)
src/wasm_file.rs:413
↓ 1 callers
Method
eval_single
(&mut self, expr: &SExpr)
tests/test_common.rs:356
↓ 1 callers
Method
eval_single
(&mut self, expr: &SExpr)
tests/server_test.rs:217
↓ 1 callers
Method
exec_instr
(&mut self, instr: &LirInstr)
src/lir/interp.rs:282
↓ 1 callers
Method
func
(&self)
src/ssa/lir_emitter.rs:33
↓ 1 callers
Method
func_import
(&self, func_idx: usize)
src/wasm_file.rs:271
↓ 1 callers
Method
func_type_idx
(&self, func_idx: usize)
src/wasm_file.rs:246
↓ 1 callers
Function
gen_prologue
(ssa_func: &SsaFunction, ssa_program: &SsaProgram, ra: &mut dyn RegAlloc)
src/ssa/lir_emitter.rs:1269
↓ 1 callers
Method
get
(&self, k: BlockId)
src/block_id_map.rs:48
↓ 1 callers
Function
get_all_bit_runs
(mut value: i32)
src/pack_emitter/mod.rs:1450
↓ 1 callers
Function
get_direct_calls
(program: &SsaProgram)
src/ssa/call_graph.rs:81
↓ 1 callers
Method
get_double_const
(&mut self, val: i64)
src/ssa/reg_alloc.rs:61
↓ 1 callers
Method
get_dyn_temp
(&mut self, ty: ValType)
src/ssa/opt/coalesce.rs:279
↓ 1 callers
Function
get_first_bit_run
(value: i32)
src/pack_emitter/mod.rs:1460
↓ 1 callers
Method
get_func
(&self, func_id: u32)
src/ssa/mod.rs:1410
↓ 1 callers
Method
get_idx2
(&self, var1: SsaVar)
src/ssa/reg_alloc.rs:178
← previous
next →
201–300 of 555, ranked by callers