[flang] Lower F08 bitwise-reduction intrinsics (IALL, IANY, IPARITY)
authorTarun Prabhu <tarun@lanl.gov>
Mon, 26 Sep 2022 16:14:17 +0000 (10:14 -0600)
committerTarun Prabhu <tarun@lanl.gov>
Mon, 26 Sep 2022 16:28:46 +0000 (10:28 -0600)
commitebfe8a741190070d7ed926bd20c97cd3690de84d
tree3f9b18b3696a3d079854a6fd952d65da575e794a
parent9d259916e1ae69f83762b1801bfb0db1faf20262
[flang] Lower F08 bitwise-reduction intrinsics (IALL, IANY, IPARITY)

This calls the corresponding runtime functions when appropriate. The implementation
follows the pattern of the SUM and PRODUCT intrinsics.

Differential Revision: https://reviews.llvm.org/D129616
flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
flang/include/flang/Optimizer/Builder/Runtime/Reduction.h
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Builder/Runtime/Reduction.cpp
flang/test/Lower/Intrinsics/iall.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/iany.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/iparity.f90 [new file with mode: 0644]