[Mlir-commits] [mlir] e540d5a - [MLIR][OpenMP] Change map_operands type to OpenMP_PointerLikeType for Target Data

Akash Banerjee llvmlistbot at llvm.org
Wed Mar 29 09:05:16 PDT 2023


Author: Akash Banerjee
Date: 2023-03-29T17:05:10+01:00
New Revision: e540d5a20afafb69aa12835900589849bd4ec5c6

URL: https://github.com/llvm/llvm-project/commit/e540d5a20afafb69aa12835900589849bd4ec5c6
DIFF: https://github.com/llvm/llvm-project/commit/e540d5a20afafb69aa12835900589849bd4ec5c6.diff

LOG: [MLIR][OpenMP] Change map_operands type to OpenMP_PointerLikeType for Target Data

This patches chagnes the type of map_operands to OpenMP_PointerLikeType for OMP Target Data directives.

Differential Revision: https://reviews.llvm.org/D147050

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
index 1de9c54df3d12..f79aa50328b9d 100644
--- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
@@ -906,7 +906,7 @@ def Target_DataOp: OpenMP_Op<"target_data", [AttrSizedOperandSegments]>{
                        Optional<AnyInteger>:$device,
                        Variadic<AnyType>:$use_device_ptr,
                        Variadic<AnyType>:$use_device_addr,
-                       Variadic<AnyType>:$map_operands,
+                       Variadic<OpenMP_PointerLikeType>:$map_operands,
                        I64ArrayAttr:$map_types);
 
   let regions = (region AnyRegion:$region);
@@ -956,7 +956,7 @@ def Target_EnterDataOp: OpenMP_Op<"target_enter_data",
   let arguments = (ins Optional<I1>:$if_expr,
                        Optional<AnyInteger>:$device,
                        UnitAttr:$nowait,
-                       Variadic<AnyType>:$map_operands,
+                       Variadic<OpenMP_PointerLikeType>:$map_operands,
                        I64ArrayAttr:$map_types);
 
   let assemblyFormat = [{
@@ -1003,7 +1003,7 @@ def Target_ExitDataOp: OpenMP_Op<"target_exit_data",
   let arguments = (ins Optional<I1>:$if_expr,
                        Optional<AnyInteger>:$device,
                        UnitAttr:$nowait,
-                       Variadic<AnyType>:$map_operands,
+                       Variadic<OpenMP_PointerLikeType>:$map_operands,
                        I64ArrayAttr:$map_types);
 
   let assemblyFormat = [{


        


More information about the Mlir-commits mailing list