Lines Matching refs:CurScope

166     Scope *CurScope = nullptr;  member
220 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
221 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
393 Scope *CurScope, SourceLocation Loc) { in push() argument
399 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
979 return Top ? Top->CurScope : nullptr; in getCurScope()
1668 if (I->CurScope) { in isOpenMPLocal()
1669 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal()
1670 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1671 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
1672 CurScope = CurScope->getParent(); in isOpenMPLocal()
1673 return CurScope != TopScope; in isOpenMPLocal()
2754 Scope *CurScope, SourceLocation Loc) { in StartOpenMPDSABlock() argument
2755 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
3026 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() argument
3031 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPIdExpression()
3040 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in ActOnOpenMPIdExpression()
3124 if (CanonicalVD->isLocalVarDecl() && CurScope && in ActOnOpenMPIdExpression()
3125 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) { in ActOnOpenMPIdExpression()
4171 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
4191 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4221 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4233 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4242 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4266 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4274 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4304 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4327 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4374 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4406 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4427 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4449 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4474 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4486 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4495 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4507 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4523 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4540 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4552 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4577 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
9668 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
9672 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
9680 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
9688 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
9724 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
9742 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
9788 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
9793 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9818 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
9822 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9860 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
9872 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
9890 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB, in checkOpenMPLoop()
9901 ? SemaRef.BuildBinOp(CurScope, CondLoc, in checkOpenMPLoop()
9904 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9908 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9919 CurScope, CondLoc, BO_Add, BoundCombUB, in checkOpenMPLoop()
9927 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9933 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
9937 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
9952 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
9957 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
9963 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
9968 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
9975 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
9979 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
9987 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
9991 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
10008 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB); in checkOpenMPLoop()
10012 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
10014 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
10033 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, in checkOpenMPLoop()
10037 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
10050 CurScope, CondLoc, BO_Add, BoundPrevUB, in checkOpenMPLoop()
10058 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
10096 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
10104 SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, Acc.get(), Prod.get()); in checkOpenMPLoop()
10117 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Iter.get(), in checkOpenMPLoop()
10121 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, Acc.get(), Prod.get()); in checkOpenMPLoop()
10129 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10136 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
10145 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
10301 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
10340 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
10377 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
10900 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
10941 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
13080 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
13412 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
13538 B.NumIterations, *this, CurScope, in ActOnOpenMPMasterTaskLoopSimdDirective()
13588 B.NumIterations, *this, CurScope, in ActOnOpenMPMaskedTaskLoopSimdDirective()
13771 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
13840 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMaskedTaskLoopSimdDirective()
13977 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
14033 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
14089 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
14144 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
14247 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
14309 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
14492 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
14549 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
14606 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
14763 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
14783 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14788 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, in ActOnOpenMPTileDirective()
14797 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14804 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV); in ActOnOpenMPTileDirective()
14839 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
14858 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
14864 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPTileDirective()
15070 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
15074 ExprResult InnerCond1 = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
15079 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeInnerRef(), in ActOnOpenMPUnrollDirective()
15084 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LAnd, in ActOnOpenMPUnrollDirective()
15090 ExprResult InnerIncr = BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPUnrollDirective()
15136 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeOuterRef(), in ActOnOpenMPUnrollDirective()
15143 BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), BO_AddAssign, in ActOnOpenMPUnrollDirective()
20028 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
22861 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope, in lookupOpenMPDeclareTargetName() argument
22865 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in lookupOpenMPDeclareTargetName()
22874 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in lookupOpenMPDeclareTargetName()