[flang][lowering] Add support for lowering of the `merge` intrinsics
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 17 Mar 2022 16:58:40 +0000 (16:58 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Fri, 18 Mar 2022 10:09:40 +0000 (10:09 +0000)
commit4d2096482d55da4528e62bfe38e40826d192cf30
tree46caa2e0dce5fb376af10c9bb07243ede0b0ccef
parent33d020d010478e59e2cdc57300d4aae3fbac0611
[flang][lowering] Add support for lowering of the `merge` intrinsics

This patch adds support for lowering of the `merge` intrinsics from
Fortran to the FIR dialect of MLIR.

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

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

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

Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Mark Leair <leairmark@gmail.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/merge.f90 [new file with mode: 0644]