Lines Matching defs:rtx

27    attribute.  Each of these is given the rtx for an insn and returns a member
88 `unchanging' (ATTR_IND_SIMPLIFIED_P): This rtx is fully simplified
90 `in_struct' (ATTR_CURR_SIMPLIFIED_P): This rtx is fully simplified
92 `return_val' (ATTR_PERMANENT_P): This rtx is permanent and unique
137 rtx def; /* The DEFINE_... */
161 rtx value; /* Value of attribute. */
186 rtx def; /* DEFINE_DELAY expression. */
224 static rtx true_rtx, false_rtx;
246 static rtx make_numeric_value (int);
248 static rtx mk_attr_alt (int);
250 static rtx insert_right_side (enum rtx_code, rtx, rtx, int, int);
251 static rtx copy_boolean (rtx);
252 static int compares_alternatives_p (rtx);
253 static void make_internal_attr (const char *, rtx, int);
255 static void walk_attr_value (rtx);
256 static int max_attr_value (rtx, int*);
257 static int min_attr_value (rtx, int*);
258 static int or_attr_value (rtx, int*);
259 static rtx simplify_test_exp (rtx, int, int);
260 static rtx simplify_test_exp_in_temp (rtx, int, int);
261 static rtx copy_rtx_unchanging (rtx);
262 static bool attr_alt_subset_p (rtx, rtx);
263 static bool attr_alt_subset_of_compl_p (rtx, rtx);
264 static void clear_struct_flag (rtx);
267 static void write_attr_set (struct attr_desc *, int, rtx,
268 const char *, const char *, rtx,
271 int, const char *, const char *, int, rtx);
272 static void write_attr_value (struct attr_desc *, rtx);
275 static rtx identity_fn (rtx);
276 static rtx zero_fn (rtx);
277 static rtx one_fn (rtx);
278 static rtx max_fn (rtx);
279 static rtx min_fn (rtx);
292 int hashcode; /* Hash code of this rtx or string. */
296 rtx rtl; /* or the RTL recorded here. */
317 attr_hash_add_rtx (int hashcode, rtx rtl)
346 impermanent rtx with ATTR_PERMANENT_P clear.
350 rtx attr_rtx (code, [element1, ..., elementn]) */
352 static rtx
355 rtx rt_val = NULL_RTX;/* RTX to return to caller... */
366 rtx arg0 = va_arg (p, rtx);
395 rtx arg0 = va_arg (p, rtx);
396 rtx arg1 = va_arg (p, rtx);
480 const char *fmt; /* Current rtx's format... */
506 XEXP (rt_val, i) = va_arg (p, rtx);
526 static rtx
529 rtx result;
541 rtx attr_printf (len, format, [arg1, ..., argn]) */
559 static rtx
604 /* Check two rtx's for equality of contents,
609 attr_equal_p (rtx x, rtx y)
619 static rtx
620 attr_copy_rtx (rtx orig)
622 rtx copy;
713 static rtx
714 check_attr_test (rtx exp, int is_const, int lineno)
719 rtx orexp, newexp;
866 static rtx
867 check_attr_value (rtx exp, struct attr_desc *attr)
1034 static rtx
1035 convert_set_attr_alternative (rtx exp, struct insn_def *id)
1038 rtx condexp;
1071 static rtx
1072 convert_set_attr (rtx exp, struct insn_def *id)
1074 rtx newexp;
1109 rtx value;
1166 static rtx
1167 make_canonical (struct attr_desc *attr, rtx exp)
1170 rtx newexp;
1214 rtx defval;
1241 static rtx
1242 copy_boolean (rtx exp)
1271 get_attr_value (rtx value, struct attr_desc *attr, int insn_code)
1320 rtx condexp;
1321 rtx newexp;
1411 rtx value;
1447 static rtx
1448 substitute_address (rtx exp, rtx (*no_address_fn) (rtx),
1449 rtx (*address_fn) (rtx))
1452 rtx newexp;
1529 static rtx (*const no_address_fn[]) (rtx)
1531 static rtx (*const address_fn[]) (rtx)
1574 static rtx
1575 identity_fn (rtx exp)
1580 static rtx
1581 zero_fn (rtx exp ATTRIBUTE_UNUSED)
1586 static rtx
1587 one_fn (rtx exp ATTRIBUTE_UNUSED)
1592 static rtx
1593 max_fn (rtx exp)
1599 static rtx
1600 min_fn (rtx exp)
1639 We do not modify EXP; rather, we make and return a new rtx. */
1641 static rtx
1642 simplify_cond (rtx exp, int insn_code, int insn_index)
1647 rtx defval = XEXP (exp, 1);
1648 rtx new_defval = XEXP (exp, 1);
1650 rtx *tests = XNEWVEC (rtx, len);
1652 rtx ret;
1657 memcpy (tests, XVEC (exp, 0)->elem, len * sizeof (rtx));
1667 rtx newtest, newval;
1745 rtx newexp = rtx_alloc (COND);
1748 memcpy (XVEC (newexp, 0)->elem, tests, len * sizeof (rtx));
1802 static rtx
1803 insert_right_side (enum rtx_code code, rtx exp, rtx term, int insn_code, int insn_index)
1805 rtx newexp;
1839 rtx new = insert_right_side (code, XEXP (exp, 1),
1865 compute_alternative_mask (rtx exp, enum rtx_code code)
1902 static rtx
1917 static rtx
1918 evaluate_eq_attr (rtx exp, rtx value, int insn_code, int insn_index)
1920 rtx orexp, andexp;
1921 rtx right;
1922 rtx newexp;
1973 rtx this = simplify_test_exp_in_temp (XVECEXP (value, 0, i),
2035 static rtx
2036 simplify_and_tree (rtx exp, rtx *pterm, int insn_code, int insn_index)
2038 rtx left, right;
2039 rtx newexp;
2040 rtx temp;
2165 static rtx
2166 simplify_or_tree (rtx exp, rtx *pterm, int insn_code, int insn_index)
2168 rtx left, right;
2169 rtx newexp;
2170 rtx temp;
2233 attr_rtx_cost (rtx x)
2285 static rtx
2286 simplify_test_exp_in_temp (rtx exp, int insn_code, int insn_index)
2288 rtx x;
2304 attr_alt_subset_p (rtx s1, rtx s2)
2328 attr_alt_subset_of_compl_p (rtx s1, rtx s2)
2351 static rtx
2352 attr_alt_intersection (rtx s1, rtx s2)
2354 rtx result = rtx_alloc (EQ_ATTR_ALT);
2380 static rtx
2381 attr_alt_union (rtx s1, rtx s2)
2383 rtx result = rtx_alloc (EQ_ATTR_ALT);
2409 static rtx
2410 attr_alt_complement (rtx s)
2412 rtx result = rtx_alloc (EQ_ATTR_ALT);
2423 static rtx
2426 rtx result = rtx_alloc (EQ_ATTR_ALT);
2443 static rtx
2444 simplify_test_exp (rtx exp, int insn_code, int insn_index)
2446 rtx left, right;
2451 rtx newexp = exp;
2484 rtx tem = left;
2724 rtx x;
2756 rtx newexp;
2821 rtx newexp2 = simplify_cond (newexp, ie->def->insn_code,
2847 clear_struct_flag (rtx x)
2902 gen_attr (rtx exp, int lineno)
2970 count_alternatives (rtx exp)
3007 compares_alternatives_p (rtx exp)
3038 contained_in_p (rtx inner, rtx exp)
3069 gen_insn (rtx exp, int lineno)
3116 gen_delay (rtx def, int lineno)
3154 write_test_expr (rtx exp, int flags)
3445 max_attr_value (rtx exp, int *unknownp)
3486 min_attr_value (rtx exp, int *unknownp)
3528 or_attr_value (rtx exp, int *unknownp)
3570 walk_attr_value (rtx exp)
3658 printf ("%s (rtx insn ATTRIBUTE_UNUSED)\n", &attr->name[1]);
3660 printf ("get_attr_%s (rtx insn ATTRIBUTE_UNUSED)\n", attr->name);
3696 static rtx
3697 eliminate_known_true (rtx known_true, rtx exp, int insn_code, int insn_index)
3699 rtx term;
3725 write_attr_set (struct attr_desc *attr, int indent, rtx value,
3726 const char *prefix, const char *suffix, rtx known_true,
3733 rtx default_val = XEXP (value, 1);
3734 rtx our_known_true = known_true;
3735 rtx newexp;
3741 rtx testexp;
3742 rtx inner_true;
3835 int indent, rtx known_true)
3894 write_expr_attr_cache (rtx p, struct attr_desc *attr)
3959 write_attr_value (struct attr_desc *attr, rtx value)
4069 printf ("eligible_for_%s (rtx delay_insn ATTRIBUTE_UNUSED, int slot, rtx candidate_insn, int flags ATTRIBUTE_UNUSED)\n",
4072 printf (" rtx insn;\n");
4229 make_internal_attr (const char *name, rtx value, int special)
4263 static rtx
4266 static rtx int_values[20];
4267 rtx exp;
4284 static rtx
4285 copy_rtx_unchanging (rtx orig)
4305 printf ("int\nconst_num_delay_slots (rtx insn)\n");
4335 rtx condexp;
4352 gen_insn_reserv (rtx def)
4403 gen_bypass (rtx def)
4440 rtx code_exp, lats_exp, byps_exp;
4493 rtx desc;
4496 rtx tem;
4507 /* Set up true and false rtx's */