[all-commits] [llvm/llvm-project] a7ac12: [flang] Lower logical comparison and logical opera...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Feb 25 12:06:01 PST 2022


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

  Changed paths:
    M flang/lib/Lower/ConvertExpr.cpp
    A flang/test/Lower/logical-operations.f90

  Log Message:
  -----------
  [flang] Lower logical comparison and logical operations

This handles the lowering of the logical comparison
to `arith.cmpi` operation. The logical operations `.OR.`, `.AND.`
and `.NOT.` are lowered to `arith.ori`, `arith.andi` and `arith.xori`

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

Depends on D120559

Reviewed By: schweitz, rovka

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

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




More information about the All-commits mailing list