This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r197988 - in /branches/cilkplus/gcc: ChangeLog....
- From: bviyer at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 15 Apr 2013 17:03:21 -0000
- Subject: r197988 - in /branches/cilkplus/gcc: ChangeLog....
Author: bviyer
Date: Mon Apr 15 17:03:21 2013
New Revision: 197988
URL: http://gcc.gnu.org/viewcvs?rev=197988&root=gcc&view=rev
Log:
Changed mallocs and TREE_LIST in pragma simd impl. with vecs.
ChangeLog.cilkplus
2013-04-14 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c/Make-lang.in (C_AND_OBJC_OBJS): Added c/c-pragma-simd.o.
* c/c-typeck.c (c_finish_loop): Added new parameter to pass in pragma
simd information.
* c/c-parser.c (c_parser_for_statement): Likewise.
(c_parser_simd_pragma): added CILKPLUS_PRAGMA_SIMD case. Removed
PRAGMA_SIMD_ASSERT, PRAGMA_SIMD_VECTORLENGTH, PRAGMA_SIMD_PRIVATE,
PRAGMA_SIMD_LINEAR cases.
(same_var_in_multiple_lists_p): New function.
(c_parser_simd_construct): Likewise.
(c_parser_simd_assert): Changed the function to use vecs intead of
mallocs, linked-list and TREE_LIST. Also, added a parameter to pass in
pragma simd information.
(c_parser_simd_vectorlength): Likewise.
(c_parser_simd_reduction): Likewise.
(c_parser_simd_linear): Likewise.
(c_parser_simd_private): Likewise.
* pragma_simd.c (psv_find_node): Changed the function to use vecs
instead of mallocs, linked-list and TREE_LIST.
(clause_resolved_p): Likewise.
(pragma_simd_assert_requested_p): Likewise.
(pragma_simd_verify_clauses): Likewise.
(set_OK_for_certain_clause): Likewise.
(psv_find_node): Likewise.
(pragma_simd_acceptable_vlength_p): Likewise.
(check_off_reduction_var): Likewise.
(find_linear_step_size): Likewise.
(all_reductions_satisfied_p): Likewise.
(pragma_simd_is_private_var_p): Renamed from pragma_simd_is_private_var.
(p_simd_nodes_clear): New function.
(p_simd_head_insert): Likewise.
(pragma_simd_is_linear_var_p): Likewise.
(dump_pragma_simd_values_vec): Likewise.
(psv_head_insert): Remove.
(insert_reduction_values): Likewise.
(same_var_in_multiple_lists_p): Likewise.
* tree-vectorizer.c (vectorize_loops): Removed function call
pragma_simd_vectorize_loop_p.
* tree.h (struct pragma_simd_values): Replaced dynamic arrays with
vecs.
(tree_label_decl): Made pragma_simd_index unsigned instead of signed.
* cfgloop.h (struct loop): Likewise.
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Added a check for
verbosity of vectorizer, and if so then emit debug information.
(vect_create_epilog_for_reduction): Added a call to remove reduction
var when a reduction has occurred.
* gimple.h (struct gimple_statement): Likewise.
* c/c-pragma-simd.c: New file.
c-family/ChangeLog.cilkplus
2013-04-14 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-pragma.c (init_pragma): Added "simd" as a deferred pragma instead
of it being a namespace. Removed all definition of pragma simd's
optional sub-clauses.
cp/ChangeLog.cilkplus
2013-04-14 Balaji V. Iyer <balaji.v.iyer@intel.com>
* Make-lang.in (CXX_AND_OBJCXX_OBJS): Added cp/cp-pragma-simd.o.
* parser.c (cp_lexer_new_main): Removed cilkplus_local_simd_values
global variable.
(cp_parser_for): Likewise.
(cp_parser_simd_handle_next_clause): New function.
(cp_parser_simd_construct): Likewise.
(same_var_in_multiple_lists_p): Likewise.
(cp_parser_pragma): Added CILKPLUS_PRAGMA_SIMD case. Removed the
following cases: PRAGMA_SIMD_ASSERT, PRAGMA_SIMD_EMPTY,
PRAGMA_SIMD_NOASSERT, PRAGMA_SIMD_VECTORLENGTH, PRAGMA_SIMD_PRIVATE,
and PRAGMA_SIMD_LINEAR.
(cp_parser_simd_assert): Changed the function to use vecs instead of
mallocs, TREE_LIST and arrays. Also, added a new parameter to pass in
pragma simd information.
(cp_parser_simd_vectorlength): Likewise.
(cp_parser_simd_linear): Likewise.
(cp_parser_simd_private): Likewise.
(cp_parser_simd_reduction): Likewise.
* cp-pragma-simd.c: New file.
Added:
branches/cilkplus/gcc/c/c-pragma-simd.c (with props)
branches/cilkplus/gcc/cp/cp-pragma-simd.c (with props)
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/pragma_simd_tests/errors/
branches/cilkplus/gcc/testsuite/g++.dg/cilk-plus/pragma_simd_tests/errors/for_body_errors.cc
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/cilkplus_PS_c_errors.exp
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/for_body_errors.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/opt_error.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/opt_error2.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/errors/same_var_multiple_clauses.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/reduction_ex.c
Removed:
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/pragma-simd-for.c
Modified:
branches/cilkplus/gcc/ChangeLog.cilkplus
branches/cilkplus/gcc/c-family/ChangeLog.cilkplus
branches/cilkplus/gcc/c-family/c-common.h
branches/cilkplus/gcc/c-family/c-pragma.c
branches/cilkplus/gcc/c-family/c-pragma.h
branches/cilkplus/gcc/c/Make-lang.in
branches/cilkplus/gcc/c/c-parser.c
branches/cilkplus/gcc/c/c-typeck.c
branches/cilkplus/gcc/cfgloop.h
branches/cilkplus/gcc/cilk.h
branches/cilkplus/gcc/cp/ChangeLog.cilkplus
branches/cilkplus/gcc/cp/Make-lang.in
branches/cilkplus/gcc/cp/parser.c
branches/cilkplus/gcc/gimple.h
branches/cilkplus/gcc/pragma_simd.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/compile/assert1.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/cilkplus_PS_c_execute.exp
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/p_simd_test1.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/p_simd_test2.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/vlength_comma.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/vlength_comma2.c
branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/execute/vlength_comma3.c
branches/cilkplus/gcc/tree-loop-distribution.c
branches/cilkplus/gcc/tree-vect-loop.c
branches/cilkplus/gcc/tree-vectorizer.c
branches/cilkplus/gcc/tree.h
Propchange: branches/cilkplus/gcc/c/c-pragma-simd.c
('svn:executable' added)
Propchange: branches/cilkplus/gcc/cp/cp-pragma-simd.c
('svn:executable' added)