aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
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/lib/CodeGen/CodeGenFunction.h
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/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 023fd4d..6c13445 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -3464,6 +3464,7 @@ public:
const RegionCodeGenTy &BodyGen,
OMPTargetDataInfo &InputInfo);
+ void EmitOMPMetaDirective(const OMPMetaDirective &S);
void EmitOMPParallelDirective(const OMPParallelDirective &S);
void EmitOMPSimdDirective(const OMPSimdDirective &S);
void EmitOMPTileDirective(const OMPTileDirective &S);