Lines Matching defs:CurScope
162 Scope *CurScope = nullptr;
197 Scope *CurScope, SourceLocation Loc)
198 : Directive(DKind), DirectiveName(Name), CurScope(CurScope),
370 Scope *CurScope, SourceLocation Loc) {
376 Stack.back().first.emplace_back(DKind, DirName, CurScope, Loc);
921 return Top ? Top->CurScope : nullptr;
1537 if (I->CurScope) {
1538 Scope *TopScope = I->CurScope->getParent();
1539 Scope *CurScope = getCurScope();
1540 while (CurScope && CurScope != TopScope && !CurScope->isDeclScope(D))
1541 CurScope = CurScope->getParent();
1542 return CurScope != TopScope;
2518 Scope *CurScope, SourceLocation Loc) {
2519 DSAStack->push(DKind, DirName, CurScope, Loc);
2790 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope,
2795 LookupParsedName(Lookup, CurScope, &ScopeSpec, true);
2804 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC,
2888 if (CanonicalVD->isLocalVarDecl() && CurScope &&
2889 !isDeclInScope(ND, getCurLexicalContext(), CurScope)) {
3869 void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) {
3887 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3915 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3927 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3936 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3960 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3968 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
3994 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4017 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4062 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4092 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4113 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4135 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4160 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4172 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4181 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4193 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4210 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4222 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
4247 ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP,
9031 Scope *CurScope = DSA.getCurScope();
9035 SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd,
9043 CurScope, Loc, BO_Mul, LastIteration32.get(),
9051 CurScope, Loc, BO_Mul, LastIteration64.get(),
9087 CurScope, LastIteration.get()->getExprLoc(), BO_Sub,
9105 CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(),
9150 ExprResult IsUBGreater = SemaRef.BuildBinOp(CurScope, InitLoc, BO_GT,
9155 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(),
9180 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get());
9184 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(),
9221 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS);
9232 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS);
9250 .BuildBinOp(CurScope, CondLoc, BO_Add, BoundUB,
9260 ? SemaRef.BuildBinOp(CurScope, CondLoc,
9263 : SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(),
9267 CombDistCond = SemaRef.BuildBinOp(CurScope, CondLoc, BO_LT, IV.get(),
9278 CurScope, CondLoc, BO_Add, BoundCombUB,
9286 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE,
9292 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, IV.get(),
9296 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get());
9310 NextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, LB.get(), ST.get());
9315 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get());
9321 NextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, UB.get(), ST.get());
9326 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get());
9333 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombLB.get(), ST.get());
9337 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(),
9345 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Add, CombUB.get(), ST.get());
9349 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(),
9366 CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE, IV.get(), BoundUB);
9370 SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Add, IV.get(), ST.get());
9372 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(),
9382 SemaRef.BuildBinOp(CurScope, DistEUBLoc, BO_GT, UB.get(), PrevUB.get());
9385 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(),
9398 CurScope, CondLoc, BO_Add, BoundPrevUB,
9406 SemaRef.BuildBinOp(CurScope, CondLoc, UseStrictCompare ? BO_LT : BO_LE,
9445 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul, Prod.get(),
9452 Iter = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div,
9466 Prod = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Mul,
9470 Acc = SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Sub,
9479 buildCounterInit(SemaRef, CurScope, UpdLoc, CounterVar,
9486 SemaRef, CurScope, UpdLoc, CounterVar, IS.CounterInit, Iter,
9495 buildCounterUpdate(SemaRef, CurScope, UpdLoc, CounterVar,
9651 B.NumIterations, *this, CurScope,
9690 B.NumIterations, *this, CurScope,
9727 B.NumIterations, *this, CurScope,
9994 B.NumIterations, *this, CurScope,
10035 B.NumIterations, *this, CurScope,
11232 B.NumIterations, *this, CurScope,
11559 B.NumIterations, *this, CurScope,
11645 B.NumIterations, *this, CurScope,
11769 B.NumIterations, *this, CurScope,
11905 B.NumIterations, *this, CurScope,
11961 B.NumIterations, *this, CurScope,
12017 B.NumIterations, *this, CurScope,
12072 B.NumIterations, *this, CurScope,
12175 B.NumIterations, *this, CurScope,
12237 B.NumIterations, *this, CurScope,
12420 B.NumIterations, *this, CurScope,
12477 B.NumIterations, *this, CurScope,
12534 B.NumIterations, *this, CurScope,
12659 Scope *CurScope = getCurScope();
12679 ExprResult EndOfTile = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(),
12684 BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(), BO_LT,
12693 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(),
12700 BuildUnaryOp(CurScope, LoopHelper.Inc->getExprLoc(), UO_PreInc, TileIV);
12735 Scope *CurScope = getCurScope();
12754 ExprResult CondExpr = BuildBinOp(CurScope, LoopHelper.Cond->getExprLoc(),
12760 ExprResult IncrStmt = BuildBinOp(CurScope, LoopHelper.Inc->getExprLoc(),
17293 BuildBinOp(CurScope, StepLoc, BO_Assign, SaveRef.get(), StepExpr);
20033 NamedDecl *Sema::lookupOpenMPDeclareTargetName(Scope *CurScope,
20037 LookupParsedName(Lookup, CurScope, &ScopeSpec, true);
20046 CorrectTypo(Id, LookupOrdinaryName, CurScope, nullptr, CCC,