Lines Matching refs:ts

1315     TCGTemp *ts;  in tcg_context_init()  local
1382 ts = tcg_global_reg_new_internal(s, TCG_TYPE_PTR, TCG_AREG0, "env"); in tcg_context_init()
1383 tcg_env = temp_tcgv_ptr(ts); in tcg_context_init()
1543 TCGTemp *ts; in tcg_global_alloc() local
1548 ts = tcg_temp_alloc(s); in tcg_global_alloc()
1549 ts->kind = TEMP_GLOBAL; in tcg_global_alloc()
1551 return ts; in tcg_global_alloc()
1557 TCGTemp *ts; in tcg_global_reg_new_internal() local
1561 ts = tcg_global_alloc(s); in tcg_global_reg_new_internal()
1562 ts->base_type = type; in tcg_global_reg_new_internal()
1563 ts->type = type; in tcg_global_reg_new_internal()
1564 ts->kind = TEMP_FIXED; in tcg_global_reg_new_internal()
1565 ts->reg = reg; in tcg_global_reg_new_internal()
1566 ts->name = name; in tcg_global_reg_new_internal()
1569 return ts; in tcg_global_reg_new_internal()
1585 TCGTemp *ts = tcg_global_alloc(s); in tcg_global_mem_new_internal() local
1607 ts->base_type = TCG_TYPE_I64; in tcg_global_mem_new_internal()
1608 ts->type = TCG_TYPE_I32; in tcg_global_mem_new_internal()
1609 ts->indirect_reg = indirect_reg; in tcg_global_mem_new_internal()
1610 ts->mem_allocated = 1; in tcg_global_mem_new_internal()
1611 ts->mem_base = base_ts; in tcg_global_mem_new_internal()
1612 ts->mem_offset = offset; in tcg_global_mem_new_internal()
1615 ts->name = strdup(buf); in tcg_global_mem_new_internal()
1617 tcg_debug_assert(ts2 == ts + 1); in tcg_global_mem_new_internal()
1629 ts->base_type = type; in tcg_global_mem_new_internal()
1630 ts->type = type; in tcg_global_mem_new_internal()
1631 ts->indirect_reg = indirect_reg; in tcg_global_mem_new_internal()
1632 ts->mem_allocated = 1; in tcg_global_mem_new_internal()
1633 ts->mem_base = base_ts; in tcg_global_mem_new_internal()
1634 ts->mem_offset = offset; in tcg_global_mem_new_internal()
1635 ts->name = name; in tcg_global_mem_new_internal()
1637 return ts; in tcg_global_mem_new_internal()
1642 TCGTemp *ts = tcg_global_mem_new_internal(reg, off, name, TCG_TYPE_I32); in tcg_global_mem_new_i32() local
1643 return temp_tcgv_i32(ts); in tcg_global_mem_new_i32()
1648 TCGTemp *ts = tcg_global_mem_new_internal(reg, off, name, TCG_TYPE_I64); in tcg_global_mem_new_i64() local
1649 return temp_tcgv_i64(ts); in tcg_global_mem_new_i64()
1654 TCGTemp *ts = tcg_global_mem_new_internal(reg, off, name, TCG_TYPE_PTR); in tcg_global_mem_new_ptr() local
1655 return temp_tcgv_ptr(ts); in tcg_global_mem_new_ptr()
1661 TCGTemp *ts; in tcg_temp_new_internal() local
1671 ts = &s->temps[idx]; in tcg_temp_new_internal()
1672 ts->temp_allocated = 1; in tcg_temp_new_internal()
1673 tcg_debug_assert(ts->base_type == type); in tcg_temp_new_internal()
1674 tcg_debug_assert(ts->kind == kind); in tcg_temp_new_internal()
1675 return ts; in tcg_temp_new_internal()
1698 ts = tcg_temp_alloc(s); in tcg_temp_new_internal()
1699 ts->base_type = type; in tcg_temp_new_internal()
1700 ts->temp_allocated = 1; in tcg_temp_new_internal()
1701 ts->kind = kind; in tcg_temp_new_internal()
1704 ts->type = type; in tcg_temp_new_internal()
1706 ts->type = TCG_TYPE_REG; in tcg_temp_new_internal()
1711 tcg_debug_assert(ts2 == ts + i); in tcg_temp_new_internal()
1719 return ts; in tcg_temp_new_internal()
1797 void tcg_temp_free_internal(TCGTemp *ts) in tcg_temp_free_internal() argument
1801 switch (ts->kind) { in tcg_temp_free_internal()
1807 tcg_debug_assert(ts->temp_allocated != 0); in tcg_temp_free_internal()
1808 ts->temp_allocated = 0; in tcg_temp_free_internal()
1809 set_bit(temp_idx(ts), s->free_temps[ts->base_type].l); in tcg_temp_free_internal()
1846 TCGTemp *ts; in tcg_constant_internal() local
1853 ts = g_hash_table_lookup(h, &val); in tcg_constant_internal()
1854 if (ts == NULL) { in tcg_constant_internal()
1857 ts = tcg_temp_alloc(s); in tcg_constant_internal()
1862 tcg_debug_assert(ts2 == ts + 1); in tcg_constant_internal()
1864 ts->base_type = TCG_TYPE_I64; in tcg_constant_internal()
1865 ts->type = TCG_TYPE_I32; in tcg_constant_internal()
1866 ts->kind = TEMP_CONST; in tcg_constant_internal()
1867 ts->temp_allocated = 1; in tcg_constant_internal()
1880 ts[HOST_BIG_ENDIAN].val = val; in tcg_constant_internal()
1881 ts[!HOST_BIG_ENDIAN].val = val >> 32; in tcg_constant_internal()
1882 val_ptr = &ts[HOST_BIG_ENDIAN].val; in tcg_constant_internal()
1884 ts->base_type = type; in tcg_constant_internal()
1885 ts->type = type; in tcg_constant_internal()
1886 ts->kind = TEMP_CONST; in tcg_constant_internal()
1887 ts->temp_allocated = 1; in tcg_constant_internal()
1888 ts->val = val; in tcg_constant_internal()
1889 val_ptr = &ts->val; in tcg_constant_internal()
1891 g_hash_table_insert(h, val_ptr, ts); in tcg_constant_internal()
1894 return ts; in tcg_constant_internal()
1927 size_t temp_idx(TCGTemp *ts) in temp_idx() argument
1929 ptrdiff_t n = ts - tcg_ctx->temps; in temp_idx()
2301 TCGTemp *ts = args[loc->arg_idx] + loc->tmp_subindex; in tcg_gen_callN() local
2307 op->args[pi++] = temp_arg(ts); in tcg_gen_callN()
2314 TCGv_i32 orig = temp_tcgv_i32(ts); in tcg_gen_callN()
2399 TCGTemp *ts = &s->temps[i]; in tcg_reg_alloc_start() local
2402 switch (ts->kind) { in tcg_reg_alloc_start()
2415 ts->mem_allocated = 0; in tcg_reg_alloc_start()
2420 ts->val_type = val; in tcg_reg_alloc_start()
2427 TCGTemp *ts) in tcg_get_arg_str_ptr() argument
2429 int idx = temp_idx(ts); in tcg_get_arg_str_ptr()
2431 switch (ts->kind) { in tcg_get_arg_str_ptr()
2434 pstrcpy(buf, buf_size, ts->name); in tcg_get_arg_str_ptr()
2443 switch (ts->type) { in tcg_get_arg_str_ptr()
2445 snprintf(buf, buf_size, "$0x%x", (int32_t)ts->val); in tcg_get_arg_str_ptr()
2449 snprintf(buf, buf_size, "$0x%" PRIx64, ts->val); in tcg_get_arg_str_ptr()
2456 64 << (ts->type - TCG_TYPE_V64), ts->val); in tcg_get_arg_str_ptr()
3359 static inline TCGRegSet *la_temp_pref(TCGTemp *ts) in la_temp_pref() argument
3361 return ts->state_ptr; in la_temp_pref()
3367 static inline void la_reset_pref(TCGTemp *ts) in la_reset_pref() argument
3369 *la_temp_pref(ts) in la_reset_pref()
3370 = (ts->state == TS_DEAD ? 0 : tcg_target_available_regs[ts->type]); in la_reset_pref()
3396 TCGTemp *ts = &s->temps[i]; in la_bb_end() local
3399 switch (ts->kind) { in la_bb_end()
3412 ts->state = state; in la_bb_end()
3413 la_reset_pref(ts); in la_bb_end()
3442 TCGTemp *ts = &s->temps[i]; in la_bb_sync() local
3445 switch (ts->kind) { in la_bb_sync()
3447 state = ts->state; in la_bb_sync()
3448 ts->state = state | TS_MEM; in la_bb_sync()
3481 TCGTemp *ts = &s->temps[i]; in la_cross_call() local
3482 if (!(ts->state & TS_DEAD)) { in la_cross_call()
3483 TCGRegSet *pset = la_temp_pref(ts); in la_cross_call()
3489 set = tcg_target_available_regs[ts->type] & mask; in la_cross_call()
3540 TCGTemp *ts = arg_temp(op->args[i]); in liveness_pass_0() local
3542 if (ts->kind != TEMP_TB) { in liveness_pass_0()
3545 if (ts->state_ptr == NULL) { in liveness_pass_0()
3546 ts->state_ptr = ebb; in liveness_pass_0()
3547 } else if (ts->state_ptr != ebb) { in liveness_pass_0()
3548 ts->state_ptr = multiple_ebb; in liveness_pass_0()
3558 TCGTemp *ts = &s->temps[i]; in liveness_pass_0() local
3559 if (ts->kind == TEMP_TB && ts->state_ptr != multiple_ebb) { in liveness_pass_0()
3560 ts->kind = TEMP_EBB; in liveness_pass_0()
3590 TCGTemp *ts; in liveness_pass_1() local
3606 ts = arg_temp(op->args[i]); in liveness_pass_1()
3607 if (ts->state != TS_DEAD) { in liveness_pass_1()
3617 ts = arg_temp(op->args[i]); in liveness_pass_1()
3618 if (ts->state & TS_DEAD) { in liveness_pass_1()
3621 if (ts->state & TS_MEM) { in liveness_pass_1()
3624 ts->state = TS_DEAD; in liveness_pass_1()
3625 la_reset_pref(ts); in liveness_pass_1()
3640 ts = arg_temp(op->args[i]); in liveness_pass_1()
3641 if (ts->state & TS_DEAD) { in liveness_pass_1()
3661 ts = arg_temp(op->args[nb_oargs + i]); in liveness_pass_1()
3663 if (ts->state & TS_DEAD) { in liveness_pass_1()
3669 *la_temp_pref(ts) = 0; in liveness_pass_1()
3674 *la_temp_pref(ts) = in liveness_pass_1()
3675 tcg_target_available_regs[ts->type]; in liveness_pass_1()
3678 ts->state &= ~TS_DEAD; in liveness_pass_1()
3689 ts = arg_temp(op->args[nb_oargs + i]); in liveness_pass_1()
3696 tcg_regset_set_reg(*la_temp_pref(ts), in liveness_pass_1()
3710 ts = arg_temp(op->args[0]); in liveness_pass_1()
3711 ts->state = TS_DEAD; in liveness_pass_1()
3712 la_reset_pref(ts); in liveness_pass_1()
3817 ts = arg_temp(op->args[i]); in liveness_pass_1()
3821 op->output_pref[i] = *la_temp_pref(ts); in liveness_pass_1()
3825 if (ts->state & TS_DEAD) { in liveness_pass_1()
3828 if (ts->state & TS_MEM) { in liveness_pass_1()
3831 ts->state = TS_DEAD; in liveness_pass_1()
3832 la_reset_pref(ts); in liveness_pass_1()
3851 ts = arg_temp(op->args[i]); in liveness_pass_1()
3852 if (ts->state & TS_DEAD) { in liveness_pass_1()
3859 ts = arg_temp(op->args[i]); in liveness_pass_1()
3860 if (ts->state & TS_DEAD) { in liveness_pass_1()
3863 *la_temp_pref(ts) = tcg_target_available_regs[ts->type]; in liveness_pass_1()
3864 ts->state &= ~TS_DEAD; in liveness_pass_1()
3886 ts = arg_temp(op->args[i]); in liveness_pass_1()
3887 pset = la_temp_pref(ts); in liveness_pass_1()
4097 static void temp_allocate_frame(TCGContext *s, TCGTemp *ts) in temp_allocate_frame() argument
4103 size = tcg_type_size(ts->base_type); in temp_allocate_frame()
4104 switch (ts->base_type) { in temp_allocate_frame()
4145 if (ts->base_type != ts->type) { in temp_allocate_frame()
4146 int part_size = tcg_type_size(ts->type); in temp_allocate_frame()
4153 ts -= ts->temp_subindex; in temp_allocate_frame()
4155 ts[i].mem_offset = off + i * part_size; in temp_allocate_frame()
4156 ts[i].mem_base = s->frame_temp; in temp_allocate_frame()
4157 ts[i].mem_allocated = 1; in temp_allocate_frame()
4160 ts->mem_offset = off; in temp_allocate_frame()
4161 ts->mem_base = s->frame_temp; in temp_allocate_frame()
4162 ts->mem_allocated = 1; in temp_allocate_frame()
4167 static void set_temp_val_reg(TCGContext *s, TCGTemp *ts, TCGReg reg) in set_temp_val_reg() argument
4169 if (ts->val_type == TEMP_VAL_REG) { in set_temp_val_reg()
4170 TCGReg old = ts->reg; in set_temp_val_reg()
4171 tcg_debug_assert(s->reg_to_temp[old] == ts); in set_temp_val_reg()
4178 s->reg_to_temp[reg] = ts; in set_temp_val_reg()
4179 ts->val_type = TEMP_VAL_REG; in set_temp_val_reg()
4180 ts->reg = reg; in set_temp_val_reg()
4184 static void set_temp_val_nonreg(TCGContext *s, TCGTemp *ts, TCGTempVal type) in set_temp_val_nonreg() argument
4187 if (ts->val_type == TEMP_VAL_REG) { in set_temp_val_nonreg()
4188 TCGReg reg = ts->reg; in set_temp_val_nonreg()
4189 tcg_debug_assert(s->reg_to_temp[reg] == ts); in set_temp_val_nonreg()
4192 ts->val_type = type; in set_temp_val_nonreg()
4199 static void temp_free_or_dead(TCGContext *s, TCGTemp *ts, int free_or_dead) in temp_free_or_dead() argument
4203 switch (ts->kind) { in temp_free_or_dead()
4219 set_temp_val_nonreg(s, ts, new_type); in temp_free_or_dead()
4223 static inline void temp_dead(TCGContext *s, TCGTemp *ts) in temp_dead() argument
4225 temp_free_or_dead(s, ts, 1); in temp_dead()
4232 static void temp_sync(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs, in temp_sync() argument
4235 if (!temp_readonly(ts) && !ts->mem_coherent) { in temp_sync()
4236 if (!ts->mem_allocated) { in temp_sync()
4237 temp_allocate_frame(s, ts); in temp_sync()
4239 switch (ts->val_type) { in temp_sync()
4245 && tcg_out_sti(s, ts->type, ts->val, in temp_sync()
4246 ts->mem_base->reg, ts->mem_offset)) { in temp_sync()
4249 temp_load(s, ts, tcg_target_available_regs[ts->type], in temp_sync()
4254 tcg_out_st(s, ts->type, ts->reg, in temp_sync()
4255 ts->mem_base->reg, ts->mem_offset); in temp_sync()
4265 ts->mem_coherent = 1; in temp_sync()
4268 temp_free_or_dead(s, ts, free_or_dead); in temp_sync()
4275 TCGTemp *ts = s->reg_to_temp[reg]; in tcg_reg_free() local
4276 if (ts != NULL) { in tcg_reg_free()
4277 temp_sync(s, ts, allocated_regs, 0, -1); in tcg_reg_free()
4401 static void temp_load(TCGContext *s, TCGTemp *ts, TCGRegSet desired_regs, in temp_load() argument
4406 switch (ts->val_type) { in temp_load()
4411 preferred_regs, ts->indirect_base); in temp_load()
4412 if (ts->type <= TCG_TYPE_I64) { in temp_load()
4413 tcg_out_movi(s, ts->type, reg, ts->val); in temp_load()
4415 uint64_t val = ts->val; in temp_load()
4431 tcg_out_dupi_vec(s, ts->type, vece, reg, ts->val); in temp_load()
4433 ts->mem_coherent = 0; in temp_load()
4437 preferred_regs, ts->indirect_base); in temp_load()
4438 tcg_out_ld(s, ts->type, reg, ts->mem_base->reg, ts->mem_offset); in temp_load()
4439 ts->mem_coherent = 1; in temp_load()
4445 set_temp_val_reg(s, ts, reg); in temp_load()
4450 static void temp_save(TCGContext *s, TCGTemp *ts, TCGRegSet allocated_regs) in temp_save() argument
4454 tcg_debug_assert(ts->val_type == TEMP_VAL_MEM || temp_readonly(ts)); in temp_save()
4477 TCGTemp *ts = &s->temps[i]; in sync_globals() local
4478 tcg_debug_assert(ts->val_type != TEMP_VAL_REG in sync_globals()
4479 || ts->kind == TEMP_FIXED in sync_globals()
4480 || ts->mem_coherent); in sync_globals()
4491 TCGTemp *ts = &s->temps[i]; in tcg_reg_alloc_bb_end() local
4493 switch (ts->kind) { in tcg_reg_alloc_bb_end()
4495 temp_save(s, ts, allocated_regs); in tcg_reg_alloc_bb_end()
4500 tcg_debug_assert(ts->val_type == TEMP_VAL_DEAD); in tcg_reg_alloc_bb_end()
4504 tcg_debug_assert(ts->val_type == TEMP_VAL_CONST); in tcg_reg_alloc_bb_end()
4524 TCGTemp *ts = &s->temps[i]; in tcg_reg_alloc_cbranch() local
4529 switch (ts->kind) { in tcg_reg_alloc_cbranch()
4531 tcg_debug_assert(ts->val_type != TEMP_VAL_REG || ts->mem_coherent); in tcg_reg_alloc_cbranch()
4570 TCGTemp *ts, *ots; in tcg_reg_alloc_mov() local
4577 ts = arg_temp(op->args[1]); in tcg_reg_alloc_mov()
4584 itype = ts->type; in tcg_reg_alloc_mov()
4586 if (ts->val_type == TEMP_VAL_CONST) { in tcg_reg_alloc_mov()
4588 tcg_target_ulong val = ts->val; in tcg_reg_alloc_mov()
4590 temp_dead(s, ts); in tcg_reg_alloc_mov()
4600 if (ts->val_type == TEMP_VAL_MEM) { in tcg_reg_alloc_mov()
4601 temp_load(s, ts, tcg_target_available_regs[itype], in tcg_reg_alloc_mov()
4604 tcg_debug_assert(ts->val_type == TEMP_VAL_REG); in tcg_reg_alloc_mov()
4605 ireg = ts->reg; in tcg_reg_alloc_mov()
4616 temp_dead(s, ts); in tcg_reg_alloc_mov()
4622 if (IS_DEAD_ARG(1) && ts->kind != TEMP_FIXED) { in tcg_reg_alloc_mov()
4628 temp_dead(s, ts); in tcg_reg_alloc_mov()
4646 if (!ts->mem_allocated) { in tcg_reg_alloc_mov()
4649 tcg_out_st(s, ts->type, ireg, ots->mem_base->reg, ots->mem_offset); in tcg_reg_alloc_mov()
4650 set_temp_val_nonreg(s, ts, TEMP_VAL_MEM); in tcg_reg_alloc_mov()
4784 TCGTemp *ts; in tcg_reg_alloc_op() local
4809 ts = arg_temp(arg); in tcg_reg_alloc_op()
4811 if (ts->val_type == TEMP_VAL_CONST in tcg_reg_alloc_op()
4812 && tcg_target_const_match(ts->val, ts->type, arg_ct->ct, TCGOP_VECE(op))) { in tcg_reg_alloc_op()
4815 new_args[i] = ts->val; in tcg_reg_alloc_op()
4819 reg = ts->reg; in tcg_reg_alloc_op()
4836 if (temp_readonly(ts) || !IS_DEAD_ARG(i) in tcg_reg_alloc_op()
4839 } else if (ts->val_type == TEMP_VAL_REG) { in tcg_reg_alloc_op()
4849 temp_load(s, ts, i_required_regs, i_allocated_regs, in tcg_reg_alloc_op()
4851 reg = ts->reg; in tcg_reg_alloc_op()
4859 temp_load(s, ts, tcg_target_available_regs[ts->type], in tcg_reg_alloc_op()
4862 i_preferred_regs, ts->indirect_base); in tcg_reg_alloc_op()
4881 !temp_readonly(ts) && in tcg_reg_alloc_op()
4882 ts->val_type == TEMP_VAL_REG && in tcg_reg_alloc_op()
4883 ts->reg < TCG_TARGET_NB_REGS - 1 && in tcg_reg_alloc_op()
4897 if (ts->val_type == TEMP_VAL_REG && in tcg_reg_alloc_op()
4905 0, ts->indirect_base); in tcg_reg_alloc_op()
4917 !temp_readonly(ts) && in tcg_reg_alloc_op()
4918 ts->val_type == TEMP_VAL_REG && in tcg_reg_alloc_op()
4929 ts->indirect_base); in tcg_reg_alloc_op()
4939 if (arg_ct->ialias && (!IS_DEAD_ARG(i) || temp_readonly(ts))) { in tcg_reg_alloc_op()
4949 if (ts->val_type == TEMP_VAL_REG && ts->reg == reg) { in tcg_reg_alloc_op()
4954 tcg_debug_assert(ts->kind != TEMP_FIXED); in tcg_reg_alloc_op()
4955 nr = tcg_reg_alloc(s, tcg_target_available_regs[ts->type], in tcg_reg_alloc_op()
4956 t_allocated_regs, 0, ts->indirect_base); in tcg_reg_alloc_op()
4957 ok = tcg_out_mov(s, ts->type, nr, reg); in tcg_reg_alloc_op()
4960 set_temp_val_reg(s, ts, nr); in tcg_reg_alloc_op()
4962 temp_load(s, ts, tcg_target_available_regs[ts->type], in tcg_reg_alloc_op()
4969 temp_load(s, ts, i_required_regs, i_allocated_regs, in tcg_reg_alloc_op()
4971 copyto_new_reg = ts->reg != reg; in tcg_reg_alloc_op()
4980 if (!tcg_out_mov(s, ts->type, reg, ts->reg)) { in tcg_reg_alloc_op()
4985 temp_sync(s, ts, i_allocated_regs, 0, 0); in tcg_reg_alloc_op()
4986 tcg_out_ld(s, ts->type, reg, in tcg_reg_alloc_op()
4987 ts->mem_base->reg, ts->mem_offset); in tcg_reg_alloc_op()
5026 ts = arg_temp(arg); in tcg_reg_alloc_op()
5029 tcg_debug_assert(!temp_readonly(ts)); in tcg_reg_alloc_op()
5038 output_pref(op, k), ts->indirect_base); in tcg_reg_alloc_op()
5041 output_pref(op, k), ts->indirect_base); in tcg_reg_alloc_op()
5052 ts->indirect_base); in tcg_reg_alloc_op()
5056 ts->indirect_base); in tcg_reg_alloc_op()
5077 set_temp_val_reg(s, ts, reg); in tcg_reg_alloc_op()
5078 ts->mem_coherent = 0; in tcg_reg_alloc_op()
5132 ts = arg_temp(op->args[i]); in tcg_reg_alloc_op()
5135 tcg_debug_assert(!temp_readonly(ts)); in tcg_reg_alloc_op()
5138 temp_sync(s, ts, o_allocated_regs, 0, IS_DEAD_ARG(i)); in tcg_reg_alloc_op()
5140 temp_dead(s, ts); in tcg_reg_alloc_op()
5233 static void load_arg_reg(TCGContext *s, TCGReg reg, TCGTemp *ts, in load_arg_reg() argument
5236 if (ts->val_type == TEMP_VAL_REG) { in load_arg_reg()
5237 if (ts->reg != reg) { in load_arg_reg()
5239 if (!tcg_out_mov(s, ts->type, reg, ts->reg)) { in load_arg_reg()
5244 temp_sync(s, ts, allocated_regs, 0, 0); in load_arg_reg()
5245 tcg_out_ld(s, ts->type, reg, in load_arg_reg()
5246 ts->mem_base->reg, ts->mem_offset); in load_arg_reg()
5254 temp_load(s, ts, arg_set, allocated_regs, 0); in load_arg_reg()
5258 static void load_arg_stk(TCGContext *s, unsigned arg_slot, TCGTemp *ts, in load_arg_stk() argument
5266 temp_load(s, ts, tcg_target_available_regs[ts->type], allocated_regs, 0); in load_arg_stk()
5267 tcg_out_st(s, ts->type, ts->reg, TCG_REG_CALL_STACK, in load_arg_stk()
5272 TCGTemp *ts, TCGRegSet *allocated_regs) in load_arg_normal() argument
5276 load_arg_reg(s, reg, ts, *allocated_regs); in load_arg_normal()
5279 load_arg_stk(s, l->arg_slot, ts, *allocated_regs); in load_arg_normal()
5317 TCGTemp *ts = arg_temp(op->args[nb_oargs + i]); in tcg_reg_alloc_call() local
5323 load_arg_normal(s, loc, ts, &allocated_regs); in tcg_reg_alloc_call()
5326 load_arg_stk(s, loc->ref_slot, ts, allocated_regs); in tcg_reg_alloc_call()
5332 load_arg_stk(s, loc->ref_slot, ts, allocated_regs); in tcg_reg_alloc_call()
5370 TCGTemp *ts = arg_temp(op->args[0]); in tcg_reg_alloc_call() local
5372 if (!ts->mem_allocated) { in tcg_reg_alloc_call()
5373 temp_allocate_frame(s, ts); in tcg_reg_alloc_call()
5375 load_arg_ref(s, 0, ts->mem_base->reg, ts->mem_offset, &allocated_regs); in tcg_reg_alloc_call()
5384 TCGTemp *ts = arg_temp(op->args[i]); in tcg_reg_alloc_call() local
5388 tcg_debug_assert(!temp_readonly(ts)); in tcg_reg_alloc_call()
5390 set_temp_val_reg(s, ts, reg); in tcg_reg_alloc_call()
5391 ts->mem_coherent = 0; in tcg_reg_alloc_call()
5397 TCGTemp *ts = arg_temp(op->args[0]); in tcg_reg_alloc_call() local
5399 tcg_debug_assert(ts->base_type == TCG_TYPE_I128); in tcg_reg_alloc_call()
5400 tcg_debug_assert(ts->temp_subindex == 0); in tcg_reg_alloc_call()
5401 if (!ts->mem_allocated) { in tcg_reg_alloc_call()
5402 temp_allocate_frame(s, ts); in tcg_reg_alloc_call()
5406 ts->mem_base->reg, ts->mem_offset); in tcg_reg_alloc_call()
5413 TCGTemp *ts = arg_temp(op->args[i]); in tcg_reg_alloc_call() local
5414 ts->val_type = TEMP_VAL_MEM; in tcg_reg_alloc_call()
5424 TCGTemp *ts = arg_temp(op->args[i]); in tcg_reg_alloc_call() local
5426 temp_sync(s, ts, s->reserved_regs, 0, IS_DEAD_ARG(i)); in tcg_reg_alloc_call()
5428 temp_dead(s, ts); in tcg_reg_alloc_call()