Skip to content

Commit 1851df5

Browse files
committedJan 3, 2017
[OpenMP] Sema and parsing for 'target teams distribute parallel for simd’ pragma
This patch is to implement sema and parsing for 'target teams distribute parallel for simd’ pragma. Differential Revision: https://reviews.llvm.org/D28202 llvm-svn: 290862
1 parent 7c030a2 commit 1851df5

File tree

52 files changed

+6090
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6090
-78
lines changed
 

‎clang/include/clang-c/Index.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,11 @@ enum CXCursorKind {
23662366
*/
23672367
CXCursor_OMPTargetTeamsDistributeParallelForDirective = 277,
23682368

2369-
CXCursor_LastStmt = CXCursor_OMPTargetTeamsDistributeParallelForDirective,
2369+
/** \brief OpenMP target teams distribute parallel for simd directive.
2370+
*/
2371+
CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective = 278,
2372+
2373+
CXCursor_LastStmt = CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective,
23702374

23712375
/**
23722376
* \brief Cursor that represents the translation unit itself.

‎clang/include/clang/AST/RecursiveASTVisitor.h

+3
Original file line numberDiff line numberDiff line change
@@ -2669,6 +2669,9 @@ DEF_TRAVERSE_STMT(OMPTargetTeamsDistributeDirective,
26692669
DEF_TRAVERSE_STMT(OMPTargetTeamsDistributeParallelForDirective,
26702670
{ TRY_TO(TraverseOMPExecutableDirective(S)); })
26712671

2672+
DEF_TRAVERSE_STMT(OMPTargetTeamsDistributeParallelForSimdDirective,
2673+
{ TRY_TO(TraverseOMPExecutableDirective(S)); })
2674+
26722675
// OpenMP clauses.
26732676
template <typename Derived>
26742677
bool RecursiveASTVisitor<Derived>::TraverseOMPClause(OMPClause *C) {

0 commit comments

Comments
 (0)