[flang-commits] [flang] 17c06ce - [OpenMP] Try to fix Flang after new clause was added

Johannes Doerfert via flang-commits flang-commits at lists.llvm.org
Sat Jan 21 20:40:38 PST 2023


Author: Johannes Doerfert
Date: 2023-01-21T20:40:09-08:00
New Revision: 17c06ce82985ea587e9885688f4568660031d13b

URL: https://github.com/llvm/llvm-project/commit/17c06ce82985ea587e9885688f4568660031d13b
DIFF: https://github.com/llvm/llvm-project/commit/17c06ce82985ea587e9885688f4568660031d13b.diff

LOG: [OpenMP] Try to fix Flang after new clause was added

Added: 
    

Modified: 
    flang/lib/Semantics/check-omp-structure.cpp
    llvm/include/llvm/Frontend/OpenMP/OMP.td

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index ada5d9257fb5a..98b367d686f11 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -1885,6 +1885,7 @@ CHECK_REQ_SCALAR_INT_CLAUSE(Grainsize, OMPC_grainsize)
 CHECK_REQ_SCALAR_INT_CLAUSE(NumTasks, OMPC_num_tasks)
 CHECK_REQ_SCALAR_INT_CLAUSE(NumTeams, OMPC_num_teams)
 CHECK_REQ_SCALAR_INT_CLAUSE(NumThreads, OMPC_num_threads)
+CHECK_REQ_SCALAR_INT_CLAUSE(OmpxDynCgroupMem, OMPC_ompx_dyn_cgroup_mem)
 CHECK_REQ_SCALAR_INT_CLAUSE(Priority, OMPC_priority)
 CHECK_REQ_SCALAR_INT_CLAUSE(ThreadLimit, OMPC_thread_limit)
 

diff  --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td
index 7b55acda4b5f8..9f732e8c61341 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -438,6 +438,7 @@ def OMPC_Bind : Clause<"bind"> {
 
 def OMPC_OMPX_DynCGroupMem : Clause<"ompx_dyn_cgroup_mem"> {
   let clangClass = "OMPXDynCGroupMemClause";
+  let flangClass = "ScalarIntExpr";
 }
 
 //===----------------------------------------------------------------------===//


        


More information about the flang-commits mailing list