diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-05-26 17:30:50 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-05-26 17:30:50 +0000 |
commit | 686c70c3dc951d6f4b9c09197171f10ac25189f6 (patch) | |
tree | 5ee915c9d908d3f860823b8190b39ff63f6e6b43 /clang/include/clang-c | |
parent | 11f69ba0cfeb73381f47c7c8288684e686921221 (diff) | |
download | bcm5719-llvm-686c70c3dc951d6f4b9c09197171f10ac25189f6.tar.gz bcm5719-llvm-686c70c3dc951d6f4b9c09197171f10ac25189f6.zip |
[OpenMP] Parsing and sema support for target update directive
Summary:
This patch is to add parsing and sema support for `target update` directive. Support for the `to` and `from` clauses will be added by a different patch. This patch also adds support for other clauses that are already implemented upstream and apply to `target update`, e.g. `device` and `if`.
This patch is based on the original post by Kelvin Li.
Reviewers: hfinkel, carlo.bertolli, kkwli0, arpith-jacob, ABataev
Subscribers: caomhin, cfe-commits
Differential Revision: http://reviews.llvm.org/D15944
llvm-svn: 270878
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 794c49047fe..dbcd0c8840f 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2281,7 +2281,7 @@ enum CXCursorKind { */ CXCursor_OMPTaskLoopSimdDirective = 259, - /** \brief OpenMP distribute directive. + /** \brief OpenMP distribute directive. */ CXCursor_OMPDistributeDirective = 260, @@ -2301,7 +2301,11 @@ enum CXCursorKind { */ CXCursor_OMPTargetParallelForDirective = 264, - CXCursor_LastStmt = CXCursor_OMPTargetParallelForDirective, + /** \brief OpenMP target update directive. + */ + CXCursor_OMPTargetUpdateDirective = 265, + + CXCursor_LastStmt = CXCursor_OMPTargetUpdateDirective, /** * \brief Cursor that represents the translation unit itself. |