Lines Matching refs:LCDecl

3915   ValueDecl *LCDecl = nullptr;  member in __anon216cbd261411::OpenMPIterationSpaceChecker
3948 ValueDecl *GetLoopDecl() const { return LCDecl; } in GetLoopDecl()
3993 if (!LCDecl) { in Dependent()
3997 return LCDecl->getType()->isDependentType() || in Dependent()
4021 assert(LCDecl == nullptr && LB == nullptr && LCRef == nullptr && in SetLCDeclAndLB()
4025 LCDecl = getCanonicalDecl(NewLCDecl); in SetLCDeclAndLB()
4040 assert(LCDecl != nullptr && LB != nullptr && UB == nullptr && in SetUB()
4054 assert(LCDecl != nullptr && LB != nullptr && Step == nullptr); in SetStep()
4090 << LCDecl << TestIsLessOp << NewStep->getSourceRange(); in SetStep()
4218 SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_cond) << LCDecl; in CheckCond()
4225 if (GetInitLCDecl(BO->getLHS()) == LCDecl) in CheckCond()
4230 if (GetInitLCDecl(BO->getRHS()) == LCDecl) in CheckCond()
4244 if (GetInitLCDecl(CE->getArg(0)) == LCDecl) in CheckCond()
4248 if (GetInitLCDecl(CE->getArg(1)) == LCDecl) in CheckCond()
4261 << S->getSourceRange() << LCDecl; in CheckCond()
4275 if (GetInitLCDecl(BO->getLHS()) == LCDecl) in CheckIncRHS()
4277 if (IsAdd && GetInitLCDecl(BO->getRHS()) == LCDecl) in CheckIncRHS()
4283 if (GetInitLCDecl(CE->getArg(0)) == LCDecl) in CheckIncRHS()
4285 if (IsAdd && GetInitLCDecl(CE->getArg(1)) == LCDecl) in CheckIncRHS()
4292 << RHS->getSourceRange() << LCDecl; in CheckIncRHS()
4311 SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_incr) << LCDecl; in CheckInc()
4322 GetInitLCDecl(UO->getSubExpr()) == LCDecl) in CheckInc()
4331 if (GetInitLCDecl(BO->getLHS()) == LCDecl) in CheckInc()
4335 if (GetInitLCDecl(BO->getLHS()) == LCDecl) in CheckInc()
4345 if (GetInitLCDecl(CE->getArg(0)) == LCDecl) in CheckInc()
4354 if (GetInitLCDecl(CE->getArg(0)) == LCDecl) in CheckInc()
4358 if (GetInitLCDecl(CE->getArg(0)) == LCDecl) in CheckInc()
4368 << S->getSourceRange() << LCDecl; in CheckInc()
4395 auto VarType = LCDecl->getType().getNonReferenceType(); in BuildNumIterations()
4518 auto *VD = dyn_cast<VarDecl>(LCDecl); in BuildCounterVar()
4520 VD = SemaRef.IsOpenMPCapturedDecl(LCDecl); in BuildCounterVar()
4523 DSAStackTy::DSAVarData Data = DSA.getTopDSA(LCDecl, /*FromParent=*/false); in BuildCounterVar()
4535 if (LCDecl && !LCDecl->isInvalidDecl()) { in BuildPrivateCounterVar()
4536 auto Type = LCDecl->getType().getNonReferenceType(); in BuildPrivateCounterVar()
4538 buildVarDecl(SemaRef, DefaultLoc, Type, LCDecl->getName(), in BuildPrivateCounterVar()
4539 LCDecl->hasAttrs() ? &LCDecl->getAttrs() : nullptr); in BuildPrivateCounterVar()
4653 if (auto *LCDecl = ISC.GetLoopDecl()) { in CheckOpenMPIterationSpace() local
4661 auto VarType = LCDecl->getType().getNonReferenceType(); in CheckOpenMPIterationSpace()
4679 VarsWithImplicitDSA.erase(LCDecl); in CheckOpenMPIterationSpace()
4689 DSAStackTy::DSAVarData DVar = DSA.getTopDSA(LCDecl, false); in CheckOpenMPIterationSpace()
4708 ReportOriginalDSA(SemaRef, &DSA, LCDecl, DVar, /*IsLoopIterVar=*/true); in CheckOpenMPIterationSpace()
4716 DVar = DSA.hasDSA(LCDecl, isOpenMPPrivate, in CheckOpenMPIterationSpace()
4719 DSA.addDSA(LCDecl, LoopDeclRefExpr, PredeterminedCKind); in CheckOpenMPIterationSpace()