Lines Matching defs:ctx

41 static int ir_assign_virtual_registers_slow(ir_ctx *ctx)  in ir_assign_virtual_registers_slow()
82 int ir_assign_virtual_registers(ir_ctx *ctx) in ir_assign_virtual_registers()
118 static ir_live_interval *ir_new_live_range(ir_ctx *ctx, int v, ir_live_pos start, ir_live_pos end) in ir_new_live_range()
137 static ir_live_interval *ir_add_live_range(ir_ctx *ctx, int v, ir_live_pos start, ir_live_pos end) in ir_add_live_range()
214 IR_ALWAYS_INLINE ir_live_interval *ir_add_prev_live_range(ir_ctx *ctx, int v, ir_live_pos start, ir… in ir_add_prev_live_range()
225 static void ir_add_fixed_live_range(ir_ctx *ctx, ir_reg reg, ir_live_pos start, ir_live_pos end) in ir_add_fixed_live_range()
267 static void ir_add_tmp(ir_ctx *ctx, ir_ref ref, ir_ref tmp_ref, int32_t tmp_op_num, ir_tmp_reg tmp_… in ir_add_tmp()
301 static bool ir_has_tmp(ir_ctx *ctx, ir_ref ref, int32_t op_num) in ir_has_tmp()
316 static ir_live_interval *ir_fix_live_range(ir_ctx *ctx, int v, ir_live_pos old_start, ir_live_pos n… in ir_fix_live_range()
331 static void ir_add_use_pos(ir_ctx *ctx, ir_live_interval *ival, ir_use_pos *use_pos) in ir_add_use_pos()
352 IR_ALWAYS_INLINE void ir_add_use(ir_ctx *ctx, ir_live_interval *ival, int op_num, ir_live_pos pos, … in ir_add_use()
373 static void ir_add_phi_use(ir_ctx *ctx, ir_live_interval *ival, int op_num, ir_live_pos pos, ir_ref… in ir_add_phi_use()
388 static void ir_add_hint(ir_ctx *ctx, ir_ref ref, ir_live_pos pos, ir_reg hint) in ir_add_hint()
407 static void ir_hint_propagation(ir_ctx *ctx) in ir_hint_propagation()
439 static void ir_add_osr_entry_loads(ir_ctx *ctx, ir_block *bb, ir_bitset live, uint32_t len, uint32_… in ir_add_osr_entry_loads()
498 static void ir_add_fusion_ranges(ir_ctx *ctx, ir_ref ref, ir_ref input, ir_block *bb, ir_bitset liv… in ir_add_fusion_ranges()
581 int ir_compute_live_ranges(ir_ctx *ctx) in ir_compute_live_ranges()
941 IR_ALWAYS_INLINE uint32_t ir_live_out_top(ir_ctx *ctx, uint32_t *live_outs, ir_list *live_lists, ui… in ir_live_out_top()
954 IR_ALWAYS_INLINE void ir_live_out_push(ir_ctx *ctx, uint32_t *live_outs, ir_list *live_lists, uint3… in ir_live_out_push()
980 static void ir_compute_live_sets(ir_ctx *ctx, uint32_t *live_outs, ir_list *live_lists) in ir_compute_live_sets()
1092 static void ir_add_osr_entry_loads(ir_ctx *ctx, ir_block *bb, uint32_t pos, ir_list *live_lists, ui… in ir_add_osr_entry_loads()
1154 static void ir_add_fusion_ranges(ir_ctx *ctx, ir_ref ref, ir_ref input, ir_block *bb, uint32_t *liv… in ir_add_fusion_ranges()
1239 int ir_compute_live_ranges(ir_ctx *ctx) in ir_compute_live_ranges()
1533 static ir_live_pos ir_vregs_overlap(ir_ctx *ctx, uint32_t r1, uint32_t r2) in ir_vregs_overlap()
1561 static bool ir_vregs_inside(ir_ctx *ctx, uint32_t parent, uint32_t child) in ir_vregs_inside()
1578 static void ir_vregs_join(ir_ctx *ctx, uint32_t r1, uint32_t r2) in ir_vregs_join()
1639 static void ir_vregs_coalesce(ir_ctx *ctx, uint32_t v1, uint32_t v2, ir_ref from, ir_ref to) in ir_vregs_coalesce()
1683 static void ir_add_phi_move(ir_ctx *ctx, uint32_t b, ir_ref from, ir_ref to) in ir_add_phi_move()
1718 static void ir_swap_operands(ir_ctx *ctx, ir_ref i, ir_insn *insn) in ir_swap_operands()
1784 static int ir_hint_conflict(ir_ctx *ctx, ir_ref ref, int use, int def) in ir_hint_conflict()
1814 static int ir_try_swap_operands(ir_ctx *ctx, ir_ref i, ir_insn *insn) in ir_try_swap_operands()
1856 int ir_coalesce(ir_ctx *ctx) in ir_coalesce()
2062 int ir_compute_dessa_moves(ir_ctx *ctx) in ir_compute_dessa_moves()
2108 int ir_gen_dessa_moves(ir_ctx *ctx, uint32_t b, emit_copy_t emit_copy) in ir_gen_dessa_moves()
2353 static ir_block *ir_block_from_live_pos(ir_ctx *ctx, ir_live_pos pos) in ir_block_from_live_pos()
2367 static ir_live_pos ir_find_optimal_split_position(ir_ctx *ctx, ir_live_interval *ival, ir_live_pos … in ir_find_optimal_split_position()
2418 static ir_live_interval *ir_split_interval_at(ir_ctx *ctx, ir_live_interval *ival, ir_live_pos pos) in ir_split_interval_at()
2514 static int32_t ir_allocate_small_spill_slot(ir_ctx *ctx, size_t size, ir_reg_alloc_data *data) in ir_allocate_small_spill_slot()
2614 int32_t ir_allocate_spill_slot(ir_ctx *ctx, ir_type type, ir_reg_alloc_data *data) in ir_allocate_spill_slot()
2619 static int32_t ir_allocate_big_spill_slot(ir_ctx *ctx, int32_t size, ir_reg_alloc_data *data) in ir_allocate_big_spill_slot()
2641 static ir_reg ir_get_first_reg_hint(ir_ctx *ctx, ir_live_interval *ival, ir_regset available) in ir_get_first_reg_hint()
2658 static ir_reg ir_try_allocate_preferred_reg(ir_ctx *ctx, ir_live_interval *ival, ir_regset availabl… in ir_try_allocate_preferred_reg()
2696 static ir_reg ir_get_preferred_reg(ir_ctx *ctx, ir_live_interval *ival, ir_regset available) in ir_get_preferred_reg()
2808 static ir_reg ir_try_allocate_free_reg(ir_ctx *ctx, ir_live_interval *ival, ir_live_interval **acti… in ir_try_allocate_free_reg()
3023 static ir_reg ir_allocate_blocked_reg(ir_ctx *ctx, ir_live_interval *ival, ir_live_interval **activ… in ir_allocate_blocked_reg()
3357 static int ir_fix_dessa_tmps(ir_ctx *ctx, uint8_t type, ir_ref from, ir_ref to) in ir_fix_dessa_tmps()
3397 static bool ir_ival_spill_for_fuse_load(ir_ctx *ctx, ir_live_interval *ival, ir_reg_alloc_data *dat… in ir_ival_spill_for_fuse_load()
3455 static void ir_assign_bound_spill_slots(ir_ctx *ctx) in ir_assign_bound_spill_slots()
3480 static int ir_linear_scan(ir_ctx *ctx) in ir_linear_scan()
3809 static bool needs_spill_reload(ir_ctx *ctx, ir_live_interval *ival, uint32_t b0, ir_bitset availabl… in needs_spill_reload()
3841 static bool needs_spill_load(ir_ctx *ctx, ir_live_interval *ival, ir_use_pos *use_pos) in needs_spill_load()
3853 static void ir_set_fused_reg(ir_ctx *ctx, ir_ref root, ir_ref ref_and_op, int8_t reg) in ir_set_fused_reg()
3867 static void assign_regs(ir_ctx *ctx) in assign_regs()
4112 int ir_reg_alloc(ir_ctx *ctx) in ir_reg_alloc()