[OpenMP] Add ident_t flags for compiler OpenMP version
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Mon, 2 Nov 2020 18:28:13 +0000 (12:28 -0600)
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Thu, 5 Nov 2020 17:14:25 +0000 (11:14 -0600)
commit5e34877480dfcb8c3cd6f95ac0a46aca417b19bc
tree47c72a31e091d8e16133da684a64a27e1ef8b6f5
parentbf04e34383b06f1b71819de7f34a1a1de2cdb6a4
[OpenMP] Add ident_t flags for compiler OpenMP version

This patch adds the mask and ident_t function to get the
openmp version. It also adds logic to force monotonic:dynamic
behavior when OpenMP version less than 5.0.

The OpenMP version is stored in the format:
major*10+minor e.g., OpenMP 5.0 = 50

Differential Revision: https://reviews.llvm.org/D90632
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_dispatch.cpp