[flang-commits] [flang] [flang][do concurrent] Re-model `reduce` to match reductions are modelled in OpenMP and OpenACC (PR #145837)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jun 26 07:58:34 PDT 2025
================
@@ -3662,6 +3662,103 @@ def fir_LocalitySpecifierOp : fir_Op<"local", [IsolatedFromAbove]> {
let hasRegionVerifier = 1;
}
+def fir_DeclareReductionOp : fir_Op<"declare_reduction", [IsolatedFromAbove,
+ Symbol]> {
+ let summary = "declares a reduction kind";
+ let description = [{
+ Note: this operation is adapted from omp::DeclareReductionOp. There is a lot
+ duplication at the moment. TODO Combined both ops into one. See:
----------------
tblah wrote:
nit
```suggestion
duplication at the moment. TODO Combine both ops into one. See:
```
https://github.com/llvm/llvm-project/pull/145837
More information about the flang-commits
mailing list