| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | infinite-loop.cpp | 35 int Limit = 10; in simple_infinite_loop2() local 63 int Limit = 100; in simple_not_infinite1() local 66 Limit--; in simple_not_infinite1() 85 Limit--; in simple_not_infinite1() 90 (Limit)--; in simple_not_infinite1() 99 Limit--; in simple_not_infinite1() 102 for (i = 0; i < Limit; Limit--) { in simple_not_infinite1() 105 for (i = 0; i < Limit; (Limit) = Limit - 1) { in simple_not_infinite1() 108 for (i = 0; i < Limit; (Limit) -= 1) { in simple_not_infinite1() 111 for (i = 0; i < Limit; --(Limit)) { in simple_not_infinite1() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | State.cpp | 95 unsigned Limit = getCtx().getDiagnostics().getConstexprBacktraceLimit(); in diag() local 96 if (Limit) in diag() 97 CallStackNotes = std::min(CallStackNotes, Limit + 1); in diag() 107 addCallStack(Limit); in diag() 117 void State::addCallStack(unsigned Limit) { in addCallStack() argument 121 if (Limit && Limit < ActiveCalls) { in addCallStack() 122 SkipStart = Limit / 2 + Limit % 2; in addCallStack() 123 SkipEnd = ActiveCalls - Limit / 2; in addCallStack() 138 << unsigned(ActiveCalls - Limit); in addCallStack()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | ConstraintSystemTest.cpp | 149 int64_t Limit = std::numeric_limits<int64_t>::max(); in TEST() local 150 CS.addVariableRow({Limit - 1, Limit - 2, Limit - 3}); in TEST() 151 EXPECT_FALSE(CS.isConditionImplied({Limit - 1, Limit - 2, Limit - 3})); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/ |
| H A D | CSKYFrameLowering.cpp | 302 Limit = std::min(Limit, ((1U << 12) - 1) * 4); in estimateRSStackSizeLimit() 307 Limit = std::min(Limit, (1U << 12)); in estimateRSStackSizeLimit() 312 Limit = std::min(Limit, (1U << 3)); in estimateRSStackSizeLimit() 328 Limit = std::min(Limit, (1U << 12) - 1); in estimateRSStackSizeLimit() 331 Limit = std::min(Limit, ((1U << 12) - 1) * 2); in estimateRSStackSizeLimit() 334 Limit = std::min(Limit, ((1U << 12) - 1) * 4); in estimateRSStackSizeLimit() 337 Limit = std::min(Limit, (1U << 5) - 1); in estimateRSStackSizeLimit() 340 Limit = std::min(Limit, ((1U << 5) - 1) * 2); in estimateRSStackSizeLimit() 343 Limit = std::min(Limit, ((1U << 5) - 1) * 4); in estimateRSStackSizeLimit() 346 Limit = std::min(Limit, ((1U << 8) - 1) * 4); in estimateRSStackSizeLimit() [all …]
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | UnwrappedLineFormatter.cpp | 253 unsigned Limit = in tryFitMultipleLinesInOne() local 257 Limit = TheLine->Last->TotalLength > Limit in tryFitMultipleLinesInOne() 527 Limit -= 2; in tryFitMultipleLinesInOne() 579 if (Limit == 0) in tryMergeSimplePPDirective() 591 if (Limit == 0) in tryMergeSimpleControlStatement() 603 Limit = limitConsideringMacros(I + 1, E, Limit); in tryMergeSimpleControlStatement() 634 if (Limit == 0 || I + 1 == E || in tryMergeShortCaseLabels() 786 Limit = limitConsideringMacros(I + 2, E, Limit); in tryMergeSimpleBlock() 831 Limit -= 2; in tryMergeSimpleBlock() 855 return Limit < 2 ? 0 : Limit - 2; in limitConsideringMacros() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Index.cpp | 33 int64_t Limit; in fromJSON() local 36 O.map("AnyScope", Request.AnyScope) && O.map("Limit", Limit) && in fromJSON() 40 if (OK && Limit <= std::numeric_limits<uint32_t>::max()) in fromJSON() 41 Request.Limit = Limit; in fromJSON() 50 {"Limit", Request.Limit}, in toJSON()
|
| H A D | Index.h | 42 llvm::Optional<uint32_t> Limit; member 52 return std::tie(Query, Scopes, Limit, RestrictForCodeCompletion, 54 std::tie(Req.Query, Req.Scopes, Req.Limit, 74 llvm::Optional<uint32_t> Limit; member 84 llvm::Optional<uint32_t> Limit; member
|
| H A D | MemIndex.cpp | 34 Req.Limit ? *Req.Limit : std::numeric_limits<size_t>::max()); in fuzzyFind() 71 uint32_t Remaining = Req.Limit.value_or(std::numeric_limits<uint32_t>::max()); in refs() 91 uint32_t Remaining = Req.Limit.value_or(std::numeric_limits<uint32_t>::max()); in relations()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Iterator.cpp | 320 LimitIterator(std::unique_ptr<Iterator> Child, size_t Limit) in LimitIterator() argument 321 : Child(std::move(Child)), Limit(Limit), ItemsLeft(Limit) {} in LimitIterator() 342 return std::min(Child->estimateSize(), Limit); in estimateSize() 347 return OS << "(LIMIT " << Limit << " " << *Child << ')'; in dump() 351 size_t Limit; member in clang::clangd::dex::__anon20ee8acc0111::LimitIterator 442 size_t Limit) const { in limit() 445 return std::make_unique<LimitIterator>(std::move(Child), Limit); in limit()
|
| H A D | Dex.cpp | 254 if (Req.Limit) in fuzzyFind() 255 Root = Corpus.limit(std::move(Root), *Req.Limit * 100); in fuzzyFind() 266 Req.Limit ? *Req.Limit : std::numeric_limits<size_t>::max(), Compare); in fuzzyFind() 303 uint32_t Remaining = Req.Limit.value_or(std::numeric_limits<uint32_t>::max()); in refs() 320 uint32_t Remaining = Req.Limit.value_or(std::numeric_limits<uint32_t>::max()); in relations() 368 size_t Limit = 5; in generateProximityURIs() local 372 while (!Body.empty() && --Limit > 0) { in generateProximityURIs()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/server/ |
| H A D | Server.cpp | 188 if (!Req->Limit || *Req->Limit > LimitResults) { in FuzzyFind() 190 Req->Limit, LimitResults); in FuzzyFind() 191 Req->Limit = LimitResults; in FuzzyFind() 230 if (!Req->Limit || *Req->Limit > LimitResults) { in Refs() 232 Req->Limit, LimitResults); in Refs() 233 Req->Limit = LimitResults; in Refs() 274 if (!Req->Limit || *Req->Limit > LimitResults) { in Relations() 277 Req->Limit, LimitResults); in Relations() 278 Req->Limit = LimitResults; in Relations()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | DiagnosticOptions.def | 82 VALUE_DIAGOPT(ErrorLimit, 32, 0) /// Limit # errors emitted. 83 /// Limit depth of macro expansion backtrace. 85 /// Limit depth of instantiation backtrace. 87 /// Limit depth of constexpr backtrace. 89 /// Limit number of times to perform spell checking. 91 /// Limit number of lines shown in a snippet.
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPredication.cpp | 242 const SCEV *Limit; member 244 const SCEV *Limit) in LoopICmp() 245 : Pred(Pred), IV(IV), Limit(Limit) {} in LoopICmp() 249 << ", Limit = " << *Limit << "\n"; in dump() 455 auto *Limit = dyn_cast<SCEVConstant>(LatchCheck.Limit); in isSafeToTruncateWideIVType() local 457 if (!Limit || !Start) in isSafeToTruncateWideIVType() 500 NewLatchCheck.Limit = SE.getTruncateExpr(LatchCheck.Limit, RangeCheckType); in generateLoopLatchCheck() 582 const SCEV *GuardLimit = RangeCheck.Limit; in widenICmpRangeCheckIncrementingLoop() 584 const SCEV *LatchLimit = LatchCheck.Limit; in widenICmpRangeCheckIncrementingLoop() 625 const SCEV *GuardLimit = RangeCheck.Limit; in widenICmpRangeCheckDecrementingLoop() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/remote/ |
| H A D | MarshallingTests.cpp | 342 Request.Limit = 9000; in TEST() 349 EXPECT_EQ(Serialized.limit(), Request.Limit); in TEST() 353 ASSERT_TRUE(Deserialized->Limit); in TEST() 354 EXPECT_EQ(*Deserialized->Limit, Request.Limit); in TEST() 375 Request.Limit = 9000; in TEST() 383 EXPECT_EQ(Serialized.limit(), Request.Limit); in TEST() 389 ASSERT_TRUE(Deserialized->Limit); in TEST() 390 EXPECT_EQ(*Deserialized->Limit, Request.Limit); in TEST()
|
| /llvm-project-15.0.7/clang/include/clang/CrossTU/ |
| H A D | CrossTranslationUnit.h | 273 ASTLoadGuard(unsigned Limit) : Limit(Limit) {} in ASTLoadGuard() argument 277 operator bool() const { return Count < Limit; } 286 const unsigned Limit; variable
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/marshalling/ |
| H A D | Marshalling.cpp | 97 Result.Limit = Message->limit(); in fromProtobuf() 124 Req.Limit = Message->limit(); in fromProtobuf() 140 Req.Limit = Message->limit(); in fromProtobuf() 222 if (From.Limit) in toProtobuf() 223 RPCRequest.set_limit(*From.Limit); in toProtobuf() 241 if (From.Limit) in toProtobuf() 242 RPCRequest.set_limit(*From.Limit); in toProtobuf() 252 if (From.Limit) in toProtobuf() 253 RPCRequest.set_limit(*From.Limit); in toProtobuf()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | GCNHazardRecognizer.h | 73 int getWaitStatesSince(IsHazardFn IsHazard, int Limit); 74 int getWaitStatesSinceDef(unsigned Reg, IsHazardFn IsHazardDef, int Limit); 75 int getWaitStatesSinceSetReg(IsHazardFn IsHazard, int Limit);
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | OptBisect.h | 65 void setLimit(int Limit) { in setLimit() argument 66 BisectLimit = Limit; in setLimit()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CloneDetection.cpp | 419 const StmtSequence &Seq, std::size_t Limit, in calculateStmtComplexity() argument 449 StmtSequence(S, Seq.getContainingDecl()), Limit, MacroStack); in calculateStmtComplexity() 450 if (Complexity >= Limit) in calculateStmtComplexity() 451 return Limit; in calculateStmtComplexity() 456 StmtSequence(S, Seq.getContainingDecl()), Limit, MacroStack); in calculateStmtComplexity() 457 if (Complexity >= Limit) in calculateStmtComplexity() 458 return Limit; in calculateStmtComplexity()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | OptBisect.cpp | 25 cl::cb<void, int>([](int Limit) { in __anon2e59b3b70102() argument 26 llvm::getOptBisector().setLimit(Limit); in __anon2e59b3b70102()
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyClassLayoutGraphicalDumper.cpp | 144 uint32_t Limit = opts::pretty::ClassRecursionDepth; in shouldRecurse() local 145 if (Limit == 0) in shouldRecurse() 147 return RecursionLevel < Limit; in shouldRecurse()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | AllocationOrderTest.cpp | 15 std::vector<MCPhysReg> loadOrder(const AllocationOrder &O, unsigned Limit = 0) { in loadOrder() argument 17 if (Limit == 0) in loadOrder() 21 for (auto I = O.begin(), E = O.getOrderLimitEnd(Limit); I != E; ++I) in loadOrder()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 198 SDValue Limit = DAG.getNode(ISD::ADD, DL, PtrVT, Src, Length); in EmitTargetCodeForMemchr() local 200 Limit, Src, Char); in EmitTargetCodeForMemchr() 245 SDValue Limit) { in getBoundedStrlen() argument 249 Limit, Src, DAG.getConstant(0, DL, MVT::i32)); in getBoundedStrlen() 267 SDValue Limit = DAG.getNode(ISD::ADD, DL, PtrVT, Src, MaxLength); in EmitTargetCodeForStrnlen() local 268 return getBoundedStrlen(DAG, DL, Chain, Src, Limit); in EmitTargetCodeForStrnlen()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | InterferenceCache.cpp | 191 SlotIndex Limit = BI->First.isValid() ? BI->First : Stop; in update() local 193 i != e && RegMaskSlots[i] < Limit; ++i) in update() 248 SlotIndex Limit = BI->Last.isValid() ? BI->Last : Start; in update() local 250 i && RegMaskSlots[i-1].getDeadSlot() > Limit; --i) in update()
|
| H A D | RegisterPressure.cpp | 973 unsigned Limit = RCI->getRegPressureSetLimit(i); in computeExcessPressureDelta() local 975 Limit += LiveThruPressureVec[i]; in computeExcessPressureDelta() 977 if (Limit > POld) { in computeExcessPressureDelta() 978 if (Limit > PNew) in computeExcessPressureDelta() 982 } else if (Limit > PNew) in computeExcessPressureDelta() 983 PDiff = Limit - POld; // Just obeyed limit. in computeExcessPressureDelta() 1175 Limit += LiveThruPressure[PSetID]; in getUpwardPressureDelta() 1189 if (PNew > Limit) in getUpwardPressureDelta() 1190 ExcessInc = POld > Limit ? PNew - POld : PNew - Limit; in getUpwardPressureDelta() 1191 else if (POld > Limit) in getUpwardPressureDelta() [all …]
|