diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2015-10-27 22:16:19 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-10-27 22:16:19 +0000 |
commit | 6e91acf8bbf95ec5f19c7b93ddf10b61e5cc37e6 (patch) | |
tree | f7d5ff7dcddc915999eca654a5d091ec5114edca /gcc/omp-low.c | |
parent | 0956e359c48b8526e6159d2e88e7de294929576d (diff) | |
download | gcc-6e91acf8bbf95ec5f19c7b93ddf10b61e5cc37e6.zip gcc-6e91acf8bbf95ec5f19c7b93ddf10b61e5cc37e6.tar.gz gcc-6e91acf8bbf95ec5f19c7b93ddf10b61e5cc37e6.tar.bz2 |
target-insns.def (oacc_fork, oacc_join): Define.
* target-insns.def (oacc_fork, oacc_join): Define.
* target.def (goacc.validate_dims): Adjust doc to avoid warning.
(goacc.fork_join): New GOACC hook.
* targhooks.h (default_goacc_fork_join): Declare.
* omp-low.c (default_goacc_forkjoin): New.
* doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
* doc/tm.texi: Regenerate.
From-SVN: r229465
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index f06daa1..ea6ccfe 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -17642,6 +17642,19 @@ oacc_validate_dims (tree fn, tree attrs, int *dims) return fn_level; } +/* Default fork/join early expander. Delete the function calls if + there is no RTL expander. */ + +bool +default_goacc_fork_join (gcall *ARG_UNUSED (call), + const int *ARG_UNUSED (dims), bool is_fork) +{ + if (is_fork) + return targetm.have_oacc_fork (); + else + return targetm.have_oacc_join (); +} + /* Main entry point for oacc transformations which run on the device compiler after LTO, so we know what the target device is at this point (including the host fallback). */ |