[all-commits] [llvm/llvm-project] 39f4ef: [fir] Add fir.select_case conversion

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Nov 11 06:01:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39f4ef81463d66779ea3430bd3a95284fe34b6bf
      https://github.com/llvm/llvm-project/commit/39f4ef81463d66779ea3430bd3a95284fe34b6bf
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2021-11-11 (Thu, 11 Nov 2021)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/test/Fir/convert-to-llvm-invalid.fir
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  -----------
  [fir] Add fir.select_case conversion

The `fir.select_case` operation is converted to a if-then-else ladder.

Conversion of `fir.select_case` operation with character is not
implemented yet.

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

Reviewed By: kiranchandramohan, mehdi_amini

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

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




More information about the All-commits mailing list