[flang] Lower where statement
authorValentin Clement <clementval@gmail.com>
Thu, 10 Mar 2022 17:43:40 +0000 (18:43 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 10 Mar 2022 17:44:23 +0000 (18:44 +0100)
commit7a6a1655d83b3ff79d120e399d8b9cc7ad2b143c
tree94449f9ee62006f6aafe743002e250a0902fd65a
parent13d330717666646443946e13df90c84a44ab4722
[flang] Lower where statement

This patch lowers where statement to FIR.
The where statement is lowered to a conbination of
loops and if conditions.

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

Reviewed By: PeteSteinfeld

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

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/include/flang/Lower/ConvertExpr.h
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/where.f90 [new file with mode: 0644]