WebAssembly MilkIR dialect adapter for MachV lowering
Dependencies
Milky2018/wasm_isa_lower does not have a README file
pub(all) struct WasmContextSlots {
memory0_base : Int
function_table : Int
table0_base : Int
table_directory : Int
memory_directory : Int
pointer_stride : Int
}fn load_context_slot_pointer(ctx : LoweringContext, block : Block, slot_id : Int, base : Reg) -> VRegfn load_context_slot_pointer_from_pinned_context(ctx : LoweringContext, block : Block, slot_id : Int) -> VRegfn lower_array_copy(ctx : LoweringContext, inst : Inst, block : Block, _dst_type : Int, _src_type : Int) -> Unitfn lower_array_get_s(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, byte_width : Int) -> Unitfn lower_array_get_u(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, byte_width : Int) -> Unitfn lower_array_init_data(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, data_idx : Int) -> Unitfn lower_array_init_elem(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, elem_idx : Int) -> Unitfn lower_array_new_data(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, data_idx : Int) -> Unitfn lower_array_new_default(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int) -> Unitfn lower_array_new_elem(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, elem_idx : Int) -> Unitfn lower_array_new_fixed(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, len : Int) -> Blockfn lower_call_indirect(ctx : LoweringContext, inst : Inst, block : Block, expected_type_idx : Int, table_idx : Int, options : WasmLoweringOptions) -> Unitfn lower_function(func : Function, context_slots : WasmContextSlots, isa? : ISA, embedding_abi? : EmbeddingABI?, runtime_symbols? : RuntimeSymbols, num_imports? : Int, run_ir_opt? : Bool, trap_payload_resolver? : (String) -> Int, use_subtype_indirect_check? : Bool, canonical_type_indices? : Array[Int]) -> Functionfn lower_get_func_ref(ctx : LoweringContext, inst : Inst, block : Block, func_idx : Int, context_slots : WasmContextSlots) -> Unitfn lower_load_mem_base(ctx : LoweringContext, inst : Inst, block : Block, memidx : Int, context_slots : WasmContextSlots) -> Unitfn lower_ref_cast(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, nullable : Bool) -> Unitfn lower_ref_test(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, nullable : Bool) -> Unitfn lower_return_call_indirect(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, table_idx : Int, options : WasmLoweringOptions) -> Unitfn lower_return_call_ref(ctx : LoweringContext, inst : Inst, block : Block, _type_idx : Int) -> Unitfn lower_spill_locals_for_throw(ctx : LoweringContext, inst : Inst, block : Block, count : Int) -> Unitfn lower_struct_get(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, field_idx : Int) -> Unitfn lower_struct_get_s(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, field_idx : Int, byte_width : Int) -> Unitfn lower_struct_get_u(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, field_idx : Int, byte_width : Int) -> Unitfn lower_struct_new_default(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int) -> Unitfn lower_struct_set(ctx : LoweringContext, inst : Inst, block : Block, type_idx : Int, field_idx : Int) -> Unitfn lower_try_table_begin(ctx : LoweringContext, inst : Inst, block : Block, handler_id : Int) -> Unitfn lower_try_table_end(ctx : LoweringContext, _inst : Inst, block : Block, handler_id : Int) -> UnitWebAssembly MilkIR dialect adapter for MachV lowering
Dependencies