Lines Matching defs:def

229     TCGOpDef *def;
241 def = &tcg_op_defs[op];
242 n = def->nb_iargs + def->nb_oargs;
250 def = &tcg_op_defs[op];
251 def->args_ct = args_ct;
252 def->sorted_args = sorted_args;
253 n = def->nb_iargs + def->nb_oargs;
860 const TCGOpDef *def;
868 def = &tcg_op_defs[c];
880 nb_oargs = def->nb_oargs;
881 nb_iargs = def->nb_iargs;
882 nb_cargs = def->nb_cargs;
890 nb_cargs = def->nb_cargs;
892 fprintf(outfile, " %s ", def->name);
924 nb_oargs = def->nb_oargs;
925 nb_iargs = def->nb_iargs;
926 nb_cargs = def->nb_cargs;
927 fprintf(outfile, " %s %s,$", def->name,
940 fprintf(outfile, " %s ", def->name);
947 nb_oargs = def->nb_oargs;
948 nb_iargs = def->nb_iargs;
949 nb_cargs = def->nb_cargs;
1001 static int get_constraint_priority(const TCGOpDef *def, int k)
1006 arg_ct = &def->args_ct[k];
1023 static void sort_constraints(TCGOpDef *def, int start, int n)
1028 def->sorted_args[start + i] = start + i;
1033 p1 = get_constraint_priority(def, def->sorted_args[start + i]);
1034 p2 = get_constraint_priority(def, def->sorted_args[start + j]);
1036 tmp = def->sorted_args[start + i];
1037 def->sorted_args[start + i] = def->sorted_args[start + j];
1038 def->sorted_args[start + j] = tmp;
1047 TCGOpDef *def;
1056 def = &tcg_op_defs[op];
1059 assert(!def->used);
1060 def->used = 1;
1062 nb_args = def->nb_iargs + def->nb_oargs;
1067 tcg_regset_clear(def->args_ct[i].u.regs);
1068 def->args_ct[i].ct = 0;
1072 assert(oarg < def->nb_oargs);
1073 assert(def->args_ct[oarg].ct & TCG_CT_REG);
1076 def->args_ct[i] = def->args_ct[oarg];
1077 def->args_ct[oarg].ct = TCG_CT_ALIAS;
1078 def->args_ct[oarg].alias_index = i;
1079 def->args_ct[i].ct |= TCG_CT_IALIAS;
1080 def->args_ct[i].alias_index = oarg;
1087 def->args_ct[i].ct |= TCG_CT_CONST;
1091 if (target_parse_constraint(&def->args_ct[i], &ct_str) < 0) {
1093 ct_str, i, def->name);
1109 sort_constraints(def, 0, def->nb_oargs);
1110 sort_constraints(def, def->nb_oargs, def->nb_iargs);
1116 printf("%s: sorted=", def->name);
1117 for(i = 0; i < def->nb_oargs + def->nb_iargs; i++)
1118 printf(" %d", def->sorted_args[i]);
1201 const TCGOpDef *def;
1218 def = &tcg_op_defs[op];
1277 args -= def->nb_args;
1292 args -= def->nb_args;
1293 nb_iargs = def->nb_iargs;
1294 nb_oargs = def->nb_oargs;
1299 if (!(def->flags & TCG_OPF_SIDE_EFFECTS) && nb_oargs != 0) {
1305 tcg_set_nop(s, gen_opc_buf + op_index, args, def->nb_args);
1319 if (def->flags & TCG_OPF_BB_END) {
1321 } else if (def->flags & TCG_OPF_CALL_CLOBBER) {
1584 static void tcg_reg_alloc_mov(TCGContext *s, const TCGOpDef *def,
1594 arg_ct = &def->args_ct[0];
1644 const TCGOpDef *def, TCGOpcode opc,
1656 nb_oargs = def->nb_oargs;
1657 nb_iargs = def->nb_iargs;
1662 sizeof(TCGArg) * def->nb_cargs);
1667 i = def->sorted_args[nb_oargs + k];
1669 arg_ct = &def->args_ct[i];
1725 if (def->flags & TCG_OPF_BB_END) {
1741 if (def->flags & TCG_OPF_CALL_CLOBBER) {
1759 i = def->sorted_args[k];
1761 arg_ct = &def->args_ct[i];
1810 static int tcg_reg_alloc_call(TCGContext *s, const TCGOpDef *def,
1901 arg_ct = &def->args_ct[0];
1985 return nb_iargs + nb_oargs + def->nb_cargs + 1;
2010 const TCGOpDef *def;
2053 def = &tcg_op_defs[opc];
2055 printf("%s: %d %d %d\n", def->name,
2056 def->nb_oargs, def->nb_iargs, def->nb_cargs);
2065 tcg_reg_alloc_mov(s, def, args, dead_iargs);
2102 args += tcg_reg_alloc_call(s, def, opc, args, dead_iargs);
2111 tcg_reg_alloc_op(s, def, opc, args, dead_iargs);
2114 args += def->nb_args;