[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:38 PDT 2026
================
@@ -966,6 +966,21 @@ OMPTaskwaitDirective *OMPTaskwaitDirective::CreateEmpty(const ASTContext &C,
return createEmptyDirective<OMPTaskwaitDirective>(C, NumClauses);
}
+OMPTaskgraphDirective *OMPTaskgraphDirective::Create(
+ const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
+ ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt) {
+ auto *Dir = createDirective<OMPTaskgraphDirective>(
+ C, Clauses, AssociatedStmt, /*NumChildren=*/1, StartLoc, EndLoc);
----------------
amitamd7 wrote:
Unlike `OMPTaskgroupDirective`, this doesn't include children. `NumChildren==1` --> memory inefficient.
https://github.com/llvm/llvm-project/pull/194050
More information about the llvm-branch-commits
mailing list