Lines Matching refs:CurScope
171 Scope *CurScope = nullptr; member
225 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
226 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
398 Scope *CurScope, SourceLocation Loc) { in push() argument
404 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
1002 return Top ? Top->CurScope : nullptr; in getCurScope()
1688 if (I->CurScope) { in isOpenMPLocal()
1689 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal()
1690 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1691 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
1692 CurScope = CurScope->getParent(); in isOpenMPLocal()
1693 return CurScope != TopScope; in isOpenMPLocal()
2778 Scope *CurScope, SourceLocation Loc) { in StartOpenMPDSABlock() argument
2779 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
3050 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() argument
3055 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPIdExpression()
3064 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in ActOnOpenMPIdExpression()
3148 if (CanonicalVD->isLocalVarDecl() && CurScope && in ActOnOpenMPIdExpression()
3149 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) { in ActOnOpenMPIdExpression()
4196 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
4216 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4245 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4258 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4268 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4292 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4304 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4335 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4358 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4404 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4435 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4456 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4477 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4503 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4516 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4525 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4537 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4555 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4567 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4592 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
9883 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
9887 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
9895 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
9903 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
9939 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
9957 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
10003 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
10008 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
10033 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
10037 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
10075 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
10087 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
10105 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB, in checkOpenMPLoop()
10116 ? SemaRef.BuildBinOp(CurScope, CondLoc, in checkOpenMPLoop()
10119 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
10123 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
10134 CurScope, CondLoc, BO_Add, BoundCombUB, in checkOpenMPLoop()
10142 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
10148 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
10152 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
10167 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
10172 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
10178 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
10183 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
10190 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
10194 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
10202 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
10206 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
10223 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB); in checkOpenMPLoop()
10227 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
10229 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
10248 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, in checkOpenMPLoop()
10252 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
10265 CurScope, CondLoc, BO_Add, BoundPrevUB, in checkOpenMPLoop()
10273 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
10311 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
10319 SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, Acc.get(), Prod.get()); in checkOpenMPLoop()
10332 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Iter.get(), in checkOpenMPLoop()
10336 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, Acc.get(), Prod.get()); in checkOpenMPLoop()
10344 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10351 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
10360 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10535 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
10579 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
10617 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
11140 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
11181 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
13356 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
13692 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
13818 B.NumIterations, *this, CurScope, in ActOnOpenMPMasterTaskLoopSimdDirective()
13868 B.NumIterations, *this, CurScope, in ActOnOpenMPMaskedTaskLoopSimdDirective()
14051 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
14120 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMaskedTaskLoopSimdDirective()
14262 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
14318 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
14374 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
14429 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
14532 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
14594 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
14790 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
14847 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
14904 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
15061 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
15081 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
15086 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, in ActOnOpenMPTileDirective()
15095 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
15102 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV); in ActOnOpenMPTileDirective()
15137 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
15156 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
15162 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPTileDirective()
15368 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
15372 ExprResult InnerCond1 = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
15377 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeInnerRef(), in ActOnOpenMPUnrollDirective()
15382 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LAnd, in ActOnOpenMPUnrollDirective()
15388 ExprResult InnerIncr = BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPUnrollDirective()
15434 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeOuterRef(), in ActOnOpenMPUnrollDirective()
15441 BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), BO_AddAssign, in ActOnOpenMPUnrollDirective()
20393 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
23281 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope, in lookupOpenMPDeclareTargetName() argument
23285 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in lookupOpenMPDeclareTargetName()
23294 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in lookupOpenMPDeclareTargetName()