[flang][openacc] Add lowering support for 1d array reduction for add/mul operator
authorValentin Clement <clementval@gmail.com>
Thu, 22 Jun 2023 20:09:15 +0000 (13:09 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 22 Jun 2023 20:09:48 +0000 (13:09 -0700)
commitff86ce65f690f3680e2e21162524ba2c1894a18e
tree462b83c7b18868277c4765cdb5b034a5e3861591
parent982a87ab74d8d050ae56164fcead7cf19038b077
[flang][openacc] Add lowering support for 1d array reduction for add/mul operator

Lower 1d array reduction for add and mul operator. Multi-dimensional arrays and
other operator will follow.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D153448
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-reduction.f90
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
mlir/test/Dialect/OpenACC/invalid.mlir