diff options
author | Kelvin Li <kkwli0@gmail.com> | 2018-09-26 04:28:39 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2018-09-26 04:28:39 +0000 |
commit | 1408f91a2588243b84ca98799d0988535ef2e72a (patch) | |
tree | 78fa18127eb45c3c2f52bbcaf1d118d832e69079 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 55321d82bd329bb88799e5a853a256b4a70e4106 (diff) | |
download | bcm5719-llvm-1408f91a2588243b84ca98799d0988535ef2e72a.tar.gz bcm5719-llvm-1408f91a2588243b84ca98799d0988535ef2e72a.zip |
[OPENMP] Add support for OMP5 requires directive + unified_address clause
Add support for OMP5.0 requires directive and unified_address clause.
Patches to follow will include support for additional clauses.
Differential Revision: https://reviews.llvm.org/D52359
llvm-svn: 343063
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 44ee6b3b3a6..e74066ef43a 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -105,6 +105,7 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::Import: case Decl::OMPThreadPrivate: case Decl::OMPCapturedExpr: + case Decl::OMPRequires: case Decl::Empty: // None of these decls require codegen support. return; @@ -2146,3 +2147,7 @@ void CodeGenModule::EmitOMPDeclareReduction(const OMPDeclareReductionDecl *D, return; getOpenMPRuntime().emitUserDefinedReduction(CGF, D); } + +void CodeGenModule::EmitOMPRequiresDecl(const OMPRequiresDecl *D) { + //Do nothing - here to avoid build errors +} |