[all-commits] [llvm/llvm-project] aab426: [flang] Lower basic STOP statement

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Feb 1 11:55:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aab4263ad66c99da15cb9bda6aec8269d159b113
      https://github.com/llvm/llvm-project/commit/aab4263ad66c99da15cb9bda6aec8269d159b113
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/CMakeLists.txt
    A flang/lib/Lower/Runtime.cpp
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    A flang/test/Lower/stop-statement.f90
    M flang/unittests/Optimizer/Builder/DoLoopHelperTest.cpp
    M flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp

  Log Message:
  -----------
  [flang] Lower basic STOP statement

This patch lowers STOP statement without arguments
and ERROR STOP. STOP statement with arguments lowering will
come in later patches ince it requires some expression lowering
to be added.
STOP statement is lowered to a runtime call.

Also makes sure we are creating a constant in the MLIR arith constant.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: kiranchandramohan, schweitz

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

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




More information about the All-commits mailing list