[all-commits] [llvm/llvm-project] 52c623: [OpenMP] Remove "alternativeName" from Clause and ...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Fri May 2 11:02:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52c62364e76be0c66ba69764a80999aa651f6b59
      https://github.com/llvm/llvm-project/commit/52c62364e76be0c66ba69764a80999aa651f6b59
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-05-02 (Fri, 02 May 2025)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    M llvm/include/llvm/Frontend/Directive/DirectiveBase.td
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    M llvm/include/llvm/TableGen/DirectiveEmitter.h
    M llvm/utils/TableGen/Basic/DirectiveEmitter.cpp

  Log Message:
  -----------
  [OpenMP] Remove "alternativeName" from Clause and Directive classes (#138179)

The "alternativeName" was introduced ~5 years ago in D82405, and at the
moment it has only one use, the one that the original change introduced.

OpenMP 6.0 spec has introduced different spellings of some directives,
but the "alternativeName" is not an adequate mechanism to implement it.

For those reasons remove the "alternativeName" member from both Clause
and Directive in DirectiveBase.td.

Since the alternativeName text appeared in a number of clang OpenMP
tests, implement `getOpenMPClauseNameForDiag` in SemaOpenMP.cpp to
preserve the text of the diagnostics.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list