[flang-commits] [flang] [mlir] [acc] Add firstprivate/private to `acc.kernel` (PR #170387)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Tue Dec 2 15:03:43 PST 2025
================
@@ -2119,10 +2125,12 @@ def OpenACC_KernelsOp : OpenACC_Op<"kernels",
`dataOperands` `(` $dataClauseOperands `:` type($dataClauseOperands) `)`
| `async` `` custom<DeviceTypeOperandsWithKeywordOnly>($asyncOperands,
type($asyncOperands), $asyncOperandsDeviceType, $asyncOnly)
+ | `firstprivate` `(` $firstprivateOperands `:` type($firstprivateOperands) `)`
| `num_gangs` `(` custom<NumGangs>($numGangs,
type($numGangs), $numGangsDeviceType, $numGangsSegments) `)`
| `num_workers` `(` custom<DeviceTypeOperands>($numWorkers,
type($numWorkers), $numWorkersDeviceType) `)`
+ | `private` `(` $privateOperands `:` type($privateOperands) `)`
----------------
razvanlupusoru wrote:
Should reduction also be added for completeness/consistency?
https://github.com/llvm/llvm-project/pull/170387
More information about the flang-commits
mailing list