[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP Declare Mapper directive (PR #117046)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 7 06:58:33 PST 2025
================
@@ -484,7 +485,10 @@ class MapInfoFinalizationPass
// ourselves to the possibility of race conditions while this pass
// undergoes frequent re-iteration for the near future. So we loop
// over function in the module and then map.info inside of those.
- getOperation()->walk([&](mlir::func::FuncOp func) {
+ getOperation()->walk([&](mlir::Operation *func) {
+ if (!(mlir::isa<mlir::func::FuncOp>(func) ||
+ mlir::isa<mlir::omp::DeclareMapperOp>(func)))
----------------
skatrak wrote:
```suggestion
if (!mlir::isa<mlir::func::FuncOp, mlir::omp::DeclareMapperOp>(func)))
```
https://github.com/llvm/llvm-project/pull/117046
More information about the llvm-branch-commits
mailing list