[OPENMP] Set '_OPENMP' macro to '201511' value to reflect support for

OpenMP 4.5.

According to OpenMP 4.5 the _OPENMP macro name is defined to have the decimal value yyyymm where yyyy and mm are the year and month designations of the version of the OpenMP API that the implementation supports. Clang supports OpenMP 4.5 so updated value of _OPENMP macro to 201511.

llvm-svn: 270822
This commit is contained in:
Alexey Bataev 2016-05-26 04:56:05 +00:00
parent 91e19a3de4
commit 3bfedcffe0
2 changed files with 2 additions and 2 deletions

View File

@ -928,7 +928,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
// macro name is defined to have the decimal value yyyymm where
// yyyy and mm are the year and the month designations of the
// version of the OpenMP API that the implementation support.
Builder.defineMacro("_OPENMP", "201307");
Builder.defineMacro("_OPENMP", "201511");
}
// CUDA device path compilaton

View File

@ -5,7 +5,7 @@
// -fopenmp option is specified
#ifndef _OPENMP
#error "No _OPENMP macro is defined with -fopenmp option"
#elsif _OPENMP != 201307
#elsif _OPENMP != 201511
#error "_OPENMP has incorrect value"
#endif //_OPENMP
#else