[clang] [OpenACC][CIR] Finish 'private' recipe lowering by doing 'init' (PR #161540)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 1 11:15:54 PDT 2025


================
@@ -400,6 +400,33 @@ void OpenACCRecipeBuilderBase::createRecipeDestroySection(
 
   mlir::acc::YieldOp::create(builder, locEnd);
 }
+void OpenACCRecipeBuilderBase::makeBoundsInit(
+    mlir::Value alloca, mlir::Location loc, mlir::Block *block,
+    const VarDecl *allocaDecl, QualType origType, const Expr *initExpr,
+    bool isInitSection) {
+  mlir::OpBuilder::InsertionGuard guardCase(builder);
+  builder.setInsertionPointToEnd(block);
+  CIRGenFunction::LexicalScope ls(cgf, loc, block);
+
+  CIRGenFunction::AutoVarEmission tempDeclEmission{*allocaDecl};
+  tempDeclEmission.EmittedAsOffload = true;
----------------
erichkeane wrote:

Looks like it!  I've written down a note so that I'll come back in a future patch to fix this.

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


More information about the cfe-commits mailing list