[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:17:40 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,
----------------
erichkeane wrote:

Ah!  Because it is now stored in the `allocaDecl` as `getInit`.  I've returned to doing that after thinking I couldn't, so I am going to remove those after I do `firstprivate`, since it depends on it existing still.

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


More information about the cfe-commits mailing list