[flang-commits] [flang] [flang][OpenMP] Lower `target .. private(..)` to `omp.private` ops (PR #94195)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Jun 7 00:22:22 PDT 2024


================
@@ -456,6 +456,33 @@ markDeclareTarget(mlir::Operation *op, lower::AbstractConverter &converter,
   declareTargetOp.setDeclareTarget(deviceType, captureClause);
 }
 
+/// For an operation that takes `omp.private` values as region args, this util
+/// merges the private vars info into the region arguments list.
+///
+/// \tparam OMPOP  - the OpenMP op that takes `omp.private` inputs.
+/// \tparam InfoTy - the type of private info we want to merge; e.g. mlir::Type
+/// or mlir::Location fields of the private var list.
+///
+/// \param [in] op                 - the op accpeting `omp.private` inputs.
----------------
kiranchandramohan wrote:

```suggestion
/// \param [in] op                 - the op accepting `omp.private` inputs.
```

https://github.com/llvm/llvm-project/pull/94195


More information about the flang-commits mailing list