[llvm-branch-commits] [flang] [llvm] [mlir] [OpenMP][MLIR] Modify OpenMP Dialect lowering to support attach mapping (PR #179023)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Apr 6 08:28:47 PDT 2026


================
@@ -4516,40 +4521,40 @@ convertClauseMapFlags(omp::ClauseMapFlags mlirFlags) {
   llvm::omp::OpenMPOffloadMappingFlags mapType =
       llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_NONE;
 
-  if (mapTypeToBool(omp::ClauseMapFlags::to))
+  if (checkHasClauseMapFlag(mlirFlags, omp::ClauseMapFlags::to))
----------------
skatrak wrote:

Nit: We can use the auto-generated `bitEnumContainsAll()` function instead of creating `checkHasClauseMapFlag`.
```suggestion
  if (bitEnumContainsAll(mlirFlags, omp::ClauseMapFlags::to))
```

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


More information about the llvm-branch-commits mailing list