[PATCH][4.6] Dump TYPE_VECTOR_SUBPARTS
Richard Guenther
rguenther@suse.de
Wed Mar 3 13:06:00 GMT 2010
This adds TYPE_VECTOR_SUBPARTS as <n> suffix to vector types to
distinguish vector<4> float from vector<8> float in dumps as
can now happen with AVX.
Queued for 4.6.
Richard.
2010-03-03 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Dump
TYPE_VECTOR_SUBPARTS.
Index: trunk/gcc/tree-pretty-print.c
===================================================================
*** trunk.orig/gcc/tree-pretty-print.c 2010-02-19 14:15:19.000000000 +0100
--- trunk/gcc/tree-pretty-print.c 2010-02-23 12:15:37.000000000 +0100
*************** dump_generic_node (pretty_printer *buffe
*** 695,701 ****
}
else if (TREE_CODE (node) == VECTOR_TYPE)
{
! pp_string (buffer, "vector ");
dump_generic_node (buffer, TREE_TYPE (node), spc, flags, false);
}
else if (TREE_CODE (node) == INTEGER_TYPE)
--- 695,703 ----
}
else if (TREE_CODE (node) == VECTOR_TYPE)
{
! pp_string (buffer, "vector<");
! pp_decimal_int (buffer, (int)TYPE_VECTOR_SUBPARTS (node));
! pp_string (buffer, "> ");
dump_generic_node (buffer, TREE_TYPE (node), spc, flags, false);
}
else if (TREE_CODE (node) == INTEGER_TYPE)
More information about the Gcc-patches
mailing list