================ @@ -146,13 +146,24 @@ def PrivateClauseOp : OpenMP_Op<"private", [IsolatedFromAbove, RecipeInterface]> return region.empty() ? nullptr : region.getArgument(0); } + /// Returns true if the init region might read from the mold argument + bool initReadsFromMold() { + BlockArgument moldArg = getInitMoldArg(); + return moldArg ? !moldArg.use_empty() : false; ---------------- skatrak wrote:
Nit: I think it's a bit simpler this way, but feel free to ignore. ```suggestion return moldArg && !moldArg.use_empty(); ``` https://github.com/llvm/llvm-project/pull/125307 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits