Lines Matching refs:AStmt
3382 Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) { in ActOnOpenMPExecutableDirective() argument
3392 if (AStmt) { in ActOnOpenMPExecutableDirective()
3393 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPExecutableDirective()
3396 DSAAttrChecker DSAChecker(DSAStack, *this, cast<CapturedStmt>(AStmt)); in ActOnOpenMPExecutableDirective()
3397 DSAChecker.Visit(cast<CapturedStmt>(AStmt)->getCapturedStmt()); in ActOnOpenMPExecutableDirective()
3418 Res = ActOnOpenMPParallelDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3423 Res = ActOnOpenMPSimdDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc, in ActOnOpenMPExecutableDirective()
3427 Res = ActOnOpenMPForDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc, in ActOnOpenMPExecutableDirective()
3431 Res = ActOnOpenMPForSimdDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3435 Res = ActOnOpenMPSectionsDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3441 Res = ActOnOpenMPSectionDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
3444 Res = ActOnOpenMPSingleDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3450 Res = ActOnOpenMPMasterDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
3453 Res = ActOnOpenMPCriticalDirective(DirName, ClausesWithImplicit, AStmt, in ActOnOpenMPExecutableDirective()
3457 Res = ActOnOpenMPParallelForDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3463 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3467 Res = ActOnOpenMPParallelSectionsDirective(ClausesWithImplicit, AStmt, in ActOnOpenMPExecutableDirective()
3473 ActOnOpenMPTaskDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
3479 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
3486 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
3493 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
3500 Res = ActOnOpenMPTaskgroupDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
3503 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
3508 Res = ActOnOpenMPOrderedDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3512 Res = ActOnOpenMPAtomicDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3517 ActOnOpenMPTeamsDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
3520 Res = ActOnOpenMPTargetDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3525 Res = ActOnOpenMPTargetParallelDirective(ClausesWithImplicit, AStmt, in ActOnOpenMPExecutableDirective()
3532 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3539 assert(AStmt == nullptr && "No associated statement allowed for 'omp " in ActOnOpenMPExecutableDirective()
3544 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
3551 Res = ActOnOpenMPTargetDataDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3566 Res = ActOnOpenMPTaskLoopDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3571 Res = ActOnOpenMPTaskLoopSimdDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3576 Res = ActOnOpenMPDistributeDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
3580 assert(!AStmt && "Statement is not allowed for target update"); in ActOnOpenMPExecutableDirective()
3587 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3592 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3597 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3601 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
3877 Stmt *AStmt, in ActOnOpenMPParallelDirective() argument
3880 if (!AStmt) in ActOnOpenMPParallelDirective()
3883 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelDirective()
3893 return OMPParallelDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPParallelDirective()
4932 Expr *OrderedLoopCountExpr, Stmt *AStmt, Sema &SemaRef, in CheckOpenMPLoop() argument
4963 Stmt *CurStmt = AStmt->IgnoreContainers(/* IgnoreCaptured */ true); in CheckOpenMPLoop()
5163 auto *CD = cast<CapturedStmt>(AStmt)->getCapturedDecl(); in CheckOpenMPLoop()
5454 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPSimdDirective() argument
5457 if (!AStmt) in ActOnOpenMPSimdDirective()
5460 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSimdDirective()
5466 AStmt, *this, *DSAStack, VarsWithImplicitDSA, B); in ActOnOpenMPSimdDirective()
5504 Clauses, AStmt, B); in ActOnOpenMPSimdDirective()
5508 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPForDirective() argument
5511 if (!AStmt) in ActOnOpenMPForDirective()
5514 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForDirective()
5520 AStmt, *this, *DSAStack, VarsWithImplicitDSA, B); in ActOnOpenMPForDirective()
5540 Clauses, AStmt, B, DSAStack->isCancelRegion()); in ActOnOpenMPForDirective()
5544 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPForSimdDirective() argument
5547 if (!AStmt) in ActOnOpenMPForSimdDirective()
5550 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForSimdDirective()
5556 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPForSimdDirective()
5595 Clauses, AStmt, B); in ActOnOpenMPForSimdDirective()
5599 Stmt *AStmt, in ActOnOpenMPSectionsDirective() argument
5602 if (!AStmt) in ActOnOpenMPSectionsDirective()
5605 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSectionsDirective()
5606 auto BaseStmt = AStmt; in ActOnOpenMPSectionsDirective()
5626 Diag(AStmt->getLocStart(), diag::err_omp_sections_not_compound_stmt); in ActOnOpenMPSectionsDirective()
5632 return OMPSectionsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPSectionsDirective()
5636 StmtResult Sema::ActOnOpenMPSectionDirective(Stmt *AStmt, in ActOnOpenMPSectionDirective() argument
5639 if (!AStmt) in ActOnOpenMPSectionDirective()
5642 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSectionDirective()
5647 return OMPSectionDirective::Create(Context, StartLoc, EndLoc, AStmt, in ActOnOpenMPSectionDirective()
5652 Stmt *AStmt, in ActOnOpenMPSingleDirective() argument
5655 if (!AStmt) in ActOnOpenMPSingleDirective()
5658 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSingleDirective()
5679 return OMPSingleDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPSingleDirective()
5682 StmtResult Sema::ActOnOpenMPMasterDirective(Stmt *AStmt, in ActOnOpenMPMasterDirective() argument
5685 if (!AStmt) in ActOnOpenMPMasterDirective()
5688 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPMasterDirective()
5692 return OMPMasterDirective::Create(Context, StartLoc, EndLoc, AStmt); in ActOnOpenMPMasterDirective()
5697 Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) { in ActOnOpenMPCriticalDirective() argument
5698 if (!AStmt) in ActOnOpenMPCriticalDirective()
5701 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPCriticalDirective()
5747 Clauses, AStmt); in ActOnOpenMPCriticalDirective()
5754 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelForDirective() argument
5757 if (!AStmt) in ActOnOpenMPParallelForDirective()
5760 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelForDirective()
5773 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPParallelForDirective()
5794 NestedLoopCount, Clauses, AStmt, B, in ActOnOpenMPParallelForDirective()
5799 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelForSimdDirective() argument
5802 if (!AStmt) in ActOnOpenMPParallelForSimdDirective()
5805 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelForSimdDirective()
5818 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPParallelForSimdDirective()
5854 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPParallelForSimdDirective()
5859 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelSectionsDirective() argument
5861 if (!AStmt) in ActOnOpenMPParallelSectionsDirective()
5864 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPParallelSectionsDirective()
5865 auto BaseStmt = AStmt; in ActOnOpenMPParallelSectionsDirective()
5885 Diag(AStmt->getLocStart(), in ActOnOpenMPParallelSectionsDirective()
5893 Context, StartLoc, EndLoc, Clauses, AStmt, DSAStack->isCancelRegion()); in ActOnOpenMPParallelSectionsDirective()
5897 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskDirective() argument
5899 if (!AStmt) in ActOnOpenMPTaskDirective()
5902 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTaskDirective()
5912 return OMPTaskDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPTaskDirective()
5931 StmtResult Sema::ActOnOpenMPTaskgroupDirective(Stmt *AStmt, in ActOnOpenMPTaskgroupDirective() argument
5934 if (!AStmt) in ActOnOpenMPTaskgroupDirective()
5937 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskgroupDirective()
5941 return OMPTaskgroupDirective::Create(Context, StartLoc, EndLoc, AStmt); in ActOnOpenMPTaskgroupDirective()
5952 Stmt *AStmt, in ActOnOpenMPOrderedDirective() argument
6014 if ((!AStmt && !DependFound) || ErrorFound) in ActOnOpenMPOrderedDirective()
6017 if (AStmt) { in ActOnOpenMPOrderedDirective()
6018 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPOrderedDirective()
6023 return OMPOrderedDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPOrderedDirective()
6267 Stmt *AStmt, in ActOnOpenMPAtomicDirective() argument
6270 if (!AStmt) in ActOnOpenMPAtomicDirective()
6273 auto CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPAtomicDirective()
6692 return OMPAtomicDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPAtomicDirective()
6698 Stmt *AStmt, in ActOnOpenMPTargetDirective() argument
6701 if (!AStmt) in ActOnOpenMPTargetDirective()
6704 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTargetDirective()
6717 auto S = AStmt->IgnoreContainers(/*IgnoreCaptured*/ true); in ActOnOpenMPTargetDirective()
6747 return OMPTargetDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPTargetDirective()
6752 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTargetParallelDirective() argument
6754 if (!AStmt) in ActOnOpenMPTargetParallelDirective()
6757 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTargetParallelDirective()
6768 AStmt); in ActOnOpenMPTargetParallelDirective()
6772 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTargetParallelForDirective() argument
6775 if (!AStmt) in ActOnOpenMPTargetParallelForDirective()
6778 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTargetParallelForDirective()
6791 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPTargetParallelForDirective()
6812 NestedLoopCount, Clauses, AStmt, in ActOnOpenMPTargetParallelForDirective()
6829 Stmt *AStmt, in ActOnOpenMPTargetDataDirective() argument
6832 if (!AStmt) in ActOnOpenMPTargetDataDirective()
6835 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTargetDataDirective()
6848 AStmt); in ActOnOpenMPTargetDataDirective()
6898 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTeamsDirective() argument
6900 if (!AStmt) in ActOnOpenMPTeamsDirective()
6903 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTeamsDirective()
6913 return OMPTeamsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPTeamsDirective()
6986 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskLoopDirective() argument
6989 if (!AStmt) in ActOnOpenMPTaskLoopDirective()
6992 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskLoopDirective()
6998 /*OrderedLoopCountExpr=*/nullptr, AStmt, *this, *DSAStack, in ActOnOpenMPTaskLoopDirective()
7014 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPTaskLoopDirective()
7018 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskLoopSimdDirective() argument
7021 if (!AStmt) in ActOnOpenMPTaskLoopSimdDirective()
7024 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskLoopSimdDirective()
7030 /*OrderedLoopCountExpr=*/nullptr, AStmt, *this, *DSAStack, in ActOnOpenMPTaskLoopSimdDirective()
7057 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPTaskLoopSimdDirective()
7061 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPDistributeDirective() argument
7064 if (!AStmt) in ActOnOpenMPDistributeDirective()
7067 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPDistributeDirective()
7073 nullptr /*ordered not a clause on distribute*/, AStmt, in ActOnOpenMPDistributeDirective()
7083 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPDistributeDirective()
7087 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPDistributeParallelForDirective() argument
7090 if (!AStmt) in ActOnOpenMPDistributeParallelForDirective()
7093 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPDistributeParallelForDirective()
7106 nullptr /*ordered not a clause on distribute*/, AStmt, *this, *DSAStack, in ActOnOpenMPDistributeParallelForDirective()
7116 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPDistributeParallelForDirective()
7120 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPDistributeParallelForSimdDirective() argument
7123 if (!AStmt) in ActOnOpenMPDistributeParallelForSimdDirective()
7126 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPDistributeParallelForSimdDirective()
7139 nullptr /*ordered not a clause on distribute*/, AStmt, *this, *DSAStack, in ActOnOpenMPDistributeParallelForSimdDirective()
7149 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPDistributeParallelForSimdDirective()
7153 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPDistributeSimdDirective() argument
7156 if (!AStmt) in ActOnOpenMPDistributeSimdDirective()
7159 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPDistributeSimdDirective()
7172 nullptr /*ordered not a clause on distribute*/, AStmt, in ActOnOpenMPDistributeSimdDirective()
7182 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPDistributeSimdDirective()
7186 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTargetParallelForSimdDirective() argument
7189 if (!AStmt) in ActOnOpenMPTargetParallelForSimdDirective()
7192 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTargetParallelForSimdDirective()
7205 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPTargetParallelForSimdDirective()
7244 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPTargetParallelForSimdDirective()