[all-commits] [llvm/llvm-project] 32e082: [flang][CodeGen] Transform `fir.unreachable` to `l...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Tue Nov 2 11:23:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32e08248aa113bf3a5008d580753876fe3bcf021
      https://github.com/llvm/llvm-project/commit/32e08248aa113bf3a5008d580753876fe3bcf021
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  -----------
  [flang][CodeGen] Transform `fir.unreachable` to `llvm.unreachable`

This patch extends the `FIRToLLVMLowering` pass in Flang by adding a
hook to transform `fir.unreachable` to `llvm.unreachable`.

This is part of the upstreaming effort from the `fir-dev` branch in [1].

[1] https://github.com/flang-compiler/f18-llvm-project

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

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




More information about the All-commits mailing list