aboutsummaryrefslogtreecommitdiff
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authoralokmishra.besu <>2021-09-17 16:03:01 -0500
committercchen <chichun.chen@hpe.com>2021-09-17 16:30:06 -0500
commit347f3c186d3fd86628904450d2f4ee0ffd428150 (patch)
treec664e04c34d00eaed0efc0b1ad51045266d86f9a /clang/include/clang-c
parent7efb825382c0a8372597aaf75a319fa379573fd4 (diff)
downloadllvm-347f3c186d3fd86628904450d2f4ee0ffd428150.zip
llvm-347f3c186d3fd86628904450d2f4ee0ffd428150.tar.gz
llvm-347f3c186d3fd86628904450d2f4ee0ffd428150.tar.bz2
OpenMP 5.0 metadirective
This patch supports OpenMP 5.0 metadirective features. It is implemented keeping the OpenMP 5.1 features like dynamic user condition in mind. A new function, getBestWhenMatchForContext, is defined in llvm/Frontend/OpenMP/OMPContext.h Currently this function return the index of the when clause with the highest score from the ones applicable in the Context. But this function is declared with an array which can be used in OpenMP 5.1 implementation to select all the valid when clauses which can be resolved in runtime. Currently this array is set to null by default and its implementation is left for future. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D91944
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 8afd4c9..b49acf6 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -2592,7 +2592,11 @@ enum CXCursorKind {
*/
CXCursor_OMPUnrollDirective = 293,
- CXCursor_LastStmt = CXCursor_OMPUnrollDirective,
+ /** OpenMP metadirective directive.
+ */
+ CXCursor_OMPMetaDirective = 294,
+
+ CXCursor_LastStmt = CXCursor_OMPMetaDirective,
/**
* Cursor that represents the translation unit itself.