[flang] Lower add, mul, div, and sub to HLFIR
authorJean Perier <jperier@nvidia.com>
Thu, 1 Dec 2022 16:39:36 +0000 (17:39 +0100)
committerJean Perier <jperier@nvidia.com>
Thu, 1 Dec 2022 16:39:53 +0000 (17:39 +0100)
commit440e9baa6238dc6a58b694dd99b4c649a1ae7bd9
treec998966ee74b405ffdfe963b5c2639287aec5c2a
parent1743052a1d8a3c595633f2857c46fa66aa0ff939
[flang] Lower add, mul, div, and sub to HLFIR

Only lower operations when the operands are scalar for now.

Differential Revision: https://reviews.llvm.org/D139108
flang/lib/Lower/ConvertExprToHLFIR.cpp
flang/test/Lower/HLFIR/binary-ops.f90 [new file with mode: 0644]