[all-commits] [llvm/llvm-project] ae9c07: [OpenMP][Clang] Allow ancestor device modifier onl...

Saiyedul Islam via All-commits all-commits at lists.llvm.org
Fri Feb 4 04:17:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae9c0740648fd8f7010c895ddcf78380da94dd57
      https://github.com/llvm/llvm-project/commit/ae9c0740648fd8f7010c895ddcf78380da94dd57
  Author: Saiyedul Islam <Saiyedul.Islam at amd.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

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

  Log Message:
  -----------
  [OpenMP][Clang] Allow ancestor device modifier only with reverse offloading

OpenMP Spec 5.0 [2.12.5, Restrictions]: If a device clause in which the
ancestor device-modifier appears is present on the target construct,
then a requires directive with the reverse_offload clause must be
specified.

Reviewed By: ABataev

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




More information about the All-commits mailing list