Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0d0afa9f
Commit
0d0afa9f
authored
May 19, 2017
by
Thomas Schwinge
Committed by
Thomas Schwinge
May 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify gcc/gimplify.c:oacc_default_clause
gcc/ * gimplify.c (oacc_default_clause): Clarify. From-SVN: r248279
parent
9740ed54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
18 deletions
+26
-18
gcc/ChangeLog
+4
-0
gcc/gimplify.c
+22
-18
No files found.
gcc/ChangeLog
View file @
0d0afa9f
2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
* gimplify.c (oacc_default_clause): Clarify.
2017-05-19 Nathan Sidwell <nathan@acm.org>
LANG_HOOK_REGISTER_DUMPS
...
...
gcc/gimplify.c
View file @
0d0afa9f
...
...
@@ -6952,30 +6952,34 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, tree decl, unsigned flags)
switch
(
ctx
->
region_type
)
{
default:
gcc_unreachable
();
case
ORT_ACC_KERNELS
:
/* Scalars are default 'copy' under kernels, non-scalars are default
'present_or_copy'. */
flags
|=
GOVD_MAP
;
if
(
!
AGGREGATE_TYPE_P
(
type
))
flags
|=
GOVD_MAP_FORCE
;
rkind
=
"kernels"
;
if
(
AGGREGATE_TYPE_P
(
type
))
/* Aggregates default to 'present_or_copy'. */
flags
|=
GOVD_MAP
;
else
/* Scalars default to 'copy'. */
flags
|=
GOVD_MAP
|
GOVD_MAP_FORCE
;
break
;
case
ORT_ACC_PARALLEL
:
{
if
(
on_device
||
AGGREGATE_TYPE_P
(
type
)
||
declared
)
/* Aggregates default to 'present_or_copy'. */
flags
|=
GOVD_MAP
;
else
/* Scalars default to 'firstprivate'. */
flags
|=
GOVD_FIRSTPRIVATE
;
rkind
=
"parallel"
;
}
rkind
=
"parallel"
;
if
(
on_device
||
declared
)
flags
|=
GOVD_MAP
;
else
if
(
AGGREGATE_TYPE_P
(
type
))
/* Aggregates default to 'present_or_copy'. */
flags
|=
GOVD_MAP
;
else
/* Scalars default to 'firstprivate'. */
flags
|=
GOVD_FIRSTPRIVATE
;
break
;
default:
gcc_unreachable
();
}
if
(
DECL_ARTIFICIAL
(
decl
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment