* tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_ clause. * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of OMP_CLAUSE__CONDTEMP_ as range's upper bound. (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define. * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OMP_CLAUSE__SCANTEMP_ entry. (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_. * tree-pretty-print.c (dump_omp_clause): Likewise. * tree-nested.c (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Likewise. * omp-general.h (struct omp_for_data): Add have_scantemp and have_nonctrl_scantemp members. * omp-general.c (omp_extract_for_data): Initialize them. * omp-low.c (struct omp_context): Add scan_exclusive member. (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind result again with GF_OMP_FOR_KIND_MASK. Initialize also ctx->scan_exclusive. (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead of !ctx->scan_inclusive. (lower_rec_input_clauses): Simplify gimplification of dtors using gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing loops. Don't add barrier for reduction_omp_orig_ref if ctx->scan_??xclusive. (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive. (lower_omp_scan): Use ctx->scan_exclusive instead of !ctx->scan_inclusive. Handle worksharing loops with inscan reductions. Use new_vard != new_var instead of repeated omp_is_reference calls. (omp_find_scan, lower_omp_for_scan): New functions. (lower_omp_for): Call lower_omp_for_scan for worksharing loops with inscan reductions. * omp-expand.c (expand_omp_scantemp_alloc): New function. (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp and fd->have_scantemp. * c-c++-common/gomp/scan-3.c (f1): Don't expect a sorry message. * c-c++-common/gomp/scan-5.c (foo): Likewise. * testsuite/libgomp.c++/scan-1.C: New test. * testsuite/libgomp.c++/scan-2.C: New test. * testsuite/libgomp.c++/scan-3.C: New test. * testsuite/libgomp.c++/scan-4.C: New test. * testsuite/libgomp.c++/scan-5.C: New test. * testsuite/libgomp.c++/scan-6.C: New test. * testsuite/libgomp.c++/scan-7.C: New test. * testsuite/libgomp.c++/scan-8.C: New test. * testsuite/libgomp.c/scan-1.c: New test. * testsuite/libgomp.c/scan-2.c: New test. * testsuite/libgomp.c/scan-3.c: New test. * testsuite/libgomp.c/scan-4.c: New test. * testsuite/libgomp.c/scan-5.c: New test. * testsuite/libgomp.c/scan-6.c: New test. * testsuite/libgomp.c/scan-7.c: New test. * testsuite/libgomp.c/scan-8.c: New test. From-SVN: r272958
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config | Loading commit data... | |
plugin | Loading commit data... | |
testsuite | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.graphite | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
acc_prof.h | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
affinity-fmt.c | Loading commit data... | |
affinity.c | Loading commit data... | |
alloc.c | Loading commit data... | |
atomic.c | Loading commit data... | |
barrier.c | Loading commit data... | |
config.h.in | Loading commit data... | |
configure | Loading commit data... | |
configure.ac | Loading commit data... | |
configure.tgt | Loading commit data... | |
critical.c | Loading commit data... | |
env.c | Loading commit data... | |
error.c | Loading commit data... | |
fortran.c | Loading commit data... | |
hashtab.h | Loading commit data... | |
icv-device.c | Loading commit data... | |
icv.c | Loading commit data... | |
iter.c | Loading commit data... | |
iter_ull.c | Loading commit data... | |
libgomp-plugin.c | Loading commit data... | |
libgomp-plugin.h | Loading commit data... | |
libgomp.h | Loading commit data... | |
libgomp.map | Loading commit data... | |
libgomp.spec.in | Loading commit data... | |
libgomp.texi | Loading commit data... | |
libgomp_f.h.in | Loading commit data... | |
libgomp_g.h | Loading commit data... | |
lock.c | Loading commit data... | |
loop.c | Loading commit data... | |
loop_ull.c | Loading commit data... | |
oacc-async.c | Loading commit data... | |
oacc-cuda.c | Loading commit data... | |
oacc-host.c | Loading commit data... | |
oacc-init.c | Loading commit data... | |
oacc-int.h | Loading commit data... | |
oacc-mem.c | Loading commit data... | |
oacc-parallel.c | Loading commit data... | |
oacc-plugin.c | Loading commit data... | |
oacc-plugin.h | Loading commit data... | |
oacc-profiling.c | Loading commit data... | |
omp.h.in | Loading commit data... | |
omp_lib.f90.in | Loading commit data... | |
omp_lib.h.in | Loading commit data... | |
openacc.f90 | Loading commit data... | |
openacc.h | Loading commit data... | |
openacc_lib.h | Loading commit data... | |
ordered.c | Loading commit data... | |
parallel.c | Loading commit data... | |
priority_queue.c | Loading commit data... | |
priority_queue.h | Loading commit data... | |
sections.c | Loading commit data... | |
secure_getenv.h | Loading commit data... | |
single.c | Loading commit data... | |
splay-tree.c | Loading commit data... | |
splay-tree.h | Loading commit data... | |
target.c | Loading commit data... | |
task.c | Loading commit data... | |
taskloop.c | Loading commit data... | |
team.c | Loading commit data... | |
teams.c | Loading commit data... | |
work.c | Loading commit data... |