[flang-commits] [flang] [mlir] [flang][OpenMP] Lower target in_reduction for host fallback (PR #199967)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Wed Jun 24 05:15:34 PDT 2026
================
@@ -1197,6 +1199,42 @@ static ParseResult parseClauseWithRegionArgs(
return success();
}
+/// Parses an `in_reduction` clause for an operation that does not give its
+/// list items entry block arguments (e.g. `omp.target`). The expected format is
+/// a comma-separated list of `[byref] @sym %var` followed by `: types`.
+static ParseResult parseInReductionClause(
----------------
skatrak wrote:
Nit: Instead of putting this new parser/printer pair in the "Parsers/Printers for operations including clauses that define entry block arguments" sections of the file, create a new section to keep both functions together, as it's done for other custom clause printers/parsers.
```c++
//===----------------------------------------------------------------------===//
// Parser and printer for in_reduction Clause
//===----------------------------------------------------------------------===//
static ParseResult parseInReductionClause...
```
https://github.com/llvm/llvm-project/pull/199967
More information about the flang-commits
mailing list