[PATCH] D120560: [flang] Lower logical comparison and logical operations

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 25 05:38:40 PST 2022


clementval created this revision.
clementval added reviewers: jeanPerier, PeteSteinfeld, schweitz, svedanayagam, klausler.
Herald added a subscriber: mehdi_amini.
Herald added a project: Flang.
clementval requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

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 <https://reviews.llvm.org/D120559>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120560

Files:
  flang/lib/Lower/ConvertExpr.cpp
  flang/test/Lower/logical-operations.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120560.411392.patch
Type: text/x-patch
Size: 4448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220225/fef00664/attachment.bin>


More information about the llvm-commits mailing list