[flang][lowering] Add support for lowering the `dot_product` intrinsic
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Tue, 15 Mar 2022 10:58:50 +0000 (10:58 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Tue, 15 Mar 2022 15:59:27 +0000 (15:59 +0000)
commit6714da0d14f130a799cf044ca6c5dd953a9c59ea
treede36fb76448d63a5a286e40192cdc3a93b0dece1
parent3a4229696df39665c260d0d94f10ef2ef23d3370
[flang][lowering] Add support for lowering the `dot_product` intrinsic

This patch adds support for lowering the `dot_product` intrinsic 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/D121684

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