Lines Matching refs:CurScope

162     Scope *CurScope = nullptr;  member
197 Scope *CurScope, SourceLocation Loc) in SharingMapTy()
198 : Directive(DKind), DirectiveName(Name), CurScope(CurScope), in SharingMapTy()
370 Scope *CurScope, SourceLocation Loc) { in push() argument
376 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc); in push()
921 return Top ? Top->CurScope : nullptr; in getCurScope()
1537 if (I->CurScope) { in isOpenMPLocal()
1538 Scope *TopScope = I->CurScope->getParent(); in isOpenMPLocal()
1539 Scope *CurScope = getCurScope(); in isOpenMPLocal() local
1540 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D)) in isOpenMPLocal()
1541 CurScope = CurScope->getParent(); in isOpenMPLocal()
1542 return CurScope != TopScope; in isOpenMPLocal()
2518 Scope *CurScope, SourceLocation Loc) { in StartOpenMPDSABlock() argument
2519 DSAStack->push(DKind, DirName, CurScope, Loc); in StartOpenMPDSABlock()
2790 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() argument
2795 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in ActOnOpenMPIdExpression()
2804 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in ActOnOpenMPIdExpression()
2888 if (CanonicalVD->isLocalVarDecl() && CurScope && in ActOnOpenMPIdExpression()
2889 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) { in ActOnOpenMPIdExpression()
3874 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
3892 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3920 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3932 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3941 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3965 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3973 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4000 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4023 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4068 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4098 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4119 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4141 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()
4199 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4216 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4228 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4253 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
9055 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
9059 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
9067 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
9075 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
9111 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
9129 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
9174 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
9179 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9204 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
9208 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9245 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
9256 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
9274 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB, in checkOpenMPLoop()
9284 ? SemaRef.BuildBinOp(CurScope, CondLoc, in checkOpenMPLoop()
9287 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9291 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9302 CurScope, CondLoc, BO_Add, BoundCombUB, in checkOpenMPLoop()
9310 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9316 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
9320 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
9334 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
9339 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
9345 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
9350 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
9357 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
9361 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
9369 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
9373 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9390 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB); in checkOpenMPLoop()
9394 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
9396 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
9415 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, in checkOpenMPLoop()
9419 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9432 CurScope, CondLoc, BO_Add, BoundPrevUB, in checkOpenMPLoop()
9440 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9479 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
9486 Iter = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, in checkOpenMPLoop()
9500 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, in checkOpenMPLoop()
9504 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, in checkOpenMPLoop()
9513 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
9520 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
9529 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
9685 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
9724 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
9761 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
10028 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
10069 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
11267 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
11573 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
11661 B.NumIterations, *this, CurScope, in ActOnOpenMPMasterTaskLoopSimdDirective()
11787 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
11924 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
11980 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
12036 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
12091 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
12194 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
12256 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
12439 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
12496 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
12553 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
12710 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
12730 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12735 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, in ActOnOpenMPTileDirective()
12744 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12751 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV); in ActOnOpenMPTileDirective()
12786 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
12805 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12811 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPTileDirective()
13016 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
13020 ExprResult InnerCond1 = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPUnrollDirective()
13025 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LE, MakeInnerRef(), in ActOnOpenMPUnrollDirective()
13030 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LAnd, in ActOnOpenMPUnrollDirective()
13036 ExprResult InnerIncr = BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPUnrollDirective()
13081 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, MakeOuterRef(), in ActOnOpenMPUnrollDirective()
13088 BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), BO_AddAssign, in ActOnOpenMPUnrollDirective()
17676 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
20421 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope, in lookupOpenMPDeclareTargetName() argument
20425 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in lookupOpenMPDeclareTargetName()
20434 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in lookupOpenMPDeclareTargetName()