[flang-commits] [flang] [OpenMP][Flang] Add "IsolatedFromAbove" trait to omp.target (PR #67164)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Mon Oct 16 08:54:29 PDT 2023


================
@@ -1144,14 +1144,13 @@ def DataBoundsOp : OpenMP_Op<"bounds",
 }
 
 def MapInfoOp : OpenMP_Op<"map_info", [AttrSizedOperandSegments]> {
-  let arguments = (ins OpenMP_PointerLikeType:$var_ptr,
-                       Optional<OpenMP_PointerLikeType>:$var_ptr_ptr,
+  let arguments = (ins AnyTypeOf<[IntLikeType, Index, OpenMP_PointerLikeType]>:$var_ptr,
----------------
razvanlupusoru wrote:

I agree with Valentin about this particular change being wrong.
To me, it seems OK to have a different constraint for variables mapped by value - with a different operand. And then allowing only `varPtr` or `var`.

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


More information about the flang-commits mailing list