[Mlir-commits] [clang] [mlir] [OpenACC][CIR] Implement 'private' clause lowering. (PR #151360)

Erich Keane llvmlistbot at llvm.org
Thu Jul 31 06:32:42 PDT 2025


================
@@ -355,6 +356,110 @@ class OpenACCClauseCIREmitter final
     }
   }
 
+  template <typename RecipeTy>
+  RecipeTy getOrCreateRecipe(ASTContext &astCtx, const Expr *varRef,
+                             DeclContext *dc, QualType baseType,
+                             mlir::Value mainOp) {
+    mlir::ModuleOp mod =
+        builder.getBlock()->getParent()->getParentOfType<mlir::ModuleOp>();
----------------
erichkeane wrote:

`mlir::Block` doesn't seem to have `getParentOfType`?  I think that must be why this uses `getParent`.  OR am I missing something further?

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


More information about the Mlir-commits mailing list