[all-commits] [llvm/llvm-project] ed27d2: [flang][OpenMP][OpenACC] Support stop statement in...

PeixinQiao via All-commits all-commits at lists.llvm.org
Thu Jun 15 03:30:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed27d28f9a53d689c98a3bef26980e2858350548
      https://github.com/llvm/llvm-project/commit/ed27d28f9a53d689c98a3bef26980e2858350548
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2023-06-15 (Thu, 15 Jun 2023)

  Changed paths:
    M flang/include/flang/Lower/OpenMP.h
    M flang/lib/Lower/OpenMP.cpp
    M flang/lib/Lower/Runtime.cpp
    A flang/test/Lower/OpenACC/stop-stmt-in-region.f90
    A flang/test/Lower/OpenMP/stop-stmt-in-region.f90

  Log Message:
  -----------
  [flang][OpenMP][OpenACC] Support stop statement in OpenMP/OpenACC region

[flang][OpenMP][OpenACC] Support stop statement in OpenMP/OpenACC region

This supports lowering of stop statement in OpenMP/OpenACC region.
* OpenMP/OpenACC: Emit `fir.unreachable` only if the block is not
  terminated by any terminator. This avoids knocking off an existing
  OpenMP/OpenACC terminator.
* OpenMP: Emit the OpenMP terminator instead of `fir.unreachable` since
  OpenMP regions can only be terminated by OpenMP terminators. This is
  currently skipped for OpenACC since unstructured code is not yet
  handled specially in OpenACC lowering.

Fixes #60737
Fixes #61877

Co-authored-by: Kiran Chandramohan <kiranchandramohan at gmail.com>
Co-authored-by: Val Donaldson <vdonaldson at nvidia.com>

Reviewed By: vdonaldson, peixin

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




More information about the All-commits mailing list