Lines Matching refs:arg_slot
1521 static inline bool arg_slot_reg_p(unsigned arg_slot) in arg_slot_reg_p() argument
1528 return arg_slot < nreg; in arg_slot_reg_p()
1531 static inline int arg_slot_stk_ofs(unsigned arg_slot) in arg_slot_stk_ofs() argument
1534 unsigned stk_slot = arg_slot - ARRAY_SIZE(tcg_target_call_iarg_regs); in arg_slot_stk_ofs()
1543 int arg_slot; /* regs+stack slot */ member
1549 cum->arg_slot += cum->arg_slot & 1; in layout_arg_even()
1560 .arg_slot = cum->arg_slot, in layout_arg_1()
1563 cum->arg_slot++; in layout_arg_1()
1577 .arg_slot = cum->arg_slot + i, in layout_arg_normal_n()
1581 cum->arg_slot += n; in layout_arg_normal_n()
1663 cum.arg_slot = 1; in init_call_layout()
1760 assert(cum.arg_slot <= max_reg_slots + max_stk_slots); in init_call_layout()
1770 if (cum.arg_slot > max_reg_slots) { in init_call_layout()
1773 ref_base = cum.arg_slot - max_reg_slots; in init_call_layout()
4094 if (arg_slot_reg_p(loc->arg_slot)) { in liveness_pass_1()
4121 if (arg_slot_reg_p(loc->arg_slot)) { in liveness_pass_1()
4123 tcg_target_call_iarg_regs[loc->arg_slot]); in liveness_pass_1()
6065 static void load_arg_stk(TCGContext *s, unsigned arg_slot, TCGTemp *ts, in load_arg_stk() argument
6075 arg_slot_stk_ofs(arg_slot)); in load_arg_stk()
6081 if (arg_slot_reg_p(l->arg_slot)) { in load_arg_normal()
6082 TCGReg reg = tcg_target_call_iarg_regs[l->arg_slot]; in load_arg_normal()
6086 load_arg_stk(s, l->arg_slot, ts, *allocated_regs); in load_arg_normal()
6090 static void load_arg_ref(TCGContext *s, unsigned arg_slot, TCGReg ref_base, in load_arg_ref() argument
6095 if (arg_slot_reg_p(arg_slot)) { in load_arg_ref()
6096 reg = tcg_target_call_iarg_regs[arg_slot]; in load_arg_ref()
6105 arg_slot_stk_ofs(arg_slot)); in load_arg_ref()
6134 load_arg_ref(s, loc->arg_slot, TCG_REG_CALL_STACK, in tcg_reg_alloc_call()
6462 ptr_mov.dst = loc->arg_slot; in tcg_out_helper_load_common_args()
6484 tcg_out_helper_load_imm(s, loc->arg_slot, type, imm, parm); in tcg_out_helper_load_common_args()
6491 slot = loc->arg_slot; in tcg_out_helper_load_common_args()
6536 mov[0].dst = loc->arg_slot; in tcg_out_helper_add_mov()
6552 mov[0].dst = loc[HOST_BIG_ENDIAN].arg_slot; in tcg_out_helper_add_mov()
6558 mov[1].dst = loc[!HOST_BIG_ENDIAN].arg_slot; in tcg_out_helper_add_mov()
6607 tcg_out_helper_load_imm(s, loc[!HOST_BIG_ENDIAN].arg_slot, in tcg_out_ld_helper_args()
6814 if (arg_slot_reg_p(loc->arg_slot)) { in tcg_out_st_helper_args()
6815 tcg_out_addi_ptr(s, tcg_target_call_iarg_regs[loc->arg_slot], in tcg_out_st_helper_args()
6823 TCG_REG_CALL_STACK, arg_slot_stk_ofs(loc->arg_slot)); in tcg_out_st_helper_args()
6835 tcg_out_helper_load_imm(s, loc->arg_slot, TCG_TYPE_I32, 0, parm); in tcg_out_st_helper_args()