[OpenMP] Add flag for disabling thread state in runtime
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 18 Feb 2022 00:09:46 +0000 (19:09 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 18 Feb 2022 13:35:05 +0000 (08:35 -0500)
commit0870a4f59aef21bf7707b00ebd4dcad7ce7ef807
tree3e73ebb721e6e5eefe8b9a791b670ee52e53af75
parent03ec026eac5c604c77d3185ed4a120b4cd4a27bb
[OpenMP] Add flag for disabling thread state in runtime

The runtime uses thread state values to indicate when we use an ICV or
are in nested parallelism. This is done for OpenMP correctness, but it
not needed in the majority of cases. The new flag added is
`-fopenmp-assume-no-thread-state`.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D120106
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/OpenMP/target_globals_codegen.cpp
openmp/libomptarget/DeviceRTL/include/Configuration.h
openmp/libomptarget/DeviceRTL/src/Configuration.cpp
openmp/libomptarget/DeviceRTL/src/State.cpp