[flang-commits] [flang] [mlir] [Flang] [OpenMP] [MLIR] [Lowering] Add lowering support for IS_DEVICE_PTR and HAS_DEVICE_ADDR clauses on OMP TARGET directive. (PR #88206)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed Apr 10 02:25:35 PDT 2024


================
@@ -189,6 +189,10 @@ struct SimdlenClauseOps {
   IntegerAttr simdlenAttr;
 };
 
+struct TargetDeviceClauseOps {
+  llvm::SmallVector<Value> isDevicePtrVars, hasDeviceAddrVars;
+};
----------------
skatrak wrote:

This should be split into clause-specific structures, so `TargetDeviceClauseOps` should be replaced by `IsDevicePtrClauseOps` and `HasDeviceAddrClauseOps`, each of these holding the corresponding vector of values.

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


More information about the flang-commits mailing list