From 8170608bfc488f0dde37b332776e59c912244366 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Thu, 24 Oct 2013 18:25:44 +0200 Subject: re PR other/33426 (Support of #pragma ivdep) 2013-08-24 Tobias Burnus PR other/33426 * c-pragma.c (init_pragma) Add #pragma ivdep handling. * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. PR other/33426 * c-parser.c (c_parser_pragma, c_parser_for_statement): Handle PRAGMA_IVDEP. (c_parser_statement_after_labels): Update call. PR other/33426 * tree-cfg.c (replace_loop_annotate): New function. (execute_build_cfg): Call it. * gimplify.c (gimple_boolify, gimplify_expr): Handle * ANNOTATE_EXPR. * internal-fn.c (expand_ANNOTATE): New function. * internal-fn.def (ANNOTATE): Define as new internal function. * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind. * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR. * tree.def (ANNOTATE_EXPR): New DEFTREECODE. * doc/extend.texi (Pragmas): Document #pragma ivdep. * doc/generic.texi (Expressions): Document ANNOTATE_EXPR. PR other/33426 * testsuite/gcc.dg/ivdep.c: New. * testsuite/gcc.dg/vect/vect-ivdep-1.c: New. From-SVN: r204021 --- gcc/doc/generic.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/doc/generic.texi') diff --git a/gcc/doc/generic.texi b/gcc/doc/generic.texi index ccecd6e8..75c4745 100644 --- a/gcc/doc/generic.texi +++ b/gcc/doc/generic.texi @@ -1279,6 +1279,7 @@ the byte offset of the field, but should not be used directly; call @tindex SAVE_EXPR @tindex TARGET_EXPR @tindex VA_ARG_EXPR +@tindex ANNOTATE_EXPR @table @code @item NEGATE_EXPR @@ -1692,8 +1693,13 @@ mechanism. It represents expressions like @code{va_arg (ap, type)}. Its @code{TREE_TYPE} yields the tree representation for @code{type} and its sole argument yields the representation for @code{ap}. +@item ANNOTATE_EXPR +This node is used to attach markers to an expression. The first operand +is the annotated expression, the second is an @code{INTEGER_CST} with +a value from @code{enum annot_expr_kind}. @end table + @node Vectors @subsection Vectors @tindex VEC_LSHIFT_EXPR -- cgit v1.1