[flang-commits] [flang] [flang][OpenMP] Support user-defined declare reduction with derived types (PR #184897)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Mar 26 06:33:54 PDT 2026
================
@@ -3860,13 +3852,55 @@ static ReductionProcessor::GenCombinerCBTy processReductionCombiner(
symTable.addVariableDefinition(*object.sym(), declareOp);
}
+ // For derived types with a typed assignment available, use
+ // hlfir::AssignOp or user-defined assignment directly instead of
+ // trying to convert the expression to a value (which doesn't work
+ // for record types). Only take this path when the assignment RHS
----------------
tblah wrote:
Okay this looks good to me then.
https://github.com/llvm/llvm-project/pull/184897
More information about the flang-commits
mailing list