Lines Matching refs:AStmt

2469     Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) {  in ActOnOpenMPExecutableDirective()  argument
2479 if (AStmt) { in ActOnOpenMPExecutableDirective()
2480 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPExecutableDirective()
2483 DSAAttrChecker DSAChecker(DSAStack, *this, cast<CapturedStmt>(AStmt)); in ActOnOpenMPExecutableDirective()
2484 DSAChecker.Visit(cast<CapturedStmt>(AStmt)->getCapturedStmt()); in ActOnOpenMPExecutableDirective()
2505 Res = ActOnOpenMPParallelDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2510 Res = ActOnOpenMPSimdDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc, in ActOnOpenMPExecutableDirective()
2514 Res = ActOnOpenMPForDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc, in ActOnOpenMPExecutableDirective()
2518 Res = ActOnOpenMPForSimdDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2522 Res = ActOnOpenMPSectionsDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2528 Res = ActOnOpenMPSectionDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
2531 Res = ActOnOpenMPSingleDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2537 Res = ActOnOpenMPMasterDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
2540 Res = ActOnOpenMPCriticalDirective(DirName, ClausesWithImplicit, AStmt, in ActOnOpenMPExecutableDirective()
2544 Res = ActOnOpenMPParallelForDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2550 ClausesWithImplicit, AStmt, StartLoc, EndLoc, VarsWithInheritedDSA); in ActOnOpenMPExecutableDirective()
2554 Res = ActOnOpenMPParallelSectionsDirective(ClausesWithImplicit, AStmt, in ActOnOpenMPExecutableDirective()
2560 ActOnOpenMPTaskDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
2566 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
2573 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
2580 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
2587 Res = ActOnOpenMPTaskgroupDirective(AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
2590 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
2595 Res = ActOnOpenMPOrderedDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2599 Res = ActOnOpenMPAtomicDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2604 ActOnOpenMPTeamsDirective(ClausesWithImplicit, AStmt, StartLoc, EndLoc); in ActOnOpenMPExecutableDirective()
2607 Res = ActOnOpenMPTargetDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2614 assert(AStmt == nullptr && "No associated statement allowed for 'omp " in ActOnOpenMPExecutableDirective()
2619 assert(AStmt == nullptr && in ActOnOpenMPExecutableDirective()
2626 Res = ActOnOpenMPTargetDataDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2631 Res = ActOnOpenMPTaskLoopDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2636 Res = ActOnOpenMPTaskLoopSimdDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2641 Res = ActOnOpenMPDistributeDirective(ClausesWithImplicit, AStmt, StartLoc, in ActOnOpenMPExecutableDirective()
2666 Stmt *AStmt, in ActOnOpenMPParallelDirective() argument
2669 if (!AStmt) in ActOnOpenMPParallelDirective()
2672 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelDirective()
2682 return OMPParallelDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPParallelDirective()
3641 Expr *OrderedLoopCountExpr, Stmt *AStmt, Sema &SemaRef, in CheckOpenMPLoop() argument
3671 Stmt *CurStmt = AStmt->IgnoreContainers(/* IgnoreCaptured */ true); in CheckOpenMPLoop()
4081 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPSimdDirective() argument
4084 if (!AStmt) in ActOnOpenMPSimdDirective()
4087 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSimdDirective()
4093 AStmt, *this, *DSAStack, VarsWithImplicitDSA, B); in ActOnOpenMPSimdDirective()
4130 Clauses, AStmt, B); in ActOnOpenMPSimdDirective()
4134 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPForDirective() argument
4137 if (!AStmt) in ActOnOpenMPForDirective()
4140 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForDirective()
4146 AStmt, *this, *DSAStack, VarsWithImplicitDSA, B); in ActOnOpenMPForDirective()
4165 Clauses, AStmt, B, DSAStack->isCancelRegion()); in ActOnOpenMPForDirective()
4169 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPForSimdDirective() argument
4172 if (!AStmt) in ActOnOpenMPForSimdDirective()
4175 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPForSimdDirective()
4181 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPForSimdDirective()
4219 Clauses, AStmt, B); in ActOnOpenMPForSimdDirective()
4223 Stmt *AStmt, in ActOnOpenMPSectionsDirective() argument
4226 if (!AStmt) in ActOnOpenMPSectionsDirective()
4229 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSectionsDirective()
4230 auto BaseStmt = AStmt; in ActOnOpenMPSectionsDirective()
4250 Diag(AStmt->getLocStart(), diag::err_omp_sections_not_compound_stmt); in ActOnOpenMPSectionsDirective()
4256 return OMPSectionsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPSectionsDirective()
4260 StmtResult Sema::ActOnOpenMPSectionDirective(Stmt *AStmt, in ActOnOpenMPSectionDirective() argument
4263 if (!AStmt) in ActOnOpenMPSectionDirective()
4266 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSectionDirective()
4271 return OMPSectionDirective::Create(Context, StartLoc, EndLoc, AStmt, in ActOnOpenMPSectionDirective()
4276 Stmt *AStmt, in ActOnOpenMPSingleDirective() argument
4279 if (!AStmt) in ActOnOpenMPSingleDirective()
4282 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPSingleDirective()
4303 return OMPSingleDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPSingleDirective()
4306 StmtResult Sema::ActOnOpenMPMasterDirective(Stmt *AStmt, in ActOnOpenMPMasterDirective() argument
4309 if (!AStmt) in ActOnOpenMPMasterDirective()
4312 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPMasterDirective()
4316 return OMPMasterDirective::Create(Context, StartLoc, EndLoc, AStmt); in ActOnOpenMPMasterDirective()
4321 Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) { in ActOnOpenMPCriticalDirective() argument
4322 if (!AStmt) in ActOnOpenMPCriticalDirective()
4325 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPCriticalDirective()
4371 Clauses, AStmt); in ActOnOpenMPCriticalDirective()
4378 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelForDirective() argument
4381 if (!AStmt) in ActOnOpenMPParallelForDirective()
4384 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelForDirective()
4397 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPParallelForDirective()
4417 NestedLoopCount, Clauses, AStmt, B, in ActOnOpenMPParallelForDirective()
4422 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelForSimdDirective() argument
4425 if (!AStmt) in ActOnOpenMPParallelForSimdDirective()
4428 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPParallelForSimdDirective()
4441 getOrderedNumberExpr(Clauses), AStmt, *this, *DSAStack, in ActOnOpenMPParallelForSimdDirective()
4476 Context, StartLoc, EndLoc, NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPParallelForSimdDirective()
4481 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPParallelSectionsDirective() argument
4483 if (!AStmt) in ActOnOpenMPParallelSectionsDirective()
4486 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPParallelSectionsDirective()
4487 auto BaseStmt = AStmt; in ActOnOpenMPParallelSectionsDirective()
4507 Diag(AStmt->getLocStart(), in ActOnOpenMPParallelSectionsDirective()
4515 Context, StartLoc, EndLoc, Clauses, AStmt, DSAStack->isCancelRegion()); in ActOnOpenMPParallelSectionsDirective()
4519 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskDirective() argument
4521 if (!AStmt) in ActOnOpenMPTaskDirective()
4524 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTaskDirective()
4534 return OMPTaskDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPTaskDirective()
4553 StmtResult Sema::ActOnOpenMPTaskgroupDirective(Stmt *AStmt, in ActOnOpenMPTaskgroupDirective() argument
4556 if (!AStmt) in ActOnOpenMPTaskgroupDirective()
4559 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskgroupDirective()
4563 return OMPTaskgroupDirective::Create(Context, StartLoc, EndLoc, AStmt); in ActOnOpenMPTaskgroupDirective()
4574 Stmt *AStmt, in ActOnOpenMPOrderedDirective() argument
4623 if ((!AStmt && !DependFound) || ErrorFound) in ActOnOpenMPOrderedDirective()
4626 if (AStmt) { in ActOnOpenMPOrderedDirective()
4627 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPOrderedDirective()
4632 return OMPOrderedDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPOrderedDirective()
4876 Stmt *AStmt, in ActOnOpenMPAtomicDirective() argument
4879 if (!AStmt) in ActOnOpenMPAtomicDirective()
4882 auto CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPAtomicDirective()
5301 return OMPAtomicDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, in ActOnOpenMPAtomicDirective()
5307 Stmt *AStmt, in ActOnOpenMPTargetDirective() argument
5310 if (!AStmt) in ActOnOpenMPTargetDirective()
5313 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTargetDirective()
5326 auto S = AStmt->IgnoreContainers(/*IgnoreCaptured*/ true); in ActOnOpenMPTargetDirective()
5353 return OMPTargetDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPTargetDirective()
5357 Stmt *AStmt, in ActOnOpenMPTargetDataDirective() argument
5360 if (!AStmt) in ActOnOpenMPTargetDataDirective()
5363 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTargetDataDirective()
5368 AStmt); in ActOnOpenMPTargetDataDirective()
5372 Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTeamsDirective() argument
5374 if (!AStmt) in ActOnOpenMPTeamsDirective()
5377 CapturedStmt *CS = cast<CapturedStmt>(AStmt); in ActOnOpenMPTeamsDirective()
5387 return OMPTeamsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt); in ActOnOpenMPTeamsDirective()
5460 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskLoopDirective() argument
5463 if (!AStmt) in ActOnOpenMPTaskLoopDirective()
5466 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskLoopDirective()
5472 /*OrderedLoopCountExpr=*/nullptr, AStmt, *this, *DSAStack, in ActOnOpenMPTaskLoopDirective()
5488 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPTaskLoopDirective()
5492 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPTaskLoopSimdDirective() argument
5495 if (!AStmt) in ActOnOpenMPTaskLoopSimdDirective()
5498 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPTaskLoopSimdDirective()
5504 /*OrderedLoopCountExpr=*/nullptr, AStmt, *this, *DSAStack, in ActOnOpenMPTaskLoopSimdDirective()
5520 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPTaskLoopSimdDirective()
5524 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc, in ActOnOpenMPDistributeDirective() argument
5527 if (!AStmt) in ActOnOpenMPDistributeDirective()
5530 assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); in ActOnOpenMPDistributeDirective()
5536 nullptr /*ordered not a clause on distribute*/, AStmt, in ActOnOpenMPDistributeDirective()
5546 NestedLoopCount, Clauses, AStmt, B); in ActOnOpenMPDistributeDirective()