[llvm-branch-commits] [OpenMP] Add OpenMP 6.0 taskgraph parsing/trivial semantics (PR #194050)
Amit Tiwari via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat May 2 04:35:37 PDT 2026
================
@@ -2218,6 +2240,33 @@ void CGOpenMPRuntime::emitTaskyieldCall(CodeGenFunction &CGF,
Region->emitUntiedSwitch(CGF);
}
+void CGOpenMPRuntime::emitTaskgraphCall(CodeGenFunction &CGF,
+ SourceLocation Loc,
+ const OMPExecutableDirective &D,
+ const Expr *IfCond) {
+ if (!CGF.HaveInsertPoint())
+ return;
+
+ CodeGenFunction OutlinedCGF(CGM, /*suppressNewContext=*/true);
+
+ const auto *CS = cast<CapturedStmt>(D.getAssociatedStmt());
+ LValue CapStruct = CGF.InitCapturedStruct(*CS);
+
+ llvm::Function *FnT = OutlinedCGF.GenerateCapturedStmtFunction(*CS);
----------------
amitamd7 wrote:
`FnT` sounds like function target. `OutlinedFn` would be a better convention.
https://github.com/llvm/llvm-project/pull/194050
More information about the llvm-branch-commits
mailing list