[all-commits] [llvm/llvm-project] bafb2c: [clang][OpenMP] declare_target/local clause variab...

David Pagan via All-commits all-commits at lists.llvm.org
Tue Apr 7 13:54:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bafb2cbe22f4d6c466e6ad82e6fe5a94c4dcd497
      https://github.com/llvm/llvm-project/commit/bafb2cbe22f4d6c466e6ad82e6fe5a94c4dcd497
  Author: David Pagan <dave.pagan at amd.com>
  Date:   2026-04-07 (Tue, 07 Apr 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/OpenMP/declare_target_local_map_messages.cpp

  Log Message:
  -----------
  [clang][OpenMP] declare_target/local clause variable can't be in map clause (#190470)

In OpenMP 6.0, the 'local' clause was added to the declare_target
directive. Variables listed in the 'local' clause are considered to be
device-local. In addition, a new map clause restriction was added:
A device-local variable must not appear as a list item in a map clause.
See OpenMP 6.0 specification section 7.9.6, map Clause, Restrictions, p.
386.

Testing:
- New error messages test for device-local variables defined in
declare_target local clauses (device-local) used in map clauses.
  - ninja check-openmp



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