[all-commits] [llvm/llvm-project] acd754: [Flang] Lower the FailImage Statement

kiranchandramohan via All-commits all-commits at lists.llvm.org
Wed Apr 27 05:25:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acd75440c67acc31d9a5b0afdd64b5700be8960e
      https://github.com/llvm/llvm-project/commit/acd75440c67acc31d9a5b0afdd64b5700be8960e
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/PFTBuilder.cpp
    A flang/test/Lower/fail_image.f90
    M flang/test/Lower/pre-fir-tree04.f90

  Log Message:
  -----------
  [Flang] Lower the FailImage Statement

Lowering of FailImage statement generates a runtime call and the
unreachable operation. The unreachable operation cannot terminate
a structured operation like the IF operation, hence  mark as
unstructured.

Note: This patch is part of upstreaming code from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project.

Reviewed By: clementval

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>




More information about the All-commits mailing list