[all-commits] [llvm/llvm-project] 55916d: [clang][HIP][OpenMP] Add warning if mixed HIP / Op...

Michael Halkenhäuser via All-commits all-commits at lists.llvm.org
Wed Mar 29 02:46:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55916de2d37742fe334c0726ccf9e584bdaed09f
      https://github.com/llvm/llvm-project/commit/55916de2d37742fe334c0726ccf9e584bdaed09f
  Author: Michael Halkenhaeuser <MichaelGerald.Halkenhauser at amd.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/SemaOpenMP/hip-omp-mix.cpp

  Log Message:
  -----------
  [clang][HIP][OpenMP] Add warning if mixed HIP / OpenMP offloading

Adds a warning, issued by the clang semantic analysis, if HIP and OpenMP target offloading is requested concurrently.
That is, if HIP language mode is active but OpenMP target directives are encountered.
Previously, a user might not have been aware that target directives are ignored in such a case.

Generation of this warning is (lit-)tested via "make check-clang-semaopenmp".
The warning can be ignored via "-Wno-hip-omp-target-directives".

Differential Revision: https://reviews.llvm.org/D145591




More information about the All-commits mailing list