Lines Matching refs:CurScope
165 Scope *CurScope = nullptr; member
217 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
218 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
390 Scope *CurScope, SourceLocation Loc) { in push() argument
396 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
965 return Top ? Top->CurScope : nullptr; in getCurScope()
1637 if (I->CurScope) { in isOpenMPLocal()
1638 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal()
1639 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1640 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
1641 CurScope = CurScope->getParent(); in isOpenMPLocal()
1642 return CurScope != TopScope; in isOpenMPLocal()
2704 Scope *CurScope, SourceLocation Loc) { in StartOpenMPDSABlock() argument
2705 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
2975 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() argument
2980 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPIdExpression()
2989 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in ActOnOpenMPIdExpression()
3073 if (CanonicalVD->isLocalVarDecl() && CurScope && in ActOnOpenMPIdExpression()
3074 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) { in ActOnOpenMPIdExpression()
4116 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
4136 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4166 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4178 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4187 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4211 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4219 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4249 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4272 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4319 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4351 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4372 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4394 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4419 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4431 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4440 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4452 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4468 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4485 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4497 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4522 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
9585 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
9589 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
9597 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
9605 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
9641 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
9659 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
9705 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
9710 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9735 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
9739 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9777 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
9789 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
9807 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB, in checkOpenMPLoop()
9818 ? SemaRef.BuildBinOp(CurScope, CondLoc, in checkOpenMPLoop()
9821 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9825 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9836 CurScope, CondLoc, BO_Add, BoundCombUB, in checkOpenMPLoop()
9844 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9850 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
9854 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
9869 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
9874 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
9880 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
9885 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
9892 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
9896 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
9904 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
9908 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9925 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB); in checkOpenMPLoop()
9929 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
9931 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
9950 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, in checkOpenMPLoop()
9954 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9967 CurScope, CondLoc, BO_Add, BoundPrevUB, in checkOpenMPLoop()
9975 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
10013 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
10021 SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, Acc.get(), Prod.get()); in checkOpenMPLoop()
10034 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Iter.get(), in checkOpenMPLoop()
10038 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, Acc.get(), Prod.get()); in checkOpenMPLoop()
10046 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10053 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
10062 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10218 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
10257 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
10294 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
10817 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
10858 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
12940 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
13272 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
13398 B.NumIterations, *this, CurScope, in ActOnOpenMPMasterTaskLoopSimdDirective()
13448 B.NumIterations, *this, CurScope, in ActOnOpenMPMaskedTaskLoopSimdDirective()
13631 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
13700 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMaskedTaskLoopSimdDirective()
13837 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
13893 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
13949 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
14004 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
14107 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
14169 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
14352 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
14409 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
14466 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
14623 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
14643 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14648 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, in ActOnOpenMPTileDirective()
14657 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14664 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV); in ActOnOpenMPTileDirective()
14699 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
14718 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14724 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPTileDirective()
14930 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
14934 ExprResult InnerCond1 = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
14939 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeInnerRef(), in ActOnOpenMPUnrollDirective()
14944 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LAnd, in ActOnOpenMPUnrollDirective()
14950 ExprResult InnerIncr = BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPUnrollDirective()
14996 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeOuterRef(), in ActOnOpenMPUnrollDirective()
15003 BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), BO_AddAssign, in ActOnOpenMPUnrollDirective()
19745 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
22538 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope, in lookupOpenMPDeclareTargetName() argument
22542 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in lookupOpenMPDeclareTargetName()
22551 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in lookupOpenMPDeclareTargetName()