[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Fortran automap handling (PR #162501)

via flang-commits flang-commits at lists.llvm.org
Tue Jun 2 00:09:49 PDT 2026


================
@@ -932,6 +932,34 @@ class MapInfoFinalizationPass
     return false;
   }
 
+  static bool isAttachMap(mlir::omp::MapInfoOp op) {
+    return (op.getMapType() & mlir::omp::ClauseMapFlags::attach) ==
----------------
agozillon wrote:

Nit, can use bitEnumContainsAll(op.getMapType(), mlir::omp::ClauseMapFlags::attach); instead of defining a new function

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


More information about the flang-commits mailing list