[PATCH] D81098: [OpenMP] Upgrade default version of OpenMP to 5.0

Saiyedul Islam via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 08:12:22 PDT 2020


saiislam created this revision.
saiislam added reviewers: gregrodgers, jdoerfert.
Herald added subscribers: cfe-commits, sstefan1, guansong, yaxunl.
Herald added a project: clang.

When -fopenmp option is specified then version 5.0 will be set as
default.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81098

Files:
  clang/lib/Frontend/CompilerInvocation.cpp


Index: clang/lib/Frontend/CompilerInvocation.cpp
===================================================================
--- clang/lib/Frontend/CompilerInvocation.cpp
+++ clang/lib/Frontend/CompilerInvocation.cpp
@@ -3060,8 +3060,8 @@
     }
   }
 
-  // Check if -fopenmp is specified and set default version to 4.5.
-  Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 45 : 0;
+  // Check if -fopenmp is specified and set default version to 5.0.
+  Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 50 : 0;
   // Check if -fopenmp-simd is specified.
   bool IsSimdSpecified =
       Args.hasFlag(options::OPT_fopenmp_simd, options::OPT_fno_openmp_simd,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81098.268201.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200603/327191ac/attachment-0001.bin>


More information about the cfe-commits mailing list