This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r249132 - in /branches/gomp-5_0-branch/gcc: Cha...


Author: jakub
Date: Mon Jun 12 18:12:57 2017
New Revision: 249132

URL: https://gcc.gnu.org/viewcvs?rev=249132&root=gcc&view=rev
Log:
	* tree.def (OMP_TASKGROUP): Add another operand, move next to other
	OpenMP constructs with body and clauses operands.
	* gimple-pretty-print.c (dump_gimple_omp_taskgroup): New function.
	(pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP.
	* gimple.h (gimple_build_omp_taskgroup): Add clauses argument.
	(gimple_omp_taskgroup_clauses): New inline function.
	(gimple_omp_taskgroup_clauses_ptr): Likewise.
	(gimple_omp_taskgroup_set_clauses): Likewise.
	* tree.h (OMP_BODY): Use OMP_MASTER instead of OMP_TASKGROUP.
	(OMP_CLAUSES): Use OMP_TASKGROUP instead of OMP_SINGLE.
	(OMP_TASKGROUP_CLAUSES): Define.
	(OMP_CLAUSE_REDUCTION_CODE): Handle OMP_CLAUSE_{,IN_,TASK_}REDUCTION.
	(OMP_CLAUSE_REDUCTION_INIT): Likewise.
	(OMP_CLAUSE_REDUCTION_MERGE): Likewise.
	(OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
	(OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER): Likewise.
	(OMP_CLAUSE_REDUCTION_OMP_ORIG_REF): Likewise.
	* tree-pretty-print.c (dump_omp_clause): Handle
	OMP_CLAUSE_{TASK,IN}_REDUCTION.
	(dump_generic_node): Print taskgroup clauses.
	* gimple.def (GIMPLE_OMP_TASKGROUP): Use GSS_OMP_SINGLE_LAYOUT
	instead of GSS_OMP.
	* tree.c (omp_clause_num_ops): Add in_reduction and task_reduction
	clause entries.
	(omp_clause_code_name): Likewise.
	(walk_tree_1): Handle OMP_CLAUSE_{TASK,IN}_REDUCTION.
	* tree-streamer-out.c (pack_ts_omp_clause_value_fields): Likewise.
	(write_ts_omp_clause_tree_pointers): Likewise.
	* tree-streamer-in.c (unpack_ts_omp_clause_value_fields): Likewise.
	* gimple.c (gimple_build_omp_taskgroup): Add CLAUSES argument.  Call
	gimple_omp_taskgroup_set_clauses.
	(gimple_copy): Copy taskgroup clauses.
	* omp-low.c (scan_sharing_clauses): Handle
	OMP_CLAUSE_{TASK,IN}_REDUCTION like OMP_CLAUSE_REDUCTION.
	(lower_rec_input_clauses): Likewise.
	(scan_omp_for): Fix comment formatting.
	* lto-streamer-out.c (hash_tree): Handle
	OMP_CLAUSE_{TASK,IN}_REDUCTION.
	* tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TASK_REDUCTION
	and OMP_CLAUSE_IN_REDUCTION.
	* gimplify.c (gimplify_scan_omp_clauses): Handle
	OMP_CLAUSE_{TASK,IN}_REDUCTION.
	(gimplify_adjust_omp_clauses): Likewise.
	(gimplify_expr): Handle taskgroup clauses.
	* tree-inline.c (remap_gimple_stmt): Remap taskgroup clauses.
c-family/
	* c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
	* c-omp.c (c_finish_omp_taskgroup): Likewise.  Set
	OMP_TASKGROUP_CLAUSES to it.
	(c_omp_split_clauses): Handle in_reduction clause.  Handle
	reduction clause on taskloop simd.
	* c-pragma.h (enum pragma_omp_clause): Add
	PRAGMA_OMP_CLAUSE_IN_REDUCTION and PRAGMA_OMP_CLAUSE_TASK_REDUCTION.
c/
	* c-parser.c (c_parser_omp_clause_name): Handle
	in_reduction and task_reduction clauses.
	(c_parser_omp_variable_list): Handle
	OMP_CLAUSE_IN_REDUCTION and OMP_CLAUSE_TASK_REDUCTION.
	(c_parser_omp_clause_reduction): Add KIND argument.  Pass
	it to c_parser_omp_variable_list.
	(c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction
	caller.
	(c_parser_omp_all_clauses): Likewise.  Handle
	PRAGMA_OMP_CLAUSE_IN_REDUCTION and PRAGMA_OMP_CLAUSE_TASK_REDUCTION.
	(OMP_TASK_CLAUSE_MASK): Add in_reduction clause.
	(OMP_TASKGROUP_CLAUSE_MASK): Define.
	(c_parser_omp_taskgroup): Add LOC argument.  Parse taskgroup clauses.
	(OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses.
	(c_parser_omp_taskloop): Don't mask off PRAGMA_OMP_CLAUSE_REDUCTION.
	(c_parser_omp_construct): Adjust c_parser_omp_taskgroup caller.
	(c_parser_cilk_all_clauses): Adjust c_parser_omp_clause_reduction
	caller.
	* c-typeck.c (handle_omp_array_sections_1): Handle
	OMP_CLAUSE_{IN,TASK}_REDUCTION like OMP_CLAUSE_REDUCTION.
	(handle_omp_array_sections): Likewise.
	(c_finish_omp_clauses): Likewise.
cp/
	* parser.c (cp_parser_omp_clause_name): Handle
	in_reduction and task_reduction clauses.
	(cp_parser_omp_var_list_no_open): Handle
	OMP_CLAUSE_IN_REDUCTION and OMP_CLAUSE_TASK_REDUCTION.
	(cp_parser_omp_clause_reduction): Add KIND argument.  Pass
	it to cp_parser_omp_var_list_no_open.
	(cp_parser_omp_clause_lastprivate): Remove unused loc argument.
	(cp_parser_oacc_all_clauses): Adjust cp_parser_omp_clause_reduction
	caller.
	(cp_parser_omp_all_clauses): Likewise.  Handle
	PRAGMA_OMP_CLAUSE_IN_REDUCTION and PRAGMA_OMP_CLAUSE_TASK_REDUCTION.
	Adjust cp_parser_omp_clause_lastprivate caller.
	(cp_parser_omp_for_loop): Handle OMP_CLAUSE_IN_REDUCTION like
	OMP_CLAUSE_REDUCTION.
	(OMP_TASK_CLAUSE_MASK): Add in_reduction clause.
	(OMP_TASKGROUP_CLAUSE_MASK): Define.
	(cp_parser_omp_taskgroup): Parse taskgroup clauses, adjust
	c_finish_omp_taskgroup caller.
	(OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses.
	(cp_parser_cilk_simd_all_clauses): Adjust
	cp_parser_omp_clause_reduction caller.
	* semantics.c (handle_omp_array_sections_1): Handle
	OMP_CLAUSE_{IN,TASK}_REDUCTION like OMP_CLAUSE_REDUCTION.
	(handle_omp_array_sections): Likewise.
	(finish_omp_clauses): Likewise.
	* cp-gimplify.c (cp_genericize_r): Handle OMP_CLAUSE_IN_REDUCTION
	and OMP_CLAUSE_TASK_REDUCTION.
	* pt.c (tsubst_expr): Handle clauses on OMP_TASKGROUP.

Modified:
    branches/gomp-5_0-branch/gcc/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c-family/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c-family/c-common.h
    branches/gomp-5_0-branch/gcc/c-family/c-omp.c
    branches/gomp-5_0-branch/gcc/c-family/c-pragma.h
    branches/gomp-5_0-branch/gcc/c/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/c/c-parser.c
    branches/gomp-5_0-branch/gcc/c/c-typeck.c
    branches/gomp-5_0-branch/gcc/cp/ChangeLog.gomp
    branches/gomp-5_0-branch/gcc/cp/cp-gimplify.c
    branches/gomp-5_0-branch/gcc/cp/parser.c
    branches/gomp-5_0-branch/gcc/cp/pt.c
    branches/gomp-5_0-branch/gcc/cp/semantics.c
    branches/gomp-5_0-branch/gcc/gimple-pretty-print.c
    branches/gomp-5_0-branch/gcc/gimple.c
    branches/gomp-5_0-branch/gcc/gimple.def
    branches/gomp-5_0-branch/gcc/gimple.h
    branches/gomp-5_0-branch/gcc/gimplify.c
    branches/gomp-5_0-branch/gcc/lto-streamer-out.c
    branches/gomp-5_0-branch/gcc/omp-low.c
    branches/gomp-5_0-branch/gcc/tree-core.h
    branches/gomp-5_0-branch/gcc/tree-inline.c
    branches/gomp-5_0-branch/gcc/tree-pretty-print.c
    branches/gomp-5_0-branch/gcc/tree-streamer-in.c
    branches/gomp-5_0-branch/gcc/tree-streamer-out.c
    branches/gomp-5_0-branch/gcc/tree.c
    branches/gomp-5_0-branch/gcc/tree.def
    branches/gomp-5_0-branch/gcc/tree.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]