[all-commits] [llvm/llvm-project] d9ff67: [flang][OpenMP] Parser support for Target directiv...

NimishMishra via All-commits all-commits at lists.llvm.org
Sun Aug 21 09:55:45 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9ff670330a80f2d597822bfd574842ad8fc55b3
  Author: Sesha Kalyur <SeshaP.Kalyur at amd.com>
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    A flang/test/Parser/omp_target_device_parse.f90
    A flang/test/Parser/omp_target_device_unparse.f90
    M flang/test/Semantics/OpenMP/omp-device-constructs.f90
    M llvm/include/llvm/Frontend/OpenMP/OMP.td

  Log Message:
  [flang][OpenMP] Parser support for Target directive and Device clause

This patch adds support for the device clause on `Target` directive.
Device clause was added in OpenMP specification version 4.5 to
create a device data environment for the extent of a region. On
target construct, the device expression be either be `ancestor`
(taking after the parent) or assign a new `device_num`.

Reviewed By: kiranchandramohan

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

More information about the All-commits mailing list