AVX512-style masks and SVE-style predicates can be difficult
to debug in gimple dumps, since the types are printed like this:
vector(4) <unnamed type> foo;
Some important details are hidden by that <unnamed type>,
such as the number of bits in an element and whether the type
is signed or unsigned.
This patch uses an ad-hoc syntax for printing unnamed
boolean types. Normal frontend ones should be handled
by the earlier TYPE_NAME code.
2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
+2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
+
+ * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
+
2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
Bill Schmidt <wschmidt@linux.ibm.com>
pp_decimal_int (pp, TYPE_PRECISION (node));
pp_greater (pp);
}
+ else if (TREE_CODE (node) == BOOLEAN_TYPE)
+ {
+ pp_string (pp, (TYPE_UNSIGNED (node)
+ ? "<unsigned-boolean:"
+ : "<signed-boolean:"));
+ pp_decimal_int (pp, TYPE_PRECISION (node));
+ pp_greater (pp);
+ }
else if (TREE_CODE (node) == VOID_TYPE)
pp_string (pp, "void");
else