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/target.def | |
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/target.def')
-rw-r--r-- | gcc/target.def | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/target.def b/gcc/target.def index b74887d..bc4b5bd 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -1655,9 +1655,19 @@ should fill in anything that needs to default to non-unity and verify\n\ non-defaults. Diagnostics should be issued as appropriate. Return\n\ true, if changes have been made. You must override this hook to\n\ provide dimensions larger than 1.", -bool, (tree decl, int dims[], int fn_level), +bool, (tree decl, int *dims, int fn_level), default_goacc_validate_dims) +DEFHOOK +(fork_join, +"This hook should convert IFN_GOACC_FORK and IFN_GOACC_JOIN function\n\ +calls to target-specific gimple. It is executed during the\n\ +oacc_device_lower pass. It should return true, if the functions\n\ +should be deleted. The default hook returns true, if there are no\n\ +RTL expanders for them.", +bool, (gcall *call, const int *dims, bool is_fork), +default_goacc_fork_join) + HOOK_VECTOR_END (goacc) /* Functions relating to vectorization. */ |