MCPcopy Create free account

hub / github.com/SuperTails/wasmcraft2 / functions

Functions555 in github.com/SuperTails/wasmcraft2

↓ 2 callersFunctionrun
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 callersFunctionrun_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 callersMethodset_live_in
(&mut self, live_in: BlockLiveIn)
src/ssa/liveness.rs:447
↓ 2 callersFunctionsigned_div
(dst: Register, mut lhs: Register, mut rhs: Register, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1001
↓ 2 callersFunctionsigned_less_than_eq_64
(dst: Register, lhs: DoubleRegister, rhs: DoubleRegister, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1324
↓ 2 callersFunctionsimplify_range_list
(list: &mut Vec<RangeInclusive<usize>>)
src/ssa/liveness.rs:28
↓ 2 callersMethodstep
(&mut self)
src/lir/interp.rs:577
↓ 2 callersMethodstore
(&mut self, addr: usize, bytes: &[u8])
src/ssa/mod.rs:1428
↓ 2 callersMethodswap_remove_arm
(&mut self, arm: usize)
src/ssa/mod.rs:85
↓ 2 callersMethodty
(self)
src/validator.rs:18
↓ 2 callersMethodunion
(&mut self, t1: SsaVar, t2: SsaVar, dest: SsaVar)
src/ssa/opt/coalesce.rs:119
↓ 2 callersFunctionunsigned_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 callersFunctionunsigned_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 callersFunctionunsigned_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 callersFunctionunsigned_less_than_eq_64
(dst: Register, lhs: DoubleRegister, rhs: DoubleRegister, code: &mut Vec<String>)
src/pack_emitter/mod.rs:1272
↓ 2 callersMethodunwrap_i64
(self)
src/ssa/mod.rs:275
↓ 1 callersMethodadd_block
(&mut self)
src/ssa/mod.rs:1354
↓ 1 callersMethodadd_data
(&mut self, d: Data<'a>)
src/wasm_file.rs:15
↓ 1 callersMethodadd_element
(&mut self, elem: Element<'a>)
src/wasm_file.rs:45
↓ 1 callersMethodadd_export
(&mut self, export: Export<'a>)
src/wasm_file.rs:114
↓ 1 callersFunctionadd_export_funcs
(exports: &HashMap<String, BlockId>, code: &mut Vec<Function>)
src/pack_emitter/mod.rs:2558
↓ 1 callersMethodadd_global
(&mut self, global: Global<'a>)
src/wasm_file.rs:60
↓ 1 callersMethodadd_import
(&mut self, i: Import<'a>)
src/wasm_file.rs:91
↓ 1 callersMethodadd_memory
(&mut self, memory: MemoryType)
src/wasm_file.rs:140
↓ 1 callersFunctionadd_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 callersMethodadd_source
(&mut self, block: usize, vars: Vec<TypedSsaVar>)
src/ssa/mod.rs:100
↓ 1 callersMethodadd_table
(&mut self, ty: TableType)
src/wasm_file.rs:30
↓ 1 callersMethodadd_type
(&mut self, ty: Type)
src/wasm_file.rs:161
↓ 1 callersMethodarm_mut
(&mut self, index: usize)
src/ssa/mod.rs:78
↓ 1 callersFunctionavoid_color
( if_graph: &IFGraph, node: SsaVar, bad_color: Color, fixed_nodes: &mut Set<SsaVar>, old_c
src/ssa/opt/coalesce.rs:291
↓ 1 callersFunctionbest_affine_subset
( chunk: &Chunk, affinity_edges: &AffinityEdges, goal_color: Color, coloring: &Coloring, )
src/ssa/opt/coalesce.rs:386
↓ 1 callersFunctionbit_run_to_mask
(run: Range<u32>)
src/pack_emitter/mod.rs:1488
↓ 1 callersMethodcall
(&mut self, func: usize, params: &[TypedValue])
src/lir/interp.rs:241
↓ 1 callersMethodcheck_cond
(&mut self, cond: &Condition)
src/lir/interp.rs:269
↓ 1 callersMethodcheck_func_id
(&mut self, func_id: usize)
src/block_id_map.rs:30
↓ 1 callersFunctioncoalesce
( func: &SsaFunction, if_graph: &IFGraph, coloring: &mut Coloring, )
src/ssa/opt/coalesce.rs:535
↓ 1 callersFunctioncompute_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 callersFunctioncompute_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 callersFunctioncompute_chunk_cost
(nodes: &[SsaVar], affinity_edges: &AffinityEdges)
src/ssa/opt/coalesce.rs:444
↓ 1 callersFunctioncompute_chunks
( mut if_graph: IFGraph, affinity_edges: &[(u32, (TypedSsaVar, TypedSsaVar))], coloring: &DenseMap
src/ssa/opt/coalesce.rs:168
↓ 1 callersFunctioncompute_liveness_info
(function: &SsaFunction, predecessors: &PredInfo)
src/ssa/liveness.rs:481
↓ 1 callersMethodcompute_liveness_info_multi
(&mut self, block_id: BlockId, block: &SsaBasicBlock, live_out: &TypedSsaVarSet)
src/ssa/liveness.rs:357
↓ 1 callersFunctioncompute_straight_live_in_multi
(instr: &SsaInstr, live_out: TypedSsaVarSet)
src/ssa/liveness.rs:549
↓ 1 callersFunctionconnect_to_server
()
tests/server_test.rs:10
↓ 1 callersMethodconst_pool
(&self)
src/ssa/reg_alloc.rs:79
↓ 1 callersMethodconstable_vars
(&mut self)
src/ssa/mod.rs:859
↓ 1 callersFunctionconstant_load_16
(memory: &[i32], offset: i32)
src/pack_emitter/mod.rs:3014
↓ 1 callersFunctionconstant_load_64
(memory: &[i32], offset: i32)
src/pack_emitter/mod.rs:2899
↓ 1 callersMethodcontains
(&self, elem: T)
src/set.rs:48
↓ 1 callersFunctioncontains_back_edge
(func: &SsaFunction)
src/ssa/call_graph.rs:144
↓ 1 callersFunctioncontains_scheduled_jump
(func: &SsaFunction)
src/ssa/call_graph.rs:138
↓ 1 callersFunctionconvert
(ctx: &CompileContext, ssa_program: SsaProgram)
src/ssa/lir_emitter.rs:1358
↓ 1 callersFunctionconvert_phi_to_lir
( phi_node: &PhiNode, source: BlockId, ra: &mut dyn RegAlloc, )
src/ssa/lir_emitter.rs:1381
↓ 1 callersMethodcost
(&self, a: SsaVar, b: SsaVar)
src/ssa/opt/coalesce.rs:31
↓ 1 callersFunctioncreate_array_with_consts
(regs: &[Register])
src/pack_emitter/mod.rs:275
↓ 1 callersFunctioncreate_cmd_count_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:38
↓ 1 callersFunctioncreate_constants_init
(constants: &HashSet<i32>, code: &mut Vec<String>)
src/pack_emitter/mod.rs:69
↓ 1 callersFunctioncreate_globals_init
(globals: &[TypedValue], code: &mut Vec<String>)
src/pack_emitter/mod.rs:128
↓ 1 callersFunctioncreate_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 callersFunctioncreate_memory_init
(memory: &[Memory], code: &mut Vec<String>)
src/pack_emitter/mod.rs:93
↓ 1 callersFunctioncreate_nested_return_func
(cond: Register, values: &[(usize, BlockId)], funcs: &mut Vec<Function>)
src/pack_emitter/mod.rs:206
↓ 1 callersFunctioncreate_pointers_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:54
↓ 1 callersFunctioncreate_return_addrs_init
(blocks: I, code: &mut Vec<String>)
src/pack_emitter/mod.rs:146
↓ 1 callersFunctioncreate_return_to_saved_func
(program: &LirProgram)
src/pack_emitter/mod.rs:179
↓ 1 callersFunctioncreate_scoreboard_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:32
↓ 1 callersFunctioncreate_stack_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:43
↓ 1 callersFunctioncreate_stdout_init
(code: &mut Vec<String>)
src/pack_emitter/mod.rs:50
↓ 1 callersFunctioncreate_zeroed_array
(count: usize)
src/pack_emitter/mod.rs:292
↓ 1 callersFunctiondead_block_removal
Removes blocks that are never jumped to.
src/ssa/opt/dead_block_removal.rs:6
↓ 1 callersMethoddefault
()
src/set.rs:194
↓ 1 callersFunctiondo_block_const_prop
(id: BlockId, block: &mut SsaBasicBlock)
src/ssa/const_prop.rs:376
↓ 1 callersFunctiondo_dead_code_elim
(_program: &mut SsaProgram)
src/ssa/dce.rs:5
↓ 1 callersFunctiondo_func_const_prop
(func: &mut SsaFunction)
src/ssa/const_prop.rs:362
↓ 1 callersFunctiondo_strength_reduction
(block: &mut SsaBasicBlock, constants: &StaticState)
src/ssa/const_prop.rs:704
↓ 1 callersFunctionemit_block
(block_id: BlockId, block: &LirBasicBlock, parent: &LirProgram, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:2338
↓ 1 callersFunctionemit_constant_or
(dst: Register, lhs: RegisterWithInfo, rhs: i32, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1496
↓ 1 callersFunctionemit_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 callersFunctionemit_function
(func: &LirFunction, parent: &LirProgram, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:2486
↓ 1 callersFunctionemit_instr
(instr: &LirInstr, parent: &LirProgram, code: &mut Vec<String>, const_pool: &mut HashSet<i32>)
src/pack_emitter/mod.rs:1814
↓ 1 callersFunctionemit_program
Converts an LIR program to a list of Minecraft datapack functions.
src/pack_emitter/mod.rs:2565
↓ 1 callersFunctionemit_xor_low_bits
Returns the remaining mask that must be handled, if successful.
src/pack_emitter/mod.rs:1682
↓ 1 callersFunctioneval
(expr: &SExpr, test_state: Option<&mut TestState<'_>>)
tests/server_test.rs:134
↓ 1 callersMethodeval
(&mut self, expr: &SExpr)
tests/test_common.rs:352
↓ 1 callersMethodeval
(&mut self, expr: &SExpr)
tests/server_test.rs:213
↓ 1 callersFunctioneval_const_expr
(init_expr: &ConstExpr)
src/wasm_file.rs:413
↓ 1 callersMethodeval_single
(&mut self, expr: &SExpr)
tests/test_common.rs:356
↓ 1 callersMethodeval_single
(&mut self, expr: &SExpr)
tests/server_test.rs:217
↓ 1 callersMethodexec_instr
(&mut self, instr: &LirInstr)
src/lir/interp.rs:282
↓ 1 callersMethodfunc
(&self)
src/ssa/lir_emitter.rs:33
↓ 1 callersMethodfunc_import
(&self, func_idx: usize)
src/wasm_file.rs:271
↓ 1 callersMethodfunc_type_idx
(&self, func_idx: usize)
src/wasm_file.rs:246
↓ 1 callersFunctiongen_prologue
(ssa_func: &SsaFunction, ssa_program: &SsaProgram, ra: &mut dyn RegAlloc)
src/ssa/lir_emitter.rs:1269
↓ 1 callersMethodget
(&self, k: BlockId)
src/block_id_map.rs:48
↓ 1 callersFunctionget_all_bit_runs
(mut value: i32)
src/pack_emitter/mod.rs:1450
↓ 1 callersFunctionget_direct_calls
(program: &SsaProgram)
src/ssa/call_graph.rs:81
↓ 1 callersMethodget_double_const
(&mut self, val: i64)
src/ssa/reg_alloc.rs:61
↓ 1 callersMethodget_dyn_temp
(&mut self, ty: ValType)
src/ssa/opt/coalesce.rs:279
↓ 1 callersFunctionget_first_bit_run
(value: i32)
src/pack_emitter/mod.rs:1460
↓ 1 callersMethodget_func
(&self, func_id: u32)
src/ssa/mod.rs:1410
↓ 1 callersMethodget_idx2
(&self, var1: SsaVar)
src/ssa/reg_alloc.rs:178
← previousnext →201–300 of 555, ranked by callers