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()
3869 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { in ActOnOpenMPRegionStart() argument
3887 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3915 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3927 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3936 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3960 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3968 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
3994 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4017 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4062 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4092 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4113 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4135 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4160 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4172 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4181 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4193 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4210 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4222 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
4247 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, in ActOnOpenMPRegionStart()
9031 Scope *CurScope = DSA.getCurScope(); in checkOpenMPLoop() local
9035 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd, in checkOpenMPLoop()
9043 CurScope, Loc, BO_Mul, LastIteration32.get(), in checkOpenMPLoop()
9051 CurScope, Loc, BO_Mul, LastIteration64.get(), in checkOpenMPLoop()
9087 CurScope, LastIteration.get()->getExprLoc(), BO_Sub, in checkOpenMPLoop()
9105 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(), in checkOpenMPLoop()
9150 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT, in checkOpenMPLoop()
9155 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9180 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get()); in checkOpenMPLoop()
9184 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9221 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS); in checkOpenMPLoop()
9232 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS); in checkOpenMPLoop()
9250 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB, in checkOpenMPLoop()
9260 ? SemaRef.BuildBinOp(CurScope, CondLoc, in checkOpenMPLoop()
9263 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9267 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(), in checkOpenMPLoop()
9278 CurScope, CondLoc, BO_Add, BoundCombUB, in checkOpenMPLoop()
9286 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9292 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(), in checkOpenMPLoop()
9296 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get()); in checkOpenMPLoop()
9310 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get()); in checkOpenMPLoop()
9315 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get()); in checkOpenMPLoop()
9321 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get()); in checkOpenMPLoop()
9326 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get()); in checkOpenMPLoop()
9333 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get()); in checkOpenMPLoop()
9337 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(), in checkOpenMPLoop()
9345 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get()); in checkOpenMPLoop()
9349 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(), in checkOpenMPLoop()
9366 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB); in checkOpenMPLoop()
9370 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get()); in checkOpenMPLoop()
9372 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(), in checkOpenMPLoop()
9382 SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, UB.get(), PrevUB.get()); in checkOpenMPLoop()
9385 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(), in checkOpenMPLoop()
9398 CurScope, CondLoc, BO_Add, BoundPrevUB, in checkOpenMPLoop()
9406 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, in checkOpenMPLoop()
9445 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(), in checkOpenMPLoop()
9452 Iter = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, in checkOpenMPLoop()
9466 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, in checkOpenMPLoop()
9470 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub, in checkOpenMPLoop()
9479 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
9486 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter, in checkOpenMPLoop()
9495 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar, in checkOpenMPLoop()
9651 B.NumIterations, *this, CurScope, in ActOnOpenMPSimdDirective()
9690 B.NumIterations, *this, CurScope, in ActOnOpenMPForDirective()
9727 B.NumIterations, *this, CurScope, in ActOnOpenMPForSimdDirective()
9994 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForDirective()
10035 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelForSimdDirective()
11232 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForDirective()
11559 B.NumIterations, *this, CurScope, in ActOnOpenMPTaskLoopSimdDirective()
11645 B.NumIterations, *this, CurScope, in ActOnOpenMPMasterTaskLoopSimdDirective()
11769 B.NumIterations, *this, CurScope, in ActOnOpenMPParallelMasterTaskLoopSimdDirective()
11905 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeParallelForSimdDirective()
11961 B.NumIterations, *this, CurScope, in ActOnOpenMPDistributeSimdDirective()
12017 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetParallelForSimdDirective()
12072 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetSimdDirective()
12175 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeSimdDirective()
12237 B.NumIterations, *this, CurScope, in ActOnOpenMPTeamsDistributeParallelForSimdDirective()
12420 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForDirective()
12477 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeParallelForSimdDirective()
12534 B.NumIterations, *this, CurScope, in ActOnOpenMPTargetTeamsDistributeSimdDirective()
12659 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
12679 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12684 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT, in ActOnOpenMPTileDirective()
12693 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12700 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV); in ActOnOpenMPTileDirective()
12735 Scope *CurScope = getCurScope(); in ActOnOpenMPTileDirective() local
12754 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), in ActOnOpenMPTileDirective()
12760 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(), in ActOnOpenMPTileDirective()
17293 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr); in ActOnOpenMPLinearClause()
20033 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope, in lookupOpenMPDeclareTargetName() argument
20037 LookupParsedName(Lookup, CurScope, &ScopeSpec, true); in lookupOpenMPDeclareTargetName()
20046 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC, in lookupOpenMPDeclareTargetName()