[all-commits] [llvm/llvm-project] 0870a4: [OpenMP] Add flag for disabling thread state in ru...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Feb 18 05:35:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0870a4f59aef21bf7707b00ebd4dcad7ce7ef807
      https://github.com/llvm/llvm-project/commit/0870a4f59aef21bf7707b00ebd4dcad7ce7ef807
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/OpenMP/target_globals_codegen.cpp
    M openmp/libomptarget/DeviceRTL/include/Configuration.h
    M openmp/libomptarget/DeviceRTL/src/Configuration.cpp
    M openmp/libomptarget/DeviceRTL/src/State.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list