[Mlir-commits] [flang] [mlir] [mlir][OpenMP] Add memory effects of omp.single (PR #237929)

Tom Eccles llvmlistbot at llvm.org
Tue Nov 3 08:54:51 PST 2026


================
@@ -1858,6 +1858,35 @@ struct OpWithBodyGenInfo {
   int collapseValue = 0;
 };
 
+static bool canAssumeBoundedRecipeEffects(const mlir::Value &variable) {
+  mlir::Type type = variable.getType();
+  if (auto refType = mlir::dyn_cast<fir::ReferenceType>(type))
+    if (mlir::isa<fir::BoxCharType, fir::BoxType>(refType.getEleTy()))
----------------
tblah wrote:

```suggestion
    if (mlir::isa<fir::BoxCharType, fir::BaseBoxType>(refType.getEleTy()))
```
This allows it to also match fir.class

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


More information about the Mlir-commits mailing list