[flang-commits] [flang] [llvm] [mlir] [MLIR][OpenMP] Lowering nontemporal clause to LLVM IR for SIMD directive (PR #118751)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Apr 7 03:13:02 PDT 2025
================
@@ -81,6 +81,13 @@ def DoConcurrentConversionPass : Pass<"omp-do-concurrent-conversion", "mlir::fun
];
}
+def LowerNontemporalPass : Pass<"lower-nontemporal", "mlir::func::FuncOp"> {
----------------
tblah wrote:
Why not run this on `omp::SimdOp`? Running it on functions is wasteful because many functions will not contain a simd op and runs the risk of missing any simd ops which are not nested inside of functions (I can't see how that would happen currently but we have had problems before lowering non-function (but function-like) operations such as `omp.declare_reduction` because subsequent passes incorrectly assumed all operations were nested inside of functions.
https://github.com/llvm/llvm-project/pull/118751
More information about the flang-commits
mailing list