[flang][openacc] Initial reduction clause lowering
authorValentin Clement <clementval@gmail.com>
Thu, 1 Jun 2023 13:14:42 +0000 (22:14 +0900)
committerValentin Clement <clementval@gmail.com>
Thu, 1 Jun 2023 13:15:28 +0000 (22:15 +0900)
commit59ceb7dd9a02f9c6a1342b3c282d1ddfa028ce34
treedeba3be3c2b8b3346309b9144797f5a9154895d3
parent2ccb07452d8e1e62c545db2f6faad2bd794572be
[flang][openacc] Initial reduction clause lowering

Add initial support to lower reduction clause to its representation in MLIR.

This patch adds support for addition of integer and real scalar types. Other
operators and types will be added with follow up patches.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D151564
flang/include/flang/Lower/OpenACC.h
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-reduction.f90 [new file with mode: 0644]
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp