Lines Matching refs:allocated_regs
4697 static void temp_sync(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs, in temp_sync() argument
4715 allocated_regs, preferred_regs); in temp_sync()
4738 static void tcg_reg_free(TCGContext *s, TCGReg reg, TCGRegSet allocated_regs) in tcg_reg_free() argument
4742 temp_sync(s, ts, allocated_regs, 0, -1); in tcg_reg_free()
4757 TCGRegSet allocated_regs, in tcg_reg_alloc() argument
4764 reg_ct[1] = required_regs & ~allocated_regs; in tcg_reg_alloc()
4802 tcg_reg_free(s, reg, allocated_regs); in tcg_reg_alloc()
4808 tcg_reg_free(s, reg, allocated_regs); in tcg_reg_alloc()
4819 TCGRegSet allocated_regs, in tcg_reg_alloc_pair() argument
4827 reg_ct[1] = required_regs & ~(allocated_regs | (allocated_regs >> 1)); in tcg_reg_alloc_pair()
4853 tcg_reg_free(s, reg, allocated_regs); in tcg_reg_alloc_pair()
4854 tcg_reg_free(s, reg + 1, allocated_regs); in tcg_reg_alloc_pair()
4867 TCGRegSet allocated_regs, TCGRegSet preferred_regs) in temp_load() argument
4875 reg = tcg_reg_alloc(s, desired_regs, allocated_regs, in temp_load()
4904 reg = tcg_reg_alloc(s, desired_regs, allocated_regs, in temp_load()
4918 static void temp_save(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs) in temp_save() argument
4928 static void save_globals(TCGContext *s, TCGRegSet allocated_regs) in save_globals() argument
4933 temp_save(s, &s->temps[i], allocated_regs); in save_globals()
4940 static void sync_globals(TCGContext *s, TCGRegSet allocated_regs) in sync_globals() argument
4954 static void tcg_reg_alloc_bb_end(TCGContext *s, TCGRegSet allocated_regs) in tcg_reg_alloc_bb_end() argument
4962 temp_save(s, ts, allocated_regs); in tcg_reg_alloc_bb_end()
4978 save_globals(s, allocated_regs); in tcg_reg_alloc_bb_end()
4986 static void tcg_reg_alloc_cbranch(TCGContext *s, TCGRegSet allocated_regs) in tcg_reg_alloc_cbranch() argument
4989 sync_globals(s, allocated_regs); in tcg_reg_alloc_cbranch()
5037 TCGRegSet allocated_regs, preferred_regs; in tcg_reg_alloc_mov() local
5042 allocated_regs = s->reserved_regs; in tcg_reg_alloc_mov()
5070 allocated_regs, preferred_regs); in tcg_reg_alloc_mov()
5104 allocated_regs | ((TCGRegSet)1 << ireg), in tcg_reg_alloc_mov()
5127 temp_sync(s, ots, allocated_regs, 0, 0); in tcg_reg_alloc_mov()
5171 TCGRegSet allocated_regs = s->reserved_regs; in tcg_reg_alloc_dup() local
5176 tcg_regset_set_reg(allocated_regs, its->reg); in tcg_reg_alloc_dup()
5178 oreg = tcg_reg_alloc(s, dup_out_regs, allocated_regs, in tcg_reg_alloc_dup()
5972 TCGRegSet allocated_regs = s->reserved_regs; in tcg_reg_alloc_dup2() local
5978 tcg_regset_set_reg(allocated_regs, itsl->reg); in tcg_reg_alloc_dup2()
5981 tcg_regset_set_reg(allocated_regs, itsh->reg); in tcg_reg_alloc_dup2()
5984 oreg = tcg_reg_alloc(s, dup_out_regs, allocated_regs, in tcg_reg_alloc_dup2()
6041 TCGRegSet allocated_regs) in load_arg_reg() argument
6045 tcg_reg_free(s, reg, allocated_regs); in load_arg_reg()
6051 temp_sync(s, ts, allocated_regs, 0, 0); in load_arg_reg()
6059 tcg_reg_free(s, reg, allocated_regs); in load_arg_reg()
6061 temp_load(s, ts, arg_set, allocated_regs, 0); in load_arg_reg()
6066 TCGRegSet allocated_regs) in load_arg_stk() argument
6073 temp_load(s, ts, tcg_target_available_regs[ts->type], allocated_regs, 0); in load_arg_stk()
6079 TCGTemp *ts, TCGRegSet *allocated_regs) in load_arg_normal() argument
6083 load_arg_reg(s, reg, ts, *allocated_regs); in load_arg_normal()
6084 tcg_regset_set_reg(*allocated_regs, reg); in load_arg_normal()
6086 load_arg_stk(s, l->arg_slot, ts, *allocated_regs); in load_arg_normal()
6091 intptr_t ref_off, TCGRegSet *allocated_regs) in load_arg_ref() argument
6097 tcg_reg_free(s, reg, *allocated_regs); in load_arg_ref()
6099 tcg_regset_set_reg(*allocated_regs, reg); in load_arg_ref()
6102 *allocated_regs, 0, false); in load_arg_ref()
6115 TCGRegSet allocated_regs = s->reserved_regs; in tcg_reg_alloc_call() local
6130 load_arg_normal(s, loc, ts, &allocated_regs); in tcg_reg_alloc_call()
6133 load_arg_stk(s, loc->ref_slot, ts, allocated_regs); in tcg_reg_alloc_call()
6136 &allocated_regs); in tcg_reg_alloc_call()
6139 load_arg_stk(s, loc->ref_slot, ts, allocated_regs); in tcg_reg_alloc_call()
6156 tcg_reg_free(s, i, allocated_regs); in tcg_reg_alloc_call()
6167 sync_globals(s, allocated_regs); in tcg_reg_alloc_call()
6169 save_globals(s, allocated_regs); in tcg_reg_alloc_call()
6182 load_arg_ref(s, 0, ts->mem_base->reg, ts->mem_offset, &allocated_regs); in tcg_reg_alloc_call()