[all-commits] [llvm/llvm-project] 71d763: [OpenMP] [Semantics] [Flang] Adding more semantic ...

raghavendhra via All-commits all-commits at lists.llvm.org
Thu Aug 3 22:19:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71d763b88d6107ab6d9d47ed6382c4fefa514cc4
      https://github.com/llvm/llvm-project/commit/71d763b88d6107ab6d9d47ed6382c4fefa514cc4
  Author: Raghu Maddhipatla <Raghu.Maddhipatla at amd.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Semantics/OpenMP/use_device_addr1.f90
    A flang/test/Semantics/OpenMP/use_device_ptr1.f90

  Log Message:
  -----------
  [OpenMP] [Semantics] [Flang] Adding more semantic checks for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses.

The following restrictions for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses on OMP TARGET DATA directive are implemented in this patch.

  - A list item may not be specified more than once in use_device_ptr clauses that appear on the directive.
  - A list item may not be specified more than once in use_device_addr clauses that appear on the directive.
  - A list item may not be specified in both a use_device_addr clause and a use_device_ptr clause on the directive.
  - A list item that appears in a use_device_ptr or use_device_addr clause must not be a structure element.
  - A list item that appears in a use_device_ptr must be of type C_PTR.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list