Lines Matching refs:CurScope
132 Scope *CurScope = nullptr; member
152 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
153 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
211 Scope *CurScope, SourceLocation Loc) { in push() argument
215 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
562 return isStackEmpty() ? nullptr : Stack.back().first.back().CurScope; in getCurScope()
1078 TopScope = I->CurScope ? I->CurScope->getParent() : nullptr; in isOpenMPLocal()
1079 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1080 while (CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
1081 CurScope = CurScope->getParent(); in isOpenMPLocal()
1082 return CurScope != TopScope; in isOpenMPLocal()
1753 Scope *CurScope, SourceLocation Loc) { in StartOpenMPDSABlock() argument
1754 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
1860 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() argument
1864 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPIdExpression()
1872 Id, LookupOrdinaryName, CurScope, nullptr, in ActOnOpenMPIdExpression()
1956 if (CanonicalVD->isStaticLocal() && CurScope && in ActOnOpenMPIdExpression()
1957 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) { in ActOnOpenMPIdExpression()
2481 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
2498 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2526 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2537 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2546 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2570 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2577 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2598 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2621 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2663 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2684 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2709 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2720 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2729 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2741 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2758 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2770 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
2795 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
5242 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
5246 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
5254 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
5262 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
5298 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
5318 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
5362 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
5367 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
5392 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
5396 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
5431 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
5442 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
5452 ? SemaRef.BuildBinOp(CurScope, CondLoc, BO_LE, IV.get(), UB.get()) in checkOpenMPLoop()
5453 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
5459 CurScope, CondLoc, BO_LT, IV.get(), NumIterations.get()); in checkOpenMPLoop()
5465 SemaRef.BuildBinOp(CurScope, CondLoc, BO_LE, IV.get(), CombUB.get()); in checkOpenMPLoop()
5470 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
5474 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
5487 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
5492 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
5497 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
5502 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
5508 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
5512 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
5519 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
5523 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
5538 DistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LE, IV.get(), UB.get()); in checkOpenMPLoop()
5542 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
5544 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
5553 SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, UB.get(), PrevUB.get()); in checkOpenMPLoop()
5556 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
5563 SemaRef.BuildBinOp(CurScope, CondLoc, BO_LE, IV.get(), PrevUB.get()); in checkOpenMPLoop()
5598 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
5605 Iter = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, in checkOpenMPLoop()
5619 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, in checkOpenMPLoop()
5623 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, in checkOpenMPLoop()
5631 ExprResult Init = buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
5638 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
5647 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, in checkOpenMPLoop()
5790 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
5829 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
5865 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
6067 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
6108 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
7107 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
7429 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
7565 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
7621 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
7677 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
7732 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
7836 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
7898 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
8081 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
8138 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
8195 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
11678 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
13610 void Sema::ActOnOpenMPDeclareTargetName(Scope *CurScope, in ActOnOpenMPDeclareTargetName() argument
13616 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPDeclareTargetName()
13624 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, in ActOnOpenMPDeclareTargetName()