|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp 265 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
266 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
659 if (Kind && ArgNames.size() != Kind)
822 if (CalleeF->arg_size() != Args.size())
826 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
993 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1028 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1037 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp 265 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
266 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
659 if (Kind && ArgNames.size() != Kind)
822 if (CalleeF->arg_size() != Args.size())
826 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
993 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1028 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1037 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp 265 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
266 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
659 if (Kind && ArgNames.size() != Kind)
821 if (CalleeF->arg_size() != Args.size())
825 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
992 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1027 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1036 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp 265 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
266 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
644 if (Kind && ArgNames.size() != Kind)
807 if (CalleeF->arg_size() != Args.size())
811 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
978 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1013 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1022 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp 282 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
283 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
661 if (Kind && ArgNames.size() != Kind)
831 if (CalleeF->arg_size() != Args.size())
835 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
1002 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1037 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1046 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter3/toy.cpp 453 if (CalleeF->arg_size() != Args.size())
457 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
468 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter4/toy.cpp 481 if (CalleeF->arg_size() != Args.size())
485 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
496 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter5/toy.cpp 608 if (CalleeF->arg_size() != Args.size())
612 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
770 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter6/toy.cpp 248 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
249 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
591 if (Kind && ArgNames.size() != Kind)
720 if (CalleeF->arg_size() != Args.size())
724 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
882 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter7/toy.cpp 270 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
271 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
664 if (Kind && ArgNames.size() != Kind)
827 if (CalleeF->arg_size() != Args.size())
831 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
998 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1033 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1042 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter8/toy.cpp 271 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
272 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
665 if (Kind && ArgNames.size() != Kind)
826 if (CalleeF->arg_size() != Args.size())
830 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
997 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1032 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1041 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/Kaleidoscope/Chapter9/toy.cpp 373 bool isUnaryOp() const { return IsOperator && Args.size() == 1; }
374 bool isBinaryOp() const { return IsOperator && Args.size() == 2; }
779 if (Kind && ArgNames.size() != Kind)
987 if (CalleeF->arg_size() != Args.size())
991 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
1162 for (unsigned i = 0, e = VarNames.size(); i != e; ++i) {
1199 for (unsigned i = 0, e = VarNames.size(); i != e; ++i)
1208 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext));
examples/SpeculativeJIT/SpeculativeJIT.cpp 192 Main(ArgV.size() - 1, ArgV.data());
gen/lib/Target/AArch64/AArch64GenAsmMatcher.inc40935 for( ; i < Candidates.size() - 1; i++)
gen/lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc80490 for( ; i < Candidates.size() - 1; i++)
gen/lib/Target/ARM/ARMGenAsmMatcher.inc16420 for( ; i < Candidates.size() - 1; i++)
gen/lib/Target/Mips/MipsGenAsmMatcher.inc11759 for( ; i < Candidates.size() - 1; i++)
gen/lib/Target/PowerPC/PPCGenAsmMatcher.inc 7246 for( ; i < Candidates.size() - 1; i++)
gen/lib/Target/SystemZ/SystemZGenAsmMatcher.inc 9282 for( ; i < Candidates.size() - 1; i++)
include/llvm/ADT/ArrayRef.h 88 : Data(Vec.data()), Length(Vec.size()) {}
130 : Data(Vec.data()), Length(Vec.size()) {}
include/llvm/ADT/DepthFirstIterator.h 206 unsigned getPathLength() const { return VisitStack.size(); }
include/llvm/ADT/ImmutableSet.h 483 for (unsigned i = 0, n = createdNodes.size(); i < n; ++i) {
include/llvm/ADT/MapVector.h 60 size_type size() const { return Vector.size(); }
104 I = Vector.size() - 1;
123 I = Vector.size() - 1;
136 I = Vector.size() - 1;
include/llvm/ADT/PriorityWorklist.h 93 auto InsertResult = M.insert({X, V.size()});
102 if (Index != (ptrdiff_t)(V.size() - 1)) {
105 Index = (ptrdiff_t)V.size();
121 ptrdiff_t StartIndex = V.size();
124 for (ptrdiff_t i = V.size() - 1; i >= StartIndex; --i) {
169 if (I->second == (ptrdiff_t)(V.size() - 1)) {
include/llvm/ADT/SCCIterator.h 214 if (CurrentSCC.size() > 1)
include/llvm/ADT/SetVector.h 78 return vector_.size();
135 assert(n < vector_.size() && "SetVector access out of range!");
include/llvm/ADT/UniqueVector.h 48 Val = static_cast<unsigned>(Vector.size()) + 1;
87 size_t size() const { return Vector.size(); }
include/llvm/Analysis/AliasSetTracker.h 199 assert(i < UnknownInsts.size());
305 for (size_t i = 0, e = UnknownInsts.size(); i != e; ++i)
include/llvm/Analysis/BlockFrequencyInfoImpl.h 450 assert(Head.Index < Working.size());
662 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index)
874 assert(Node.Index < RPOT.size());
1056 BlockNode NewNode(Freqs.size());
1069 assert(RPOT.size() - 1 <= BlockNode::getMaxIndex() &&
1080 Working.reserve(RPOT.size());
1081 for (size_t Index = 0; Index < RPOT.size(); ++Index)
1083 Freqs.resize(RPOT.size());
1113 for (size_t Index = 0; Index < RPOT.size(); ++Index) {
include/llvm/Analysis/CallGraph.h 194 inline unsigned size() const { return (unsigned)CalledFunctions.size(); }
202 assert(i < CalledFunctions.size() && "Invalid index");
include/llvm/Analysis/CallGraphSCCPass.h 99 bool isSingular() const { return Nodes.size() == 1; }
100 unsigned size() const { return Nodes.size(); }
include/llvm/Analysis/IntervalPartition.h 74 bool isDegeneratePartition() { return Intervals.size() == 1; }
include/llvm/Analysis/LoopInfo.h 170 return Blocks.size();
428 assert(i != Blocks.size() && "Loop does not contain BB!");
include/llvm/Analysis/LoopInfoImpl.h 611 for (unsigned i = 0; i < TopLevelLoops.size(); ++i)
include/llvm/Analysis/LoopIterator.h 126 bool isComplete() const { return PostBlocks.size() == L->getNumBlocks(); }
161 return 1 + PostBlocks.size() - getPostorder(BB);
243 DFS.PostNumbers[BB] = DFS.PostBlocks.size();
include/llvm/Analysis/Trace.h 59 for (unsigned i = 0, e = BasicBlocks.size(); i != e; ++i)
95 unsigned size() const { return BasicBlocks.size(); }
include/llvm/BinaryFormat/MsgPackDocument.h 223 size_t size() const { return Array->size(); }
include/llvm/Bitstream/BitstreamReader.h 59 for (unsigned i = 0, e = static_cast<unsigned>(BlockInfoRecords.size());
526 if (AbbrevNo >= CurAbbrevs.size())
include/llvm/Bitstream/BitstreamWriter.h 192 for (unsigned i = 0, e = static_cast<unsigned>(BlockInfoRecords.size());
301 assert(AbbrevNo < CurAbbrevs.size() && "Invalid abbrev #!");
493 return static_cast<unsigned>(CurAbbrevs.size())-1 +
540 return Info.Abbrevs.size()-1+bitc::FIRST_APPLICATION_ABBREV;
include/llvm/CodeGen/FastISel.h 157 NumFixedArgs = (FixedArgs == ~0U) ? Args.size() : FixedArgs;
173 NumFixedArgs = (FixedArgs == ~0U) ? Args.size() : FixedArgs;
include/llvm/CodeGen/GCMetadata.h 136 size_t size() const { return SafePoints.size(); }
141 size_t roots_size() const { return Roots.size(); }
include/llvm/CodeGen/GlobalISel/LegalizerInfo.h 1035 assert(v.size() > 0 &&
1059 assert(v.size() > 0 &&
1253 for(size_t i=0; i<v.size(); ++i) {
1286 assert(v.size() >= 1);
include/llvm/CodeGen/LatencyPriorityQueue.h 54 NumNodesSolelyBlocking.resize(SUnits->size(), 0);
58 NumNodesSolelyBlocking.resize(SUnits->size(), 0);
69 assert(NodeNum < (*SUnits).size());
74 assert(NodeNum < NumNodesSolelyBlocking.size());
include/llvm/CodeGen/MachineBasicBlock.h 277 return (unsigned)Predecessors.size();
293 return (unsigned)Successors.size();
include/llvm/CodeGen/MachineFrameInfo.h 390 int getObjectIndexEnd() const { return (int)Objects.size()-NumFixedObjects; }
396 unsigned getNumObjects() const { return Objects.size(); }
444 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
451 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
458 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
465 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
472 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
484 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
492 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
500 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
506 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
512 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
518 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
526 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
534 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
540 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
664 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
674 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
681 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
688 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
694 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
706 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
715 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
723 assert(unsigned(ObjectIdx + NumFixedObjects) < Objects.size() &&
729 assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
include/llvm/CodeGen/MachineFunction.h 587 assert(N < MBBNumbering.size() && "Illegal block number");
596 unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); }
708 return (unsigned)MBBNumbering.size()-1;
715 assert(N < MBBNumbering.size() && "Illegal basic block #");
include/llvm/CodeGen/MachineOutliner.h 183 unsigned getOccurrenceCount() const { return Candidates.size(); }
include/llvm/CodeGen/MachinePipeliner.h 172 : SUnits(SUs), Blocked(SUs.size()), B(SUs.size()), AdjK(SUs.size()) {
172 : SUnits(SUs), Blocked(SUs.size()), B(SUs.size()), AdjK(SUs.size()) {
172 : SUnits(SUs), Blocked(SUs.size()), B(SUs.size()), AdjK(SUs.size()) {
173 Node2Idx = new std::vector<int>(SUs.size());
185 B.assign(SUnits.size(), SmallPtrSet<SUnit *, 4>());
include/llvm/CodeGen/MachineScheduler.h 546 unsigned size() const { return Queue.size(); }
include/llvm/CodeGen/PBQP/Graph.h 75 AdjEdgeIdx Idx = AdjEdgeIds.size();
181 assert(NId < Nodes.size() && "Out of bound NodeId");
185 assert(NId < Nodes.size() && "Out of bound NodeId");
199 NId = Nodes.size();
214 EId = Edges.size();
239 : CurNId(CurNId), EndNId(G.Nodes.size()), FreeNodeIds(G.FreeNodeIds) {
263 : CurEId(CurEId), EndEId(G.Edges.size()), FreeEdgeIds(G.FreeEdgeIds) {
289 NodeItr end() const { return NodeItr(G.Nodes.size(), G); }
294 return G.Nodes.size() - G.FreeNodeIds.size();
294 return G.Nodes.size() - G.FreeNodeIds.size();
306 EdgeItr end() const { return EdgeItr(G.Edges.size(), G); }
501 return getNode(NId).getAdjEdgeIds().size();
include/llvm/CodeGen/RegAllocPBQP.h 100 : NumOpts(OptVec.size()), Opts(new unsigned[NumOpts]) {
include/llvm/CodeGen/ResourcePriorityQueue.h 84 NumNodesSolelyBlocking.resize(SUnits->size(), 0);
94 assert(NodeNum < (*SUnits).size());
99 assert(NodeNum < NumNodesSolelyBlocking.size());
include/llvm/CodeGen/ScheduleDAGInstrs.h 388 SUnits.emplace_back(MI, (unsigned)SUnits.size());
include/llvm/CodeGen/ScheduleDFS.h 163 unsigned getNumSubtrees() const { return SubtreeConnectLevels.size(); }
172 assert(SU->NodeNum < DFSNodeData.size() && "New Node");
include/llvm/CodeGen/TargetLowering.h 3486 NumFixedArgs = ArgsList.size();
3499 NumFixedArgs = ArgsList.size();
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h 146 Size = static_cast<SizeType>(Items.size());
156 Size = static_cast<SizeType>(Items.size());
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h 59 unsigned size() const { return (unsigned)Instructions.size(); }
include/llvm/DebugInfo/DWARF/DWARFListTable.h 120 if (Index < Offsets.size())
include/llvm/DebugInfo/DWARF/DWARFUnit.h 241 assert(Die >= First && Die < First + DieArray.size());
445 return DieArray.size();
460 assert(Index < DieArray.size());
include/llvm/DebugInfo/GSYM/LineTable.h 159 return Lines.size();
162 assert(i < Lines.size());
166 assert(i < Lines.size());
182 const auto LHSSize = Lines.size();
183 const auto RHSSize = RHS.Lines.size();
include/llvm/DebugInfo/GSYM/Range.h 85 size_t size() const { return Ranges.size(); }
90 assert(i < Ranges.size());
include/llvm/DebugInfo/MSF/MappedBlockStream.h 75 uint32_t getNumBlocks() const { return StreamLayout.Blocks.size(); }
include/llvm/DebugInfo/PDB/Native/HashTable.h 82 while (Index < Map->Buckets.size()) {
212 uint32_t capacity() const { return Buckets.size(); }
include/llvm/DebugInfo/PDB/Native/SymbolCache.h 56 SymIndexId Id = Cache.size();
86 SymIndexId Id = Cache.size();
118 SymIndexId SymId = Cache.size();
include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h 60 uint32_t getRecordCount() const { return TypeRecords.size(); }
include/llvm/ExecutionEngine/JITLink/JITLink.h 231 size_t edges_size() const { return Edges.size(); }
726 std::unique_ptr<Section> Sec(new Section(Name, Prot, Sections.size()));
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 214 SourceModuleHandle H = SourceModules.size();
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h 362 if (NumStubs <= FreeStubs.size())
365 unsigned NewStubsRequired = NumStubs - FreeStubs.size();
366 unsigned NewBlockId = IndirectStubsInfos.size();
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h 401 if (NumStubs <= FreeStubs.size())
404 unsigned NewStubsRequired = NumStubs - FreeStubs.size();
414 unsigned NewBlockId = RemoteIndirectStubsInfos.size();
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h 175 int ArgC = Args.size() + 1;
include/llvm/ExecutionEngine/Orc/RPCSerialization.h 585 if (auto Err = serializeSeq(C, static_cast<uint64_t>(V.size())))
include/llvm/FuzzMutate/IRMutator.h 87 return Operations.size();
include/llvm/IR/DebugInfoMetadata.h 2326 unsigned getNumElements() const { return Elements.size(); }
2329 assert(I < Elements.size() && "Index out of range");
include/llvm/IR/InstrTypes.h 1077 size_t input_size() const { return Inputs.size(); }
include/llvm/IR/ModuleSummaryIndex.h 1040 if (!S.second.SummaryList.size() ||
include/llvm/IR/PassManager.h 504 for (unsigned Idx = 0, Size = Passes.size(); Idx != Size; ++Idx) {
include/llvm/IR/TypeFinder.h 56 size_t size() const { return StructTypes.size(); }
include/llvm/LTO/legacy/LTOModule.h 134 return _symbols.size();
139 if (index < _symbols.size())
146 if (index < _symbols.size())
152 if (index < _symbols.size())
include/llvm/MC/MCAssembler.h 342 size_t size() const { return Sections.size(); }
358 size_t symbol_size() const { return Symbols.size(); }
385 size_t indirect_symbol_size() const { return IndirectSymbols.size(); }
414 size_t data_region_size() const { return DataRegions.size(); }
include/llvm/MC/MCDwarf.h 602 return StringRef(&Values[0], Values.size());
include/llvm/MC/MCStreamer.h 282 unsigned getNumWinFrameInfos() { return WinFrameInfos.size(); }
include/llvm/Object/TapiUniversal.h 89 return ObjectForArch(this, Architectures.size());
96 uint32_t getNumberOfObjects() const { return Architectures.size(); }
include/llvm/Object/Wasm.h 146 uint32_t getNumberOfSymbols() const { return Symbols.size(); }
include/llvm/Option/OptTable.h 89 unsigned getNumOptions() const { return OptionInfos.size(); }
include/llvm/ProfileData/Coverage/CoverageMapping.h 437 size_t size() const { return Instantiations.size(); }
447 for (unsigned I = 1, E = Instantiations.size(); I < E; ++I)
552 unsigned getMismatchedCount() const { return FuncHashMismatches.size(); }
include/llvm/ProfileData/InstrProfData.inc 237 llvm::ConstantInt::get(Int32Ty, FunctionRecords.size()))
include/llvm/Remarks/RemarkParser.h 74 size_t size() const { return Offsets.size(); }
include/llvm/Support/BinaryByteStream.h 170 uint32_t getLength() override { return Data.size(); }
186 if (RequiredSize > Data.size())
include/llvm/Support/CommandLine.h 1472 size_type size() const { return Storage.size(); }
include/llvm/Support/FormatVariadic.h 102 Adapters.reserve(rhs.Adapters.size());
113 if (R.Index >= Adapters.size()) {
include/llvm/Support/GenericDomTree.h 93 size_t getNumChildren() const { return Children.size(); }
799 for (i = 0; i < PredBlocks.size(); ++i)
810 for (i = i + 1; i < PredBlocks.size(); ++i) {
include/llvm/Support/GenericDomTreeConstruction.h 305 const unsigned NextDFSNum(NumToNode.size());
358 assert(NumToNode.size() == 1 && "SNCAInfo must be freshly constructed");
598 for (size_t i = 1, e = NumToNode.size(); i != e; ++i) {
620 for (size_t i = 1, e = NumToNode.size(); i != e; ++i) {
include/llvm/Support/JSON.h 184 size_t size() const { return V.size(); }
include/llvm/Support/SourceMgr.h 103 bool isValidBufferID(unsigned i) const { return i && i <= Buffers.size(); }
138 return Buffers.size();
159 return Buffers.size();
include/llvm/Support/YAMLTraits.h 1885 static size_t size(IO &io, T &seq) { return seq.size(); }
1888 if (index >= seq.size())
include/llvm/Testing/Support/Error.h 95 if (Holder.Infos.size() > 1) {
include/llvm/Transforms/IPO/Attributor.h 609 SccSize[Node->getFunction()] = I->size();
include/llvm/Transforms/IPO/WholeProgramDevirt.h 46 if (Bytes.size() < Pos + Size) {
159 return minBeforeBytes() + TM->Bits->Before.Bytes.size();
165 return minAfterBytes() + TM->Bits->After.Bytes.size();
include/llvm/XRay/Trace.h 66 size_type size() const { return Records.size(); }
lib/Analysis/AliasSetTracker.cpp 226 for (unsigned i = 0, e = UnknownInsts.size(); i != e; ++i)
245 for (unsigned i = 0, e = UnknownInsts.size(); i != e; ++i) {
283 if (1 != UnknownInsts.size())
532 for (unsigned i = 0, e = AS.UnknownInsts.size(); i != e; ++i)
684 OS << "\n " << UnknownInsts.size() << " Unknown instructions: ";
685 for (unsigned i = 0, e = UnknownInsts.size(); i != e; ++i) {
lib/Analysis/BlockFrequencyInfoImpl.cpp 486 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) {
523 for (size_t Index = 0; Index < Working.size(); ++Index)
535 for (size_t Index = 0; Index < Working.size(); ++Index) {
601 assert(Node.Index < Freqs.size() && "Expected legal index");
640 for (uint32_t Index = 0; Index < BFI.Working.size(); ++Index)
781 if (I->size() < 2)
lib/Analysis/BranchProbabilityInfo.cpp 448 if (SccI.SccHeaders.size() <= static_cast<unsigned>(SccNum))
967 if (Scc.size() == 1)
lib/Analysis/CFLGraph.h 78 auto NumLevels = Levels.size();
86 assert(Level < Levels.size());
90 assert(Level < Levels.size());
94 unsigned getNumLevels() const { return Levels.size(); }
lib/Analysis/CallGraph.cpp 202 for (unsigned i = 0, e = CalledFunctions.size(); i != e; ++i)
lib/Analysis/CallGraphSCCPass.cpp 550 assert(i != Nodes.size() && "Node not in SCC");
lib/Analysis/GlobalsModRef.cpp 511 for (unsigned i = 0, e = SCC.size(); i != e && !KnowNothing; ++i) {
619 for (unsigned i = 1, e = SCC.size(); i != e; ++i)
lib/Analysis/IntervalPartition.cpp 34 for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
42 for(unsigned i = 0, e = Intervals.size(); i != e; ++i)
85 for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
111 for (unsigned i = 0, e = Intervals.size(); i != e; ++i)
lib/Analysis/MemoryDependenceAnalysis.cpp 778 Count = Cache.size();
830 unsigned NumSortedEntries = Cache.size();
1049 switch (Cache.size() - NumSortedEntries) {
1064 if (Cache.size() != 1) {
1228 unsigned NumSortedEntries = Cache->size();
1243 if (Cache && NumSortedEntries != Cache->size()) {
1326 if (Cache && NumSortedEntries != Cache->size()) {
1328 NumSortedEntries = Cache->size();
1420 NumSortedEntries = Cache->size();
1439 NumSortedEntries = Cache->size();
1511 for (unsigned i = 0, e = PInfo.size(); i != e; ++i) {
lib/Analysis/ModuleSummaryAnalysis.cpp 444 for (; RefCnt < Refs.size(); ++RefCnt)
787 assert(GlobalList.second.SummaryList.size() == 1 &&
lib/Analysis/StratifiedSets.h 110 bool inbounds(StratifiedIndex Idx) const { return Idx < Links.size(); }
274 StratifiedIndex Number = StratLinks.size();
317 for (unsigned I = 0, E = Links.size(); I < E; ++I) {
587 auto Link = Links.size();
592 bool inbounds(StratifiedIndex N) const { return N < Links.size(); }
lib/AsmParser/LLParser.cpp 551 unsigned VarID = NumberedVals.size();
946 auto I = ForwardRefValIDs.find(NumberedVals.size());
1072 auto I = ForwardRefValIDs.find(NumberedVals.size());
1440 GlobalValue *Val = ID < NumberedVals.size() ? NumberedVals[ID] : nullptr;
2912 Value *Val = ID < NumberedVals.size() ? NumberedVals[ID] : nullptr;
2960 NameID = NumberedVals.size();
2962 if (unsigned(NameID) != NumberedVals.size())
2964 Twine(NumberedVals.size()) + "'");
3024 if (NameID != -1 && unsigned(NameID) != NumberedVals.size()) {
3026 Twine(NumberedVals.size()) + "'");
3029 BB = GetBB(NumberedVals.size(), Loc);
3032 Twine(NumberedVals.size()) + "'");
3049 ForwardRefValIDs.erase(NumberedVals.size());
3250 if (Fn.UIntVal < NumberedVals.size())
5360 if (NameID != NumberedVals.size())
5362 Twine(NumberedVals.size()) + "'");
5466 auto I = ForwardRefValIDs.find(NumberedVals.size());
5471 Twine(NumberedVals.size()) + "' disagree: "
5527 ID.UIntVal = NumberedVals.size() - 1;
5583 if (!Fn.hasName()) FunctionNumber = NumberedVals.size()-1;
7426 GV = Fn.UIntVal < NumberedVals.size() ? NumberedVals[Fn.UIntVal] : nullptr;
7590 IdToIndexMap[GVId].push_back(std::make_pair(TI.size(), Loc));
7966 if (ID == NumberedValueInfos.size())
7970 if (ID > NumberedValueInfos.size())
8343 IdToIndexMap[GVId].push_back(std::make_pair(Calls.size(), Loc));
8430 IdToIndexMap[GVId].push_back(std::make_pair(VTableFuncs.size(), Loc));
8494 IdToIndexMap[VC.GVId].push_back(std::make_pair(Refs.size(), VC.Loc));
8586 IdToIndexMap[ID].push_back(std::make_pair(TypeTests.size(), Loc));
8626 if (ParseVFuncId(VFuncId, IdToIndexMap, VFuncIdList.size()))
8665 if (ParseConstVCall(ConstVCall, IdToIndexMap, ConstVCallList.size()))
8868 if (GVId < NumberedValueInfos.size()) {
lib/Bitcode/Reader/BitcodeAnalyzer.cpp 110 for (unsigned i = 0, e = Info->RecordNames.size(); i != e; ++i)
686 for (unsigned i = 0, e = Stats.CodeFreq.size(); i != e; ++i)
694 for (unsigned i = 0, e = FreqPairs.size(); i != e; ++i) {
847 if (BlockStats.CodeFreq.size() <= Code)
lib/Bitcode/Reader/BitcodeReader.cpp 639 if (ID >= FunctionBBs.size()) return nullptr; // Invalid ID
644 if (i-1 < MAttributes.size())
1187 if (ID >= TypeList.size())
1698 if (NumRecords != TypeList.size())
1846 if (NumRecords >= TypeList.size())
1875 if (NumRecords >= TypeList.size())
1911 if (NumRecords >= TypeList.size())
2372 if (Record[0] >= TypeList.size() || !TypeList[Record[0]])
2811 if (FwdBBs.size() < BBID + 1)
2875 assert(ID < FunctionBBs.size() && "Basic block not found");
3120 if (Record[5] - 1 >= SectionTable.size())
3167 if (ComdatID > ComdatList.size())
3251 if (Record[6] - 1 >= SectionTable.size())
3260 if (Record[8] - 1 >= GCTable.size())
3278 if (ComdatID > ComdatList.size())
3801 for (unsigned i = 0, e = FunctionBBs.size(); i != e; ++i)
3806 if (BBRefs.size() > FunctionBBs.size())
3806 if (BBRefs.size() > FunctionBBs.size())
3810 for (unsigned I = 0, E = FunctionBBs.size(), RE = BBRefs.size(); I != E;
3810 for (unsigned I = 0, E = FunctionBBs.size(), RE = BBRefs.size(); I != E;
5105 if (Record.size() < 1 || Record[0] >= BundleTags.size())
5138 CurBB = CurBBNo < FunctionBBs.size() ? FunctionBBs[CurBBNo] : nullptr;
5734 assert(ROCnt + WOCnt <= Refs.size());
5735 unsigned FirstWORef = Refs.size() - WOCnt;
5739 for (; RefNo < Refs.size(); ++RefNo)
6627 if (MsOrErr->size() != 1)
lib/Bitcode/Reader/MetadataLoader.cpp 649 if (ID < MDStringRef.size())
655 if (ID < (MDStringRef.size() + GlobalMetadataBitPosIndex.size())) {
655 if (ID < (MDStringRef.size() + GlobalMetadataBitPosIndex.size())) {
916 MetadataList.resize(MDStringRef.size() +
917 GlobalMetadataBitPosIndex.size());
986 assert(ID < (MDStringRef.size()) + GlobalMetadataBitPosIndex.size());
986 assert(ID < (MDStringRef.size()) + GlobalMetadataBitPosIndex.size());
987 assert(ID >= MDStringRef.size() && "Unexpected lazy-loading of MDString");
997 GlobalMetadataBitPosIndex[ID - MDStringRef.size()]))
1057 if (ID < MDStringRef.size())
1064 if (ID < (MDStringRef.size() + GlobalMetadataBitPosIndex.size())) {
1064 if (ID < (MDStringRef.size() + GlobalMetadataBitPosIndex.size())) {
2034 if (Idx < (MDStringRef.size() + GlobalMetadataBitPosIndex.size()) &&
2034 if (Idx < (MDStringRef.size() + GlobalMetadataBitPosIndex.size()) &&
lib/Bitcode/Reader/ValueList.h 64 unsigned size() const { return ValuePtrs.size(); }
81 assert(i < ValuePtrs.size());
lib/Bitcode/Writer/BitcodeWriter.cpp 189 GlobalValueId = VE.getValues().size();
794 for (unsigned i = 0, e = Attrs.size(); i != e; ++i) {
864 TypeVals.push_back(TypeList.size());
869 for (unsigned i = 0, e = TypeList.size(); i != e; ++i) {
2539 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
2541 writeConstants(i, Vals.size(), true);
3134 assert(Order.Shuffle.size() >= 2 && "Shuffle too small");
3180 Vals.push_back(VE.getBasicBlocks().size());
3425 Log2_32_Ceil(VE.getTypes().size() + 1)));
3581 NameVals.push_back(args.size());
4419 {Strtab.data(), Strtab.size()});
lib/Bitcode/Writer/ValueEnumerator.cpp 234 assert(List.size() == Stack.back().Shuffle.size() && "Wrong size");
345 unsigned FirstConstant = Values.size();
435 OptimizeConstants(FirstConstant, Values.size());
645 MetadataMap[N].ID = MDs.size();
680 Entry.ID = MDs.size();
704 Index.ID = MDs.size();
726 assert(MetadataMap.size() == MDs.size() &&
754 MDs.reserve(OldMDs.size());
764 if (MDs.size() == Order.size())
769 FunctionMDs.reserve(OldMDs.size());
771 for (unsigned I = MDs.size(), E = Order.size(), ID = MDs.size(); I != E;
771 for (unsigned I = MDs.size(), E = Order.size(), ID = MDs.size(); I != E;
781 ID = MDs.size();
796 NumModuleMDs = MDs.size();
843 ValueMap[V] = Values.size();
850 ValueID = Values.size();
887 *TypeID = Types.size();
926 Entry = AttributeLists.size();
938 Entry = AttributeGroups.size();
945 NumModuleValues = Values.size();
957 FirstFuncConstantID = Values.size();
967 ValueMap[&BB] = BasicBlocks.size();
971 OptimizeConstants(FirstFuncConstantID, Values.size());
977 FirstInstID = Values.size();
1007 for (unsigned i = NumModuleValues, e = Values.size(); i != e; ++i)
1009 for (unsigned i = NumModuleMDs, e = MDs.size(); i != e; ++i)
1011 for (unsigned i = 0, e = BasicBlocks.size(); i != e; ++i)
1040 return Log2_32_Ceil(getTypes().size() + 1);
lib/Bitcode/Writer/ValueEnumerator.h 163 unsigned numMDs() const { return MDs.size(); }
201 bool hasMDs() const { return NumModuleMDs < MDs.size(); }
lib/CodeGen/AggressiveAntiDepBreaker.cpp 113 unsigned idx = GroupNodes.size();
575 for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
598 for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
660 for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
773 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
785 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
850 for (unsigned i = 0, e = Edges.size(); i != e; ++i) {
lib/CodeGen/Analysis.cpp 181 for (unsigned i = 0, e = CInfos.size(); i != e; ++i) {
183 for (unsigned j = 0, ee = CI.Codes.size(); j != ee; ++j) {
lib/CodeGen/AsmPrinter/ARMException.cpp 106 Entry = TypeInfos.size();
lib/CodeGen/AsmPrinter/AccelTable.cpp 344 Asm->emitInt32(Hash->Values.size());
438 Index += Bucket.value().size();
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 718 for (unsigned i = 0, e = DeadBlockSyms.size(); i != e; ++i) {
1716 for (unsigned i = 0, e = CP.size(); i != e; ++i) {
1815 for (unsigned JTI = 0, e = JT.size(); JTI != e; ++JTI) {
1828 for (unsigned ii = 0, ee = JTBBs.size(); ii != ee; ++ii) {
1853 for (unsigned ii = 0, ee = JTBBs.size(); ii != ee; ++ii)
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp 52 if (BufNum > 0 && BufNum <= DiagInfo->LocInfos.size())
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 2416 if (Methods.size() == 1)
2424 OverloadedMethodRecord OMR(Methods.size(), MethodList, Name);
lib/CodeGen/AsmPrinter/DIE.cpp 162 New->setNumber(Abbreviations.size());
163 Die.setAbbrevNumber(Abbreviations.size());
lib/CodeGen/AsmPrinter/DebugLocStream.h 99 Entries.push_back({BeginSym, EndSym, DWARFBytes.size(), Comments.size()});
150 return Comments.size() - Entries[EI].CommentOffset;
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 218 const char *Comment = (Byte.index() < TmpBuf->Comments.size())
2360 } else if (NewBase != Begin || P.second.size() > 1) {
2600 ContentSize += (List.size() + 1) * TupleSize;
lib/CodeGen/AsmPrinter/DwarfExpression.cpp 460 unsigned I = 0, E = CU.ExprRefedBaseTypes.size();
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 105 for (unsigned j = 0, M = DIEBlocks.size(); j < M; ++j)
107 for (unsigned j = 0, M = DIELocs.size(); j < M; ++j)
lib/CodeGen/AsmPrinter/EHStreamer.cpp 47 unsigned LSize = LIds.size(), RSize = RIds.size();
47 unsigned LSize = LIds.size(), RSize = RIds.size();
89 FilterOffsets.reserve(FilterIds.size());
111 if (NumShared < TypeIds.size()) {
117 unsigned SizePrevIds = PrevLPI->TypeIds.size();
132 for (unsigned J = NumShared, M = TypeIds.size(); J != M; ++J) {
358 LandingPads.reserve(PadInfos.size());
360 for (unsigned i = 0, N = PadInfos.size(); i != N; ++i)
625 Entry = TypeInfos.size();
lib/CodeGen/BranchFolding.cpp 229 BitVector JTIsLive(JTI->getJumpTables().size());
795 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) {
892 std::vector<MachineBasicBlock::iterator> NextCommonInsts(SameTails.size());
893 for (unsigned int i = 0 ; i != SameTails.size() ; ++i) {
907 for (unsigned int i = 0 ; i < NextCommonInsts.size() ; i++) {
967 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i) dbgs()
984 while (MergePotentials.size() > 1) {
1006 unsigned commonTailIndex = SameTails.size();
1009 if (SameTails.size() == 2 &&
1013 else if (SameTails.size() == 2 &&
1021 for (unsigned i = 0, e = SameTails.size(); i != e; ++i) {
1034 if (commonTailIndex == SameTails.size() ||
1059 for (unsigned int i=0, e = SameTails.size(); i != e; ++i) {
1086 if (MergePotentials.size() == TailMergeThreshold)
1094 if (MergePotentials.size() == TailMergeThreshold)
1095 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i)
1099 if (MergePotentials.size() >= 2)
1147 if (MergePotentials.size() == TailMergeThreshold)
1205 if (MergePotentials.size() == TailMergeThreshold)
1206 for (unsigned i = 0, e = MergePotentials.size(); i != e; ++i)
1209 if (MergePotentials.size() >= 2)
1215 if (MergePotentials.size() == 1 &&
lib/CodeGen/CodeGenPrepare.cpp 4395 for (unsigned i = 0, e = TargetConstraints.size(); i != e; ++i) {
5039 for (unsigned i = 0, e = TargetConstraints.size(); i != e; ++i) {
6889 if (UGEPIs.size() == 0)
lib/CodeGen/CriticalAntiDepBreaker.cpp 454 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
lib/CodeGen/DFAPacketizer.cpp 67 assert((InsnClass.size() <= DFA_MAX_RESTERMS) &&
220 if (CurrentPacketMIs.size() > 1) {
lib/CodeGen/ExecutionDomainFix.cpp 20 assert(Reg < AliasMap.size() && "Invalid register");
lib/CodeGen/ExpandMemCmp.cpp 296 if (BlockIndex < (LoadCmpBlocks.size() - 1)) {
379 for (unsigned i = 0; i < InList.size() - 1; i = i + 2) {
383 if (InList.size() % 2 != 0)
393 while (OrList.size() != 1) {
408 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1))
419 if (BlockIndex == LoadCmpBlocks.size() - 1) {
479 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1))
490 if (BlockIndex == LoadCmpBlocks.size() - 1) {
lib/CodeGen/FaultMaps.cpp 87 LLVM_DEBUG(dbgs() << WFMP << " #faulting PCs: " << FFI.size() << "\n");
88 OS.EmitIntValue(FFI.size(), 4);
lib/CodeGen/GlobalISel/CombinerHelper.cpp 970 for (unsigned i = 1; i < MemOps.size(); i++)
987 for (unsigned I = 0; I < MemOps.size(); I++) {
993 assert(I == MemOps.size() - 1 && I != 0);
1228 for (unsigned I = 0; I < MemOps.size(); ++I) {
lib/CodeGen/GlobalISel/LegalizerInfo.cpp 532 if (v.size() >= 1 && v[0].first != 1)
534 for (size_t i = 0; i < v.size(); ++i) {
537 if (i + 1 < v.size() && v[i + 1].first != v[i].first + 1) {
551 if (v.size() == 0 || v[0].first != 1)
553 for (size_t i = 0; i < v.size(); ++i) {
555 if (i + 1 == v.size() || v[i + 1].first != v[i].first + 1) {
603 for (std::size_t i = VecIdx + 1; i < Vec.size(); ++i)
lib/CodeGen/GlobalMerge.cpp 300 EncounteredUGS.resize(UsedGlobalSets.size());
343 CurGVOnlySetIdx = UsedGlobalSets.size();
373 UsedGlobalSets.size();
399 for (size_t i = 0, e = UsedGlobalSets.size(); i != e; ++i) {
418 for (size_t i = 0, e = UsedGlobalSets.size(); i != e; ++i) {
490 if (Tys.size() < 2) {
lib/CodeGen/InlineSpiller.cpp 1295 unsigned NumChildren = Children.size();
1366 unsigned NumChildren = Children.size();
lib/CodeGen/LatencyPriorityQueue.cpp 146 dbgs() << " Number of Queue Entries: " << Queue.size() << "\n";
lib/CodeGen/LiveVariables.cpp 61 for (unsigned i = 0, e = Kills.size(); i != e; ++i)
77 for (unsigned i = 0, e = Kills.size(); i != e; ++i)
100 for (unsigned i = 0, e = VRInfo.Kills.size(); i != e; ++i)
148 for (unsigned i = 0, e = VRInfo.Kills.size(); i != e; ++i)
657 for (unsigned j = 0, e2 = VirtRegInfo[Reg].Kills.size(); j != e2; ++j)
742 for (unsigned i = 0, e = VI.Kills.size(); i != e; ++i)
lib/CodeGen/MIRCanonicalizerPass.cpp 296 PseudoIdempotentInstCount = PseudoIdempotentInstructions.size();
468 dbgs() << "Total Basic Blocks: " << RPOList.size() << "\n";
lib/CodeGen/MIRParser/MIParser.cpp 1745 if (GVIdx >= PFS.IRSlots.GlobalValues.size())
lib/CodeGen/MIRParser/MIRParser.cpp 379 if (YamlMF.CallSitesInfo.size() && !TM.Options.EnableDebugEntryValues)
lib/CodeGen/MIRVRegNamerUtils.cpp 310 if (VRegs.size() == 0)
lib/CodeGen/MachineBasicBlock.cpp 650 Probs.size() &&
1345 return Sum.getCompl() / (Probs.size() - KnownProbNum);
1363 assert(Probs.size() == Successors.size() && "Async probability list!");
1363 assert(Probs.size() == Successors.size() && "Async probability list!");
1365 assert(index < Probs.size() && "Not a current successor!");
1372 assert(Probs.size() == Successors.size() && "Async probability list!");
1372 assert(Probs.size() == Successors.size() && "Async probability list!");
1374 assert(index < Probs.size() && "Not a current successor!");
lib/CodeGen/MachineBlockPlacement.cpp 1158 unsigned count() const { return Edges.size() - 1; }
lib/CodeGen/MachineCSE.cpp 750 OpenChildren[Node] = Children.size();
lib/CodeGen/MachineFrameInfo.cpp 58 int Index = (int)Objects.size() - NumFixedObjects - 1;
68 int Index = (int)Objects.size() - NumFixedObjects - 1;
79 return (int)Objects.size()-NumFixedObjects-1;
222 for (unsigned i = 0, e = Objects.size(); i != e; ++i) {
lib/CodeGen/MachineFunction.cpp 281 return FrameInstructions.size() - 1;
321 assert(BlockNo <= MBBNumbering.size() && "Mismatch!");
612 assert(JTI < JumpTableInfo->getJumpTables().size() && "Invalid JTI!");
634 unsigned N = LandingPads.size();
717 for (unsigned i = 0; i != LandingPads.size(); ) {
755 (LandingPad.TypeIds.size() == 1 && !LandingPad.TypeIds[0]))
791 for (unsigned i = 0, N = TypeInfos.size(); i != N; ++i)
795 return TypeInfos.size();
804 unsigned i = *I, j = TyIds.size();
818 int FilterID = -(1 + FilterIds.size());
819 FilterIds.reserve(FilterIds.size() + TyIds.size() + 1);
819 FilterIds.reserve(FilterIds.size() + TyIds.size() + 1);
821 FilterEnds.push_back(FilterIds.size());
908 return JumpTables.size()-1;
917 for (size_t i = 0, e = JumpTables.size(); i != e; ++i)
930 for (size_t j = 0, e = JTE.MBBs.size(); j != e; ++j)
943 for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) {
945 for (unsigned j = 0, f = JumpTables[i].MBBs.size(); j != f; ++j)
1002 for (unsigned i = 0, e = Constants.size(); i != e; ++i)
1068 for (unsigned i = 0, e = Constants.size(); i != e; ++i)
1077 return Constants.size()-1;
1095 return Constants.size()-1;
1102 for (unsigned i = 0, e = Constants.size(); i != e; ++i) {
lib/CodeGen/MachineLICM.cpp 699 unsigned NumChildren = Children.size();
lib/CodeGen/MachineModuleInfo.cpp 117 Entry.Index = BBCallbacks.size() - 1;
256 for (unsigned i = 0; i < Personalities.size(); ++i)
lib/CodeGen/MachineOutliner.cpp 480 for (unsigned PfxEndIdx = 0, End = Str.size(); PfxEndIdx < End;
550 if (LeafChildren.size() >= 2) {
961 << " from " << NV("NumOccurrences", CandidatesForRepeatedSeq.size())
970 for (unsigned i = 1, e = CandidatesForRepeatedSeq.size(); i < e; i++) {
994 for (size_t i = 0, e = OF.Candidates.size(); i < e; i++) {
1056 EndIt, MBB, FunctionList.size(),
1064 if (CandidatesForRepeatedSeq.size() < 2)
1077 if (OF.Candidates.size() < 2)
lib/CodeGen/MachinePipeliner.cpp 1115 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
1143 BitVector Added(SUnits.size());
1145 for (int i = 0, e = SUnits.size(); i != e; ++i) {
1260 for (int i = 0, e = SUnits.size(); i != e; ++i) {
1364 ScheduleInfo.resize(SUnits.size());
1429 for (unsigned i = 0; i < SUnits.size(); i++) {
1726 for (unsigned i = 0; i < SUnits.size(); ++i) {
2643 for (int i = 0, e = SSD->SUnits.size(); i < e; ++i) {
2830 for (int i = 0, e = SSD->SUnits.size(); i != e; ++i) {
lib/CodeGen/MachineRegisterInfo.cpp 474 for (unsigned i = 0, e = LiveIns.size(); i != e; ++i)
lib/CodeGen/MachineScheduler.cpp 1051 for (unsigned i = 0, e = RegionPressure.size(); i < e; ++i) {
1070 unsigned CritIdx = 0, CritEnd = RegionCriticalPSets.size();
1284 DFSResult->resize(SUnits.size());
1607 unsigned ChainPredID = DAG->SUnits.size();
lib/CodeGen/PostRASchedulerList.cpp 256 for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
535 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
550 Sequence.reserve(SUnits.size());
555 for (unsigned i = 0, e = PendingQueue.size(); i != e; ++i) {
662 for (unsigned i = 0, e = Sequence.size(); i != e; ++i)
665 assert(Sequence.size() - Noops == ScheduledNodes &&
679 for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
lib/CodeGen/PrologEpilogInserter.cpp 506 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/CodeGen/RegAllocPBQP.cpp 660 PBQPRAGraph::RawVector NodeCosts(VRegAllowed.size() + 1, 0);
664 for (unsigned i = 0; i != VRegAllowed.size(); ++i)
lib/CodeGen/RegisterCoalescer.cpp 3650 for (unsigned i = 0, e = MBBs.size(); i != e; ++i) {
lib/CodeGen/ScheduleDAG.cpp 434 return SUnits.size() - DeadNodes;
470 unsigned DAGSize = SUnits.size();
573 WorkList.reserve(SUnits.size());
584 if (s >= Node2Index.size())
613 WorkList.reserve(SUnits.size());
646 VisitedBack.resize(SUnits.size());
lib/CodeGen/ScheduleDAGInstrs.cpp 741 PDiffs->init(SUnits.size());
1059 assert(N <= NodeNums.size());
1238 SchedDFSImpl(SchedDFSResult &r): R(r), SubtreeClasses(R.DFSNodeData.size()) {
1239 RootSet.setUniverse(R.DFSNodeData.size());
1334 for (unsigned Idx = 0, End = R.DFSNodeData.size(); Idx != End; ++Idx) {
lib/CodeGen/SelectionDAG/FastISel.cpp 2255 FuncInfo.OrigNumPHINodesToUpdate = FuncInfo.PHINodesToUpdate.size();
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp 165 NumNodesSolelyBlocking.resize(SUnits->size(), 0);
167 for (unsigned i = 0, e = SUnits->size(); i != e; ++i) {
267 for (unsigned i = 0, e = Packet.size(); i != e; ++i)
313 if (Packet.size() >= InstrItins->SchedModel.IssueWidth) {
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp 542 Sequence.reserve(SUnits.size());
768 unsigned NumNodes = Sequence.size();
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp 278 unsigned NumSUnits = SUnits.size();
288 unsigned NumSUnits = SUnits.size();
611 for (unsigned i = 0, e = PendingQueue.size(); i != e; ++i) {
930 unsigned LookAhead = std::min((unsigned)Sequence.size(),
1611 Sequence.reserve(SUnits.size());
2010 SethiUllmanNumbers.assign(SUnits->size(), 0);
2017 unsigned SUSize = SethiUllmanNumbers.size();
2018 if (SUnits->size() > SUSize)
2031 assert(SU->NodeNum < SethiUllmanNumbers.size());
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp 74 SUnits.emplace_back(N, (unsigned)SUnits.size());
443 for (unsigned su = 0, e = SUnits.size(); su != e; ++su) {
706 for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
722 for (unsigned i = 0, e = Sequence.size(); i != e; ++i)
725 assert(Sequence.size() - Noops == ScheduledNodes &&
887 for (unsigned i = 0, e = Sequence.size(); i != e; i++) {
lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp 173 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
184 Sequence.reserve(SUnits.size());
188 for (unsigned i = 0, e = PendingQueue.size(); i != e; ++i) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 1510 ValueTypeNodes.size())
1550 if ((unsigned)Cond >= CondCodeNodes.size())
5836 unsigned NumMemOps = MemOps.size();
6010 unsigned NumMemOps = MemOps.size();
6107 unsigned NumMemOps = MemOps.size();
8419 for (size_t I = 0; I != Order.size(); ++I) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 2196 if (Cases.size() != 2) return true;
2279 for (unsigned i = 1, e = SL->SwitchCases.size(); i != e; ++i) {
2292 for (unsigned i = 1, e = SL->SwitchCases.size(); i != e; ++i)
2910 for (unsigned i = 0, e = SL->JTCases.size(); i != e; ++i)
2915 for (unsigned i = 0, e = SL->BitTestCases.size(); i != e; ++i)
8331 InlineAsm::getFlagWord(InlineAsm::Kind_Imm, Ops.size());
9097 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
9111 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
10447 if (SwitchPeelThreshold > 100 || !FuncInfo.BPI || Clusters.size() < 2 ||
10455 for (unsigned Index = 0; Index < Clusters.size(); ++Index) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 1698 << FuncInfo->PHINodesToUpdate.size() << "\n";
1699 for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e;
1706 for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i) {
1831 for (unsigned pi = 0, pe = FuncInfo->PHINodesToUpdate.size();
1860 for (unsigned i = 0, e = SDB->SL->JTCases.size(); i != e; ++i) {
1884 for (unsigned pi = 0, pe = FuncInfo->PHINodesToUpdate.size();
1903 for (unsigned i = 0, e = SDB->SL->SwitchCases.size(); i != e; ++i) {
1940 assert(pn != FuncInfo->PHINodesToUpdate.size() &&
2040 unsigned i = InlineAsm::Op_FirstOperand, e = InOps.size();
2075 InlineAsm::getFlagWord(InlineAsm::Kind_Mem, SelOps.size());
2084 if (e != InOps.size())
2842 if (N.getOpcode() < OpcodeOffset.size())
2861 if (Opc >= OpcodeOffset.size())
2868 if (N.getOpcode() < OpcodeOffset.size())
lib/CodeGen/SelectionDAG/TargetLowering.cpp 4197 if (OpInfo.multipleAlternatives.size() > maCount)
4198 maCount = OpInfo.multipleAlternatives.size();
4283 for (unsigned cIndex = 0, eIndex = ConstraintOperands.size();
4320 for (unsigned cIndex = 0, eIndex = ConstraintOperands.size();
4331 for (unsigned cIndex = 0, eIndex = ConstraintOperands.size();
4387 if (maIndex >= (int)info.multipleAlternatives.size())
4394 for (unsigned i = 0, e = rCodes->size(); i != e; ++i) {
4476 assert(OpInfo.Codes.size() > 1 && "Doesn't have multiple constraint options");
4482 for (unsigned i = 0, e = OpInfo.Codes.size(); i != e; ++i) {
4530 if (OpInfo.Codes.size() == 1) {
lib/CodeGen/ShadowStackGCLowering.cpp 108 for (unsigned I = 0; I != Roots.size(); ++I) {
119 ConstantInt::get(Int32Ty, Roots.size(), false),
159 for (size_t I = 0; I != Roots.size(); I++)
322 for (unsigned I = 0, E = Roots.size(); I != E; ++I) {
365 for (unsigned I = 0, E = Roots.size(); I != E; ++I) {
lib/CodeGen/StackMaps.cpp 427 LLVM_DEBUG(dbgs() << WSMP << "#callsites = " << CSInfos.size() << '\n');
428 OS.EmitIntValue(CSInfos.size(), 4);
lib/CodeGen/StackSlotColoring.cpp 331 for (unsigned i = 0, e = SSIntervals.size(); i != e; ++i) {
344 for (unsigned i = 0, e = SSIntervals.size(); i != e; ++i) {
353 for (unsigned i = 0, e = SSIntervals.size(); i != e; ++i)
lib/CodeGen/SwitchLoweringUtils.cpp 51 for (unsigned i = 1, e = Clusters.size(); i < e; ++i)
63 const int64_t N = Clusters.size();
256 JTCases.size() - 1, Prob);
271 for (unsigned i = 1; i < Clusters.size(); ++i)
285 const int64_t N = Clusters.size();
416 for (j = 0; j < CBV.size(); ++j)
419 if (j == CBV.size())
455 BitTestCases.size() - 1, TotalProb);
470 const unsigned N = Clusters.size();
lib/CodeGen/TailDuplicator.cpp 202 for (unsigned j = 0, ee = LI->second.size(); j != ee; ++j) {
502 for (unsigned j = 0, ee = LI->second.size(); j != ee; ++j) {
lib/CodeGen/UnreachableBlockElim.cpp 150 for (unsigned i = 0, e = DeadBlocks.size(); i != e; ++i) {
lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp 67 Size += sizeof(support::ulittle32_t) * Item.second.size();
89 Imp.Count = Item->getValue().size();
lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp 37 uint32_t Size = sizeof(FrameData) * Frames.size();
lib/DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp 71 Size += Entries.size() * sizeof(InlineeSourceLineHeader);
74 Size += Entries.size() * sizeof(uint32_t);
98 if (auto EC = Writer.writeInteger<uint32_t>(E.ExtraFiles.size()))
lib/DebugInfo/CodeView/DebugLinesSubsection.cpp 94 assert(B.Lines.size() == B.Columns.size());
94 assert(B.Lines.size() == B.Columns.size());
115 assert(B.Lines.size() == B.Columns.size() || B.Columns.empty());
115 assert(B.Lines.size() == B.Columns.size() || B.Columns.empty());
117 BlockHeader.NumLines = B.Lines.size();
141 Size += B.Lines.size() * sizeof(LineNumberEntry);
143 Size += B.Columns.size() * sizeof(ColumnNumberEntry);
lib/DebugInfo/CodeView/DebugSymbolRVASubsection.cpp 34 return RVAs.size() * sizeof(uint32_t);
lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp 139 if (Records.size() <= Index.toArrayIndex())
148 uint32_t LazyRandomTypeCollection::capacity() { return Records.size(); }
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp 526 Values.reserve(Abbr.Attributes.size());
533 assert(Abbr->Attributes.size() == Values.size());
567 assert(Abbr->Attributes.size() == Values.size());
lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp 65 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size())
lib/DebugInfo/DWARF/DWARFDebugAddr.cpp 150 if (Addrs.size() > 0) {
161 if (Index < Addrs.size())
lib/DebugInfo/DWARF/DWARFDebugLine.cpp 73 return FileIndex < FileNames.size();
74 return FileIndex != 0 && FileIndex <= FileNames.size();
116 for (uint32_t I = 0; I != StandardOpcodeLengths.size(); ++I)
123 for (uint32_t I = 0; I != IncludeDirectories.size(); ++I) {
133 for (uint32_t I = 0; I != FileNames.size(); ++I) {
483 unsigned RowNumber = LineTable->Rows.size();
824 assert(Opcode - 1U < Prologue.StandardOpcodeLengths.size());
1060 if (Entry.DirIdx < IncludeDirectories.size())
1063 if (0 < Entry.DirIdx && Entry.DirIdx <= IncludeDirectories.size())
lib/DebugInfo/DWARF/DWARFExpression.cpp 112 if (OpCode >= Descriptions.size())
lib/DebugInfo/DWARF/DWARFUnit.cpp 376 Dies.reserve(Dies.size() + getDebugInfoSize() / 14);
413 DieArray.size() > 1)
548 if (DieArray.size() > (unsigned)KeepCUDie) {
708 for (size_t I = getDIEIndex(Die) + 1, EndIdx = DieArray.size(); I < EndIdx;
741 if (I >= DieArray.size())
751 for (size_t I = getDIEIndex(Die) + 1, EndIdx = DieArray.size(); I < EndIdx;
lib/DebugInfo/DWARF/DWARFVerifier.cpp 710 uint32_t MaxDirIndex = LineTable->Prologue.IncludeDirectories.size();
775 << LineTable->Prologue.FileNames.size()
lib/DebugInfo/GSYM/GsymCreator.cpp 35 const auto NextIndex = Files.size();
62 if (Funcs.size() > UINT32_MAX)
72 Hdr.UUIDSize = static_cast<uint8_t>(UUID.size());
74 Hdr.NumAddresses = static_cast<uint32_t>(Funcs.size());
78 if (UUID.size() > sizeof(Hdr.UUID))
80 "invalid UUID size %u", (uint32_t)UUID.size());
91 if (UUID.size() > 0)
92 memcpy(Hdr.UUID, UUID.data(), UUID.size());
113 for (size_t i = 0, n = Funcs.size(); i < n; ++i)
121 size_t NumFiles = Files.size();
190 auto NumBefore = Funcs.size();
242 OS << "Pruned " << NumBefore - Funcs.size() << " functions, ended with "
243 << Funcs.size() << " total\n";
lib/DebugInfo/GSYM/LineTable.cpp 133 if (Lines.size() == 1) {
166 const size_t NumDeltaInfos = DeltaInfos.size();
lib/DebugInfo/GSYM/Range.cpp 86 O.writeULEB(Ranges.size());
lib/DebugInfo/MSF/MSFBuilder.cpp 178 return StreamData.size() - 1;
188 return StreamData.size() - 1;
224 uint32_t MSFBuilder::getNumStreams() const { return StreamData.size(); }
240 Size += StreamData.size() * sizeof(ulittle32_t); // StreamSizes
243 assert(ExpectedNumBlocks == D.second.size() &&
263 if (NumDirectoryBlocks > DirectoryBlocks.size()) {
267 uint32_t NumExtraBlocks = NumDirectoryBlocks - DirectoryBlocks.size();
273 } else if (NumDirectoryBlocks < DirectoryBlocks.size()) {
274 uint32_t NumUnnecessaryBlocks = DirectoryBlocks.size() - NumDirectoryBlocks;
294 ulittle32_t *Sizes = Allocator.Allocate<ulittle32_t>(StreamData.size());
295 L.StreamSizes = ArrayRef<ulittle32_t>(Sizes, StreamData.size());
296 L.StreamMap.resize(StreamData.size());
297 for (uint32_t I = 0; I < StreamData.size(); ++I) {
300 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size());
302 StreamData[I].second.size(), BlockList);
304 ArrayRef<ulittle32_t>(BlockList, StreamData[I].second.size());
lib/DebugInfo/MSF/MappedBlockStream.cpp 62 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index");
330 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index");
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp 112 Layout.NumFiles = SourceFiles.size();
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp 115 uint32_t Index = ModiList.size();
148 sizeof(SectionContribs[0]) * SectionContribs.size();
161 Offset += ModiList.size() * sizeof(ulittle16_t); // ModIndices
162 Offset += ModiList.size() * sizeof(ulittle16_t); // ModFileCounts
200 uint16_t ModiCount = std::min<uint32_t>(UINT16_MAX, ModiList.size());
305 sizeof(object::FpoData) * OldFpoData.size();
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp 81 Size += HashRecords.size() * sizeof(PSHashRecord);
83 Size += HashBuckets.size() * sizeof(uint32_t);
98 Header.HrSize = HashRecords.size() * sizeof(PSHashRecord);
99 Header.NumBuckets = HashBitmap.size() * 4 + HashBuckets.size() * 4;
152 HashRecords.reserve(Records.size());
166 ulittle32_t(HashRecords.size() * SizeOfHROffsetCalc);
195 Size += PSH->Records.size() * sizeof(uint32_t); // AddrMap
336 Header.AddrMap = PSH->Records.size() * 4;
lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp 52 (Features.size() + 1) * sizeof(uint32_t);
lib/DebugInfo/PDB/Native/NamedStreamMap.cpp 68 if (auto EC = Writer.writeInteger<uint32_t>(NamesBuffer.size()))
72 StringRef Data(NamesBuffer.data(), NamesBuffer.size());
85 + NamesBuffer.size() // String data
92 assert(NamesBuffer.size() > Offset);
118 uint32_t Offset = NamesBuffer.size();
lib/DebugInfo/PDB/Native/NativeEnumGlobals.cpp 37 return static_cast<uint32_t>(MatchOffsets.size());
42 if (N >= MatchOffsets.size())
lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp 55 return static_cast<uint32_t>(Matches.size());
59 if (N < Matches.size()) {
lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp 91 return Enumerators.size();
lib/DebugInfo/PDB/Native/NativeTypeVTShape.cpp 35 uint32_t NativeTypeVTShape::getCount() const { return Record.Slots.size(); }
lib/DebugInfo/PDB/Native/SymbolCache.cpp 232 assert(SymbolId < Cache.size());
235 if (SymbolId == 0 || SymbolId >= Cache.size())
289 if (Index >= Compilands.size())
lib/DebugInfo/PDB/Native/TpiStream.cpp 165 if (Bucket > HashMap.size())
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp 52 TypeRecords.size()),
68 uint32_t Count = TypeRecords.size();
104 assert((TypeRecords.size() == TypeHashes.size() || TypeHashes.empty()) &&
104 assert((TypeRecords.size() == TypeHashes.size() || TypeHashes.empty()) &&
106 return TypeHashes.size() * sizeof(ulittle32_t);
110 return TypeIndexOffsets.size() * sizeof(codeview::TypeIndexOffset);
129 ulittle32_t *H = Allocator.Allocate<ulittle32_t>(TypeHashes.size());
130 MutableArrayRef<ulittle32_t> HashBuffer(H, TypeHashes.size());
131 for (uint32_t I = 0; I < TypeHashes.size(); ++I) {
lib/DebugInfo/PDB/PDBSymbolFunc.cpp 50 uint32_t getChildCount() const override { return Args.size(); }
54 if (Index >= Args.size())
lib/DebugInfo/PDB/UDTLayout.cpp 199 AllBases.reserve(Bases.size() + VirtualBaseSyms.size());
199 AllBases.reserve(Bases.size() + VirtualBaseSyms.size());
216 assert(VTables.size() <= 1);
lib/ExecutionEngine/ExecutionEngine.cpp 341 Values.reserve(InputArgv.size());
343 Array = std::make_unique<char[]>((InputArgv.size()+1)*PtrSize);
348 for (unsigned i = 0; i != InputArgv.size(); ++i) {
365 (GenericValue*)(&Array[InputArgv.size()*PtrSize]),
431 GVArgc.IntVal = APInt(32, argv.size());
1050 for (unsigned i = 0; i < Val.AggregateVal.size(); ++i) {
1259 for (unsigned i = 0, e = NonCanonicalGlobals.size(); i != e; ++i) {
lib/ExecutionEngine/Interpreter/Execution.cpp 70 R.AggregateVal.resize(Src.AggregateVal.size());
78 for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
81 for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
447 for( size_t _i=0; _i<Src1.AggregateVal.size(); _i++)
590 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
590 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
591 Dest.AggregateVal.resize( Src1.AggregateVal.size() );
593 for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
600 for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
621 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
621 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
622 Dest.AggregateVal.resize( Src1.AggregateVal.size() );
624 for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
631 for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
652 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
652 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
653 Dest.AggregateVal.resize( Src1.AggregateVal.size() );
654 for( size_t _i=0; _i<Src1.AggregateVal.size(); _i++)
743 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
743 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
744 R.AggregateVal.resize(Src1.AggregateVal.size());
802 for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
807 for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
847 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
847 assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
848 assert(Src2.AggregateVal.size() == Src3.AggregateVal.size());
848 assert(Src2.AggregateVal.size() == Src3.AggregateVal.size());
849 Dest.AggregateVal.resize( Src1.AggregateVal.size() );
850 for (size_t i = 0; i < Src1.AggregateVal.size(); ++i)
1127 ArgIndex.UIntPairVal.first = ECStack.size() - 1;
1197 uint32_t src1Size = uint32_t(Src1.AggregateVal.size());
1198 assert(src1Size == Src2.AggregateVal.size());
1224 uint32_t src1Size = uint32_t(Src1.AggregateVal.size());
1225 assert(src1Size == Src2.AggregateVal.size());
1251 size_t src1Size = Src1.AggregateVal.size();
1252 assert(src1Size == Src2.AggregateVal.size());
1277 unsigned NumElts = Src.AggregateVal.size();
1297 unsigned size = Src.AggregateVal.size();
1318 unsigned size = Src.AggregateVal.size();
1340 unsigned size = Src.AggregateVal.size();
1362 unsigned size = Src.AggregateVal.size();
1385 unsigned size = Src.AggregateVal.size();
1423 unsigned size = Src.AggregateVal.size();
1457 unsigned size = Src.AggregateVal.size();
1489 unsigned size = Src.AggregateVal.size();
1564 SrcNum = Src.AggregateVal.size();
1808 if(Src1.AggregateVal.size() > indx) {
1846 if(Src1.AggregateVal.size() <= indx)
1879 unsigned src1Size = (unsigned)Src1.AggregateVal.size();
1880 unsigned src2Size = (unsigned)Src2.AggregateVal.size();
1881 unsigned src3Size = (unsigned)Src3.AggregateVal.size();
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp 187 for (unsigned I = 0, E = Sections.size() - 1; I != E; ++I) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp 656 for (unsigned I = 0, S = EventListeners.size(); I < S; ++I) {
lib/ExecutionEngine/Orc/Core.cpp 1676 << " " << KV.second.pendingQueries().size()
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp 465 EHFrameRanges.reserve(EHFrameRanges.size() + TrackedEHFrameRanges.size());
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 450 for (size_t Idx = 0, Cnt = SectionSizes.size(); Idx < Cnt; Idx++) {
lib/FuzzMutate/FuzzerCLI.cpp 35 cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
62 for (int I = 1, E = Args.size(); I < E; ++I)
67 CLArgs.reserve(Args.size());
71 cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
126 for (int I = 1, E = Args.size(); I < E; ++I)
131 CLArgs.reserve(Args.size());
135 cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
lib/IR/AsmWriter.cpp 239 assert(List.size() == Stack.back().Shuffle.size() && "Wrong size");
510 if (NumberedTypes.size() == Type2Number.size())
515 assert(P.second < NumberedTypes.size() && "Didn't get a dense numbering?");
3376 for (unsigned I = 0, E = NumberedTypes.size(); I != E; ++I) {
4161 assert(Order.Shuffle.size() >= 2 && "Shuffle too small");
4163 for (unsigned I = 1, E = Order.Shuffle.size(); I != E; ++I)
lib/IR/DebugInfoMetadata.cpp 1017 if (Expr->Elements.size() >= PatternSize &&
1023 if (Expr->Elements.size() == PatternSize)
1027 Expr->Elements.size() - PatternSize));
lib/IR/InlineAsm.cpp 149 if (N >= ConstraintsSoFar.size() || ConstraintsSoFar[N].Type != isOutput||
157 ConstraintsSoFar[N].multipleAlternatives.size())
164 scInfo.MatchingInput = ConstraintsSoFar.size();
169 ConstraintsSoFar.size())
172 ConstraintsSoFar[N].MatchingInput = ConstraintsSoFar.size();
207 if (index < multipleAlternatives.size()) {
264 for (unsigned i = 0, e = Constraints.size(); i != e; ++i) {
lib/IR/LegacyPassManager.cpp 929 for (unsigned i = 0, e = II.size(); i != e; ++i)
1057 for (unsigned i = 0, e = II.size(); i != e; ++i) {
lib/IR/ModuleSummaryIndex.cpp 185 if (P.second.SummaryList.size())
203 O << "SCC (" << utostr(I->size()) << " node" << (I->size() == 1 ? "" : "s")
203 O << "SCC (" << utostr(I->size()) << " node" << (I->size() == 1 ? "" : "s")
lib/LTO/LTO.cpp 259 AddUint64(ByArg.first.size());
442 for (unsigned I = 0; I != FOrErr->Mods.size(); ++I) {
443 size_t Begin = File->Symbols.size();
450 File->ModuleSymIndices.push_back({Begin, File->Symbols.size()});
463 assert(Mods.size() == 1 && "Expect only one bitcode module");
579 for (unsigned I = 0; I != Input->Mods.size(); ++I)
lib/LTO/LTOCodeGenerator.cpp 153 for (int i = 0, e = undefs.size(); i != e; ++i)
640 cl::ParseCommandLineOptions(CodegenArgv.size(), CodegenArgv.data());
lib/LTO/ThinLTOCodeGenerator.cpp 132 return GVSummaryList.size() > 1;
899 ProducedBinaries.resize(Modules.size());
906 ProducedBinaryFiles.resize(Modules.size());
952 auto ModuleCount = Modules.size();
1028 ModulesOrdering.resize(Modules.size());
lib/MC/ELFObjectWriter.cpp 347 return SectionTable.size();
951 for (unsigned i = 0, e = Relocs.size(); i != e; ++i) {
1064 const unsigned NumSections = SectionTable.size();
1247 (SectionTable.size() + 1 >= ELF::SHN_LORESERVE) ? (uint16_t)ELF::SHN_UNDEF
1248 : SectionTable.size() + 1,
lib/MC/MCCodeView.cpp 79 if (FuncId >= Functions.size())
87 if (FuncId >= Functions.size())
102 if (FuncId >= Functions.size())
266 size_t Offset = MCCVLines.size();
321 if (L >= MCCVLines.size())
lib/MC/MCParser/AsmParser.cpp 2651 const unsigned NParameters = M ? M->Parameters.size() : 0;
2729 if (A.size() <= PI)
2771 if (ActiveMacros.size() == MaxNestingDepth) {
2803 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size());
4604 while (TheCondStack.size() != ActiveMacros.back()->CondStackDepth) {
5548 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size());
5640 if (A.size() != 1 || A.front().size() != 1)
5640 if (A.size() != 1 || A.front().size() != 1)
lib/MC/MCStreamer.cpp 113 unsigned MCStreamer::getNumFrameInfos() { return DwarfFrameInfos.size(); }
849 CurFrame->LastFrameInst = CurFrame->Instructions.size();
lib/MC/MCWin64EH.cpp 195 uint8_t numInst = info->Instructions.size();
473 if (Instrs.size() != EpilogInstrs.size())
473 if (Instrs.size() != EpilogInstrs.size())
477 for (unsigned i = 0; i < Instrs.size(); ++i)
617 uint8_t numInst = info->Instructions.size();
627 for (uint32_t i = 0; i < EpilogInstrs.size(); i++) {
lib/MC/MachObjectWriter.cpp 439 W.write<uint32_t>(Options.size());
783 unsigned NumDataRegions = Asm.getDataRegions().size();
798 unsigned NumSymbols = LocalSymbolData.size() + ExternalSymbolData.size() +
798 unsigned NumSymbols = LocalSymbolData.size() + ExternalSymbolData.size() +
799 UndefinedSymbolData.size();
854 unsigned NumRelocs = Relocs.size();
916 unsigned NumLocalSymbols = LocalSymbolData.size();
918 unsigned NumExternalSymbols = ExternalSymbolData.size();
920 unsigned NumUndefinedSymbols = UndefinedSymbolData.size();
lib/MC/WasmObjectWriter.cpp 906 encodeULEB128(Relocs.size(), W.OS);
1001 encodeULEB128(C.second.size(), W.OS);
1262 WasmIndices[cast<MCSymbolWasm>(Begin)] = CustomSections.size();
lib/MC/WinCOFFObjectWriter.cpp 569 if (Section->Relocations.size() >= 0xffff)
644 if (Sec.Relocations.size() >= 0xffff) {
648 R.VirtualAddress = Sec.Relocations.size() + 1;
913 bool RelocationsOverflow = Sec->Relocations.size() >= 0xffff;
920 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
929 Offset += COFF::RelocationSize * Sec->Relocations.size();
956 if (Sections.size() > INT32_MAX)
960 UseBigObj = Sections.size() > COFF::MaxNumberOfSections16;
961 Header.NumberOfSections = Sections.size();
lib/MCA/HardwareUnits/RegisterFile.cpp 359 assert(RegID && RegID < RegisterMappings.size());
lib/MCA/HardwareUnits/ResourceManager.cpp 161 assert(Index < Resources.size() && "Invalid processor resource index!");
179 assert(Index < Resources.size() && "Invalid resource use!");
lib/MCA/HardwareUnits/RetireControlUnit.cpp 49 NextAvailableSlotIdx %= Queue.size();
67 return NextSlotIdx % Queue.size();
80 CurrentInstructionSlotIdx %= Queue.size();
86 assert(Queue.size() > TokenID);
lib/MCA/HardwareUnits/Scheduler.cpp 33 dbgs() << "[SCHEDULER]: WaitSet size is: " << WaitSet.size() << '\n';
34 dbgs() << "[SCHEDULER]: ReadySet size is: " << ReadySet.size() << '\n';
35 dbgs() << "[SCHEDULER]: IssuedSet size is: " << IssuedSet.size() << '\n';
151 PendingSet.resize(PendingSet.size() - PromotedElements);
188 WaitSet.resize(WaitSet.size() - RemovedElements);
193 unsigned QueueIndex = ReadySet.size();
194 for (unsigned I = 0, E = ReadySet.size(); I != E; ++I) {
196 if (QueueIndex == ReadySet.size() ||
208 if (QueueIndex == ReadySet.size())
213 std::swap(ReadySet[QueueIndex], ReadySet[ReadySet.size() - 1]);
240 IssuedSet.resize(IssuedSet.size() - RemovedElements);
lib/MCA/InstrBuilder.cpp 114 for (unsigned I = 0, E = Worklist.size(); I < E; ++I) {
lib/Object/ArchiveWriter.cpp 294 NumSyms += M.Symbols.size();
581 MaxOffset += M.Symbols.size() * 4;
lib/Object/COFFImportFile.cpp 61 size_t S = B.size();
74 size_t Pos = B.size();
75 size_t Offset = B.size();
88 support::ulittle32_t Length(B.size() - Offset);
249 auto S = Buffer.size();
315 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
376 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
458 StringRef F{reinterpret_cast<const char *>(Buffer.data()), Buffer.size()};
566 char *Buf = Alloc.Allocate<char>(Buffer.size());
567 memcpy(Buf, Buffer.data(), Buffer.size());
568 return {MemoryBufferRef(StringRef(Buf, Buffer.size()), ImportName)};
lib/Object/IRSymtab.cpp 102 R.Size = Objs.size();
104 reinterpret_cast<const char *>(Objs.data() + Objs.size()));
129 Mod.Begin = Syms.size();
130 Mod.End = Syms.size() + Msymtab.symbols().size();
131 Mod.UncBegin = Uncommons.size();
167 auto P = ComdatMap.insert(std::make_pair(C, Comdats.size()));
405 if (FC.TheReader.getNumModules() != BFC.Mods.size())
lib/Object/SymbolSize.cpp 75 for (unsigned I = 0, N = Addresses.size() - 1; I < N; ++I) {
lib/Object/WasmObjectFile.cpp 346 if (Functions.size() != FunctionTypes.size()) {
346 if (Functions.size() != FunctionTypes.size()) {
392 if (Functions.size() != FunctionTypes.size()) {
392 if (Functions.size() != FunctionTypes.size()) {
421 if (Count > DataSegments.size())
473 ImportedGlobals.reserve(Imports.size());
474 ImportedFunctions.reserve(Imports.size());
475 ImportedEvents.reserve(Imports.size());
554 if (Index >= DataSegments.size())
656 if (Index >= DataSegments.size())
752 if (SectionIndex >= Sections.size())
778 if (Reloc.Index >= Signatures.size())
943 uint32_t NumTypes = Signatures.size();
986 GlobalSection = Sections.size();
991 Global.Index = NumImportedGlobals + Globals.size();
1005 EventSection = Sections.size();
1010 Event.Index = NumImportedEvents + Events.size();
1062 return Index < NumImportedFunctions + FunctionTypes.size();
1070 return Index < NumImportedGlobals + Globals.size();
1078 return Index < NumImportedEvents + Events.size();
1086 return Index < Symbols.size() && Symbols[Index].isTypeFunction();
1090 return Index < Symbols.size() && Symbols[Index].isTypeGlobal();
1094 return Index < Symbols.size() && Symbols[Index].isTypeEvent();
1098 return Index < Symbols.size() && Symbols[Index].isTypeData();
1102 return Index < Symbols.size() && Symbols[Index].isTypeSection();
1135 CodeSection = Sections.size();
1137 if (FunctionCount != FunctionTypes.size()) {
1149 Function.Index = NumImportedFunctions + Functions.size();
1201 DataSection = Sections.size();
1278 Ref.d.b = Symbols.size(); // Symbol index
1468 RelocRef.d.b = Sec.Relocations.size();
1521 Ref.d.a = Sections.size();
1540 assert(Ref.d.a < Sections.size());
1556 assert(Ref.d.a < Sections.size());
1558 assert(Ref.d.b < Sec.Relocations.size());
lib/Object/WindowsResource.cpp 236 if (Context.size() >= 1) {
241 if (Context.size() >= 2) {
246 if (Context.size() >= 3) {
323 return MinGW && Context.size() == 3 && !Context[0].IsString &&
348 uint32_t Origin = InputFilenames.size();
370 uint32_t Origin = InputFilenames.size();
434 Origin, Data.size(), Child);
506 Origin, Data.size(), Result);
542 auto NewChild = createStringNode(StringTable.size());
678 uint32_t StringSize = String.size() * sizeof(UTF16) + sizeof(uint16_t);
699 SectionTwoSize += alignTo(Entry.size(), sizeof(uint64_t));
793 CurrentOffset += alignTo(RawDataEntry.size(), sizeof(uint64_t));
946 Entry->DataSize = Data[DataNodes->getDataIndex()].size();
958 uint16_t Length = String.size();
lib/ObjectYAML/COFFEmitter.cpp 45 return static_cast<int32_t>(Obj.Sections.size()) >
214 CP.SectionTableSize = COFF::SectionSize * CP.Obj.Sections.size();
263 S.Header.NumberOfRelocations = S.Relocations.size();
300 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size();
lib/ObjectYAML/CodeViewYAMLDebugSections.cpp 254 Value.Bytes.size());
lib/ObjectYAML/CodeViewYAMLSymbols.cpp 245 uint32_t TotalLen = sizeof(RecordPrefix) + Data.size();
250 ::memcpy(Buffer + sizeof(RecordPrefix), Data.data(), Data.size());
lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp 69 uint32_t Size = 8 + 8 * DebugH.Hashes.size();
lib/ObjectYAML/DWARFVisitor.cpp 75 onValue((uint64_t)FormVal->BlockData.size(), true);
78 FormVal->BlockData.size()),
82 auto writeSize = FormVal->BlockData.size();
86 FormVal->BlockData.size()),
91 auto writeSize = FormVal->BlockData.size();
95 FormVal->BlockData.size()),
100 auto writeSize = FormVal->BlockData.size();
104 FormVal->BlockData.size()),
lib/ObjectYAML/DWARFYAML.cpp 19 return 0 == DebugStrings.size() + AbbrevDecls.size();
19 return 0 == DebugStrings.size() + AbbrevDecls.size();
lib/ObjectYAML/ELFEmitter.cpp 266 Header.e_phoff = Doc.ProgramHeaders.size() ? sizeof(Header) : 0;
269 Header.e_phentsize = Doc.ProgramHeaders.size() ? sizeof(Elf_Phdr) : 0;
270 Header.e_phnum = Doc.ProgramHeaders.size();
281 Doc.Header.SHNum ? (uint16_t)*Doc.Header.SHNum : Doc.Sections.size();
378 SHeaders.resize(Doc.Sections.size());
380 for (size_t I = 0; I < Doc.Sections.size(); ++I) {
666 if (YamlPhdr.Sections.size())
742 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size();
784 SHeader.sh_size = Shndx.Entries.size() * SHeader.sh_entsize;
795 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size();
822 SHeader.sh_size = Section.Entries.size() * SHeader.sh_entsize;
860 support::endian::write<uint32_t>(OS, Section.Bucket->size(),
862 support::endian::write<uint32_t>(OS, Section.Chain->size(),
869 SHeader.sh_size = (2 + Section.Bucket->size() + Section.Chain->size()) * 4;
869 SHeader.sh_size = (2 + Section.Bucket->size() + Section.Chain->size()) * 4;
882 for (size_t I = 0; I < Section.Entries.size(); ++I) {
891 VerDef.vd_cnt = E.VerNames.size();
892 if (I == Section.Entries.size() - 1)
896 sizeof(Elf_Verdef) + E.VerNames.size() * sizeof(Elf_Verdaux);
899 for (size_t J = 0; J < E.VerNames.size(); ++J, ++AuxCnt) {
902 if (J == E.VerNames.size() - 1)
910 SHeader.sh_size = Section.Entries.size() * sizeof(Elf_Verdef) +
925 for (size_t I = 0; I < Section.VerneedV.size(); ++I) {
931 if (I == Section.VerneedV.size() - 1)
935 sizeof(Elf_Verneed) + VE.AuxV.size() * sizeof(Elf_Vernaux);
936 VerNeed.vn_cnt = VE.AuxV.size();
940 for (size_t J = 0; J < VE.AuxV.size(); ++J, ++AuxCnt) {
948 if (J == VE.AuxV.size() - 1)
956 SHeader.sh_size = Section.VerneedV.size() * sizeof(Elf_Verneed) +
1005 SHeader.sh_size = 2 * sizeof(uintX_t) * Section.Entries.size();
1095 for (unsigned I = 0, E = Doc.Sections.size(); I != E; ++I) {
1172 sizeof(Elf_Ehdr) + sizeof(Elf_Phdr) * Doc.ProgramHeaders.size();
lib/ObjectYAML/MachOEmitter.cpp 237 if (LC.PayloadBytes.size() > 0) {
239 LC.PayloadBytes.size());
240 BytesWritten += LC.PayloadBytes.size();
358 OS.write(static_cast<uint8_t>(Entry.Children.size()));
497 assert(FatFile.FatArchs.size() == FatFile.Slices.size());
497 assert(FatFile.FatArchs.size() == FatFile.Slices.size());
498 for (size_t i = 0; i < FatFile.Slices.size(); i++) {
lib/ObjectYAML/MachOYAML.cpp 30 RebaseOpcodes.size() + BindOpcodes.size() + WeakBindOpcodes.size() +
30 RebaseOpcodes.size() + BindOpcodes.size() + WeakBindOpcodes.size() +
30 RebaseOpcodes.size() + BindOpcodes.size() + WeakBindOpcodes.size() +
31 LazyBindOpcodes.size() + ExportTrie.Children.size() +
31 LazyBindOpcodes.size() + ExportTrie.Children.size() +
32 NameList.size() + StringTable.size();
32 NameList.size() + StringTable.size();
lib/ObjectYAML/MinidumpEmitter.cpp 158 File.allocateNewObject<support::ulittle32_t>(S.Entries.size());
185 InfoList.Infos.size());
234 std::vector<Directory> StreamDirectory(Obj.Streams.size());
237 Obj.Header.NumberOfStreams = StreamDirectory.size();
lib/ObjectYAML/WasmEmitter.cpp 163 encodeULEB128(Section.Needed.size(), OS);
176 if (Section.SymbolTable.size()) {
179 encodeULEB128(Section.SymbolTable.size(), SubSection.getStream());
216 if (Section.SegmentInfos.size()) {
218 encodeULEB128(Section.SegmentInfos.size(), SubSection.getStream());
228 if (Section.InitFunctions.size()) {
230 encodeULEB128(Section.InitFunctions.size(), SubSection.getStream());
239 if (Section.Comdats.size()) {
241 encodeULEB128(Section.Comdats.size(), SubSection.getStream());
245 encodeULEB128(C.Entries.size(), SubSection.getStream());
258 if (Section.FunctionNames.size()) {
263 encodeULEB128(Section.FunctionNames.size(), SubSection.getStream());
287 encodeULEB128(Field.second->size(), OS);
298 encodeULEB128(Section.Features.size(), OS);
325 encodeULEB128(Section.Signatures.size(), OS);
334 encodeULEB128(Sig.ParamTypes.size(), OS);
337 encodeULEB128(Sig.ReturnTypes.size(), OS);
345 encodeULEB128(Section.Imports.size(), OS);
381 encodeULEB128(Section.FunctionTypes.size(), OS);
388 encodeULEB128(Section.Exports.size(), OS);
403 encodeULEB128(Section.Tables.size(), OS);
412 encodeULEB128(Section.Memories.size(), OS);
419 encodeULEB128(Section.Globals.size(), OS);
435 encodeULEB128(Section.Events.size(), OS);
450 encodeULEB128(Section.Segments.size(), OS);
455 encodeULEB128(Segment.Functions.size(), OS);
463 encodeULEB128(Section.Functions.size(), OS);
474 encodeULEB128(Func.Locals.size(), StringStream);
491 encodeULEB128(Section.Segments.size(), OS);
527 encodeULEB128(Sec.Relocations.size(), OS);
lib/Option/OptTable.cpp 211 for (size_t I = FirstSearchableIndex, E = OptionInfos.size(); I < E; I++) {
231 for (size_t I = FirstSearchableIndex, E = OptionInfos.size(); I < E; I++) {
323 for (size_t I = FirstSearchableIndex, E = OptionInfos.size(); I < E; I++) {
345 const Info *End = OptionInfos.data() + OptionInfos.size();
493 for (unsigned i = 0, e = OptionHelp.size(); i != e; ++i) {
501 for (unsigned i = 0, e = OptionHelp.size(); i != e; ++i) {
lib/ProfileData/Coverage/CoverageMapping.cpp 51 unsigned I = Expressions.size();
265 unsigned RecordIndex = Functions.size() - 1;
585 for (unsigned I = 1, E = Segments.size(); I < E; ++I) {
615 SmallBitVector FilenameEquivalence(Function.Filenames.size(), false);
616 for (unsigned I = 0, E = Function.Filenames.size(); I < E; ++I)
624 SmallBitVector IsNotExpandedFile(Function.Filenames.size(), true);
lib/ProfileData/Coverage/CoverageMappingReader.cpp 125 if (ID >= Expressions.size())
430 FunctionRecords.insert(std::make_pair(NameRef, Records.size()));
438 Filenames.size() - FilenamesBegin);
460 OldRecord.FilenamesSize = Filenames.size() - FilenamesBegin;
494 size_t FilenamesBegin = Filenames.size();
809 if (CurrentRecord >= MappingRecords.size())
lib/ProfileData/InstrProf.cpp 483 Sum.NumEntries += Counts.size();
484 for (size_t F = 0, E = Counts.size(); F < E; ++F)
556 bool Mismatch = (Counts.size() != Other.Counts.size());
556 bool Mismatch = (Counts.size() != Other.Counts.size());
581 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) {
591 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I)
596 FuncLevelOverlap.Overlap.NumEntries = Other.Counts.size();
659 if (Counts.size() != Other.Counts.size()) {
659 if (Counts.size() != Other.Counts.size()) {
664 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) {
lib/ProfileData/InstrProfWriter.cpp 126 M += ProfRecord.Counts.size() * sizeof(uint64_t);
152 LE.write<uint64_t>(ProfRecord.Counts.size());
276 TheSummary->NumCutoffEntries = Res.size();
283 for (unsigned I = 0; I < Res.size(); I++)
404 OS << "# Num Counters:\n" << Func.Counts.size() << "\n";
lib/ProfileData/ProfileSummaryBuilder.cpp 40 for (size_t I = 1, E = R.Counts.size(); I < E; ++I)
lib/ProfileData/SampleProfReader.cpp 344 if (*Idx >= Table.size())
lib/ProfileData/SampleProfWriter.cpp 431 for (uint32_t i = 0; i < SecHdrTable.size(); i++) {
488 encodeULEB128(Entries.size(), OS);
lib/Remarks/RemarkParser.cpp 37 if (Index >= Offsets.size())
41 Offsets.size());
47 (Index == Offsets.size() - 1) ? Buffer.size() : Offsets[Index + 1];
lib/Support/ARMTargetParser.cpp 502 size_t StartingNumFeatures = Features.size();
534 return StartingNumFeatures != Features.size();
lib/Support/CommandLine.cpp 2191 assert(SortedCategories.size() > 0 && "No option categories registered!");
lib/Support/ConvertUTFWrapper.cpp 104 for (unsigned I = 0, E = ByteSwapped.size(); I != E; ++I)
107 SrcEnd = &ByteSwapped[ByteSwapped.size() - 1] + 1;
lib/Support/DeltaAlgorithm.cpp 50 if (Sets.size() <= 1)
63 if (SplitSets.size() == Sets.size())
63 if (SplitSets.size() == Sets.size())
85 if (Sets.size() > 2) {
lib/Support/FileCheck.cpp 1271 << (Req.CheckPrefixes.size() > 1 ? "es " : " ");
1935 unsigned i = 0, j = 0, e = CheckStrings->size();
lib/Support/JSON.cpp 551 ConvertUTF8toUTF32(&In8, In8 + S.size(), &Out32, Out32 + Codepoints.size(),
554 std::string Res(4 * Codepoints.size(), 0); // 4 bytes per codepoint suffice
557 ConvertUTF32toUTF8(&In32, In32 + Codepoints.size(), &Out8, Out8 + Res.size(),
lib/Support/PluginLoader.cpp 38 return Plugins.isConstructed() ? Plugins->size() : 0;
43 assert(Plugins.isConstructed() && num < Plugins->size() &&
lib/Support/SourceMgr.cpp 48 for (unsigned i = 0, e = IncludeDirectories.size(); i != e && !NewBufOrErr;
62 for (unsigned i = 0, e = Buffers.size(); i != e; ++i)
429 for (unsigned r = 0, e = Ranges.size(); r != e; ++r) {
lib/Support/SpecialCaseList.cpp 185 SectionsMap[Section] = Sections.size();
lib/Support/Statistic.cpp 175 for (size_t i = 0, e = Stats.Stats.size(); i != e; ++i) {
190 for (size_t i = 0, e = Stats.Stats.size(); i != e; ++i)
lib/Support/TargetRegistry.cpp 127 for (unsigned i = 0, e = Targets.size(); i != e; ++i) {
lib/Support/Timer.cpp 250 assert(TimersToPrint.size() == Records.size() && "Size mismatch");
lib/Support/TrigramIndex.cpp 76 Index[Tri].push_back(Counts.size());
92 std::vector<unsigned> CurCounts(Counts.size());
lib/Support/YAMLTraits.cpp 211 return SQ->Entries.size();
294 BitValuesUsed.insert(BitValuesUsed.begin(), SQ->Entries.size(), false);
328 assert(BitValuesUsed.size() == SQ->Entries.size());
329 for (unsigned i = 0; i < SQ->Entries.size(); ++i) {
lib/TableGen/Record.cpp 86 if (Sz >= Shared.size())
lib/TableGen/StringMatcher.cpp 35 for (unsigned str = 0, e = Matches.size(); str != e; ++str)
57 if (Matches.size() > 1 && !IgnoreDuplicates)
78 for (unsigned i = 0, e = Matches.size(); i != e; ++i)
117 << LI->second.size() << " string";
118 if (LI->second.size() != 1) OS << 's';
138 for (unsigned i = 0, e = Matches.size(); i != e; ++i)
149 << LI->second.size()
150 << " string" << (LI->second.size() == 1 ? "" : "s") << " to match.\n";
lib/Target/AArch64/AArch64A53Fix835769.cpp 228 LLVM_DEBUG(dbgs() << "Scan complete, " << Sequences.size()
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp 346 LLVM_DEBUG(dbgs() << "Scan complete, " << AllChains.size()
443 LLVM_DEBUG(dbgs() << "colorChainSet(): #sets=" << GV.size() << "\n");
lib/Target/AArch64/AArch64AsmPrinter.cpp 707 for (unsigned JTI = 0, e = JT.size(); JTI != e; ++JTI) {
lib/Target/AArch64/AArch64FrameLowering.cpp 1837 unsigned Count = CSI.size();
lib/Target/AArch64/AArch64InstrInfo.cpp 5093 if (RepeatedSequenceLocs.size() < 2)
5230 NumBytesNoStackCalls <= RepeatedSequenceLocs.size() * 12) {
5238 if (RepeatedSequenceLocs.size() < 2) {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 555 for (size_t i = 0; i < DisasmLines.size(); ++i) {
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp 341 DisasmLines.resize(DisasmLines.size() + 1);
356 HexLines.resize(HexLines.size() + 1);
lib/Target/AMDGPU/GCNILPSched.cpp 88 assert(SU->NodeNum < SUNumbers.size());
296 SUSavedCopy.resize(SUnits.size());
303 SUNumbers.assign(SUnits.size(), 0);
314 Schedule.reserve(SUnits.size());
346 assert(SUnits.size() == Schedule.size());
346 assert(SUnits.size() == Schedule.size());
lib/Target/AMDGPU/GCNMinRegStrategy.cpp 87 NumPreds.resize(SUnits.size());
88 for (unsigned I = 0; I < SUnits.size(); ++I)
236 Schedule.reserve(SUnits.size());
271 assert(SUnits.size() == Schedule.size());
271 assert(SUnits.size() == Schedule.size());
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp 83 return LoopStack.size();
387 assert(Lits.size() < 4 && "Too many literals in Instruction Group");
388 Src.first->setReg(LiteralRegs[Lits.size()]);
398 for (unsigned i = 0, e = Literals.size(); i < e; i+=2) {
442 for (unsigned i = 0, e = Literals.size(); i < e; i += 2) {
463 assert(ClauseContent.size() < 128 && "ALU clause is too big");
464 ClauseHead.getOperand(7).setImm(ClauseContent.size() - 1);
474 for (unsigned i = 0, e = Clause.second.size(); i < e; ++i) {
477 CfCount += 2 * Clause.second.size();
486 for (unsigned i = 0, e = Clause.second.size(); i < e; ++i) {
489 CfCount += Clause.second.size();
669 for (unsigned i = 0, e = FetchClauses.size(); i < e; i++)
671 for (unsigned i = 0, e = AluClauses.size(); i < e; i++)
683 for (unsigned i = 0, e = ToPopAfter.size(); i < e; ++i) {
lib/Target/AMDGPU/R600EmitClauseMarkers.cpp 158 if (CachedConsts.size() == 1) {
299 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].first) // KB1
301 .addImm((KCacheBanks.size() < 2)?0:2) // KM1
303 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].second) // KLINE1
lib/Target/AMDGPU/R600InstrInfo.cpp 436 for (unsigned i = 0, e = IGSrcs.size(); i < e; i++) {
460 for (unsigned i = 0, e = TransSrcs.size(); i < e; ++i) {
470 return IGSrcs.size() - 1;
472 return IGSrcs.size();
482 assert(Idx < SwzCandidate.size());
486 for (unsigned i = ResetIdx + 1, e = SwzCandidate.size(); i < e; i++) {
506 if (ValidUpTo == IGSrcs.size())
521 for (unsigned i = 0, e = TransOps.size(); i < e; ++i) {
546 for (unsigned i = 0, e = IG.size(); i < e; ++i) {
585 assert (Consts.size() <= 12 && "Too many operands in instructions group");
587 for (unsigned i = 0, n = Consts.size(); i < n; ++i) {
612 for (unsigned i = 0, n = MIs.size(); i < n; i++) {
lib/Target/AMDGPU/R600MachineScheduler.cpp 75 (AluInstCount + AvailablesAluCount() + Pending[IDAlu].size()) /
76 (FetchInstCount + Available[IDFetch].size());
92 unsigned NearRegisterRequirement = 2 * Available[IDFetch].size();
132 for (unsigned i = 0; i < DAG->SUnits.size(); i++) {
338 for (unsigned i = 0, e = QSrc.size(); i < e; ++i) {
399 return AvailableAlus[AluAny].size() + AvailableAlus[AluT_XYZW].size() +
399 return AvailableAlus[AluAny].size() + AvailableAlus[AluT_XYZW].size() +
400 AvailableAlus[AluT_X].size() + AvailableAlus[AluT_Y].size() +
400 AvailableAlus[AluT_X].size() + AvailableAlus[AluT_Y].size() +
401 AvailableAlus[AluT_Z].size() + AvailableAlus[AluT_W].size() +
401 AvailableAlus[AluT_Z].size() + AvailableAlus[AluT_W].size() +
402 AvailableAlus[AluTrans].size() + AvailableAlus[AluDiscarded].size() +
402 AvailableAlus[AluTrans].size() + AvailableAlus[AluDiscarded].size() +
403 AvailableAlus[AluPredX].size();
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp 177 if (CurrentUndexIdx >= Untouched->UndefReg.size())
190 for (unsigned j = 0, je = RemapChan.size(); j < je; j++) {
273 for (unsigned j = 0, e = RemapChan.size(); j < e; j++) {
314 unsigned NeededUndefs = 4 - RSI.UndefReg.size();
329 PreviousRegSeqByUndefCount[RSI.UndefReg.size()].push_back(RSI.Instr);
lib/Target/AMDGPU/R600Packetizer.cpp 256 for (unsigned i = 0, e = CurrentPacketMIs.size() - 1; i < e; i++) {
273 for (unsigned i = 0, e = CurrentPacketMIs.size() - 1; i < e; i++) {
300 for (unsigned i = 0, e = CurrentPacketMIs.size(); i < e; i++) {
lib/Target/AMDGPU/SIInsertWaitcnts.cpp 1482 RpotIdxMap[MBB] = BlockInfos.size();
lib/Target/AMDGPU/SIMachineScheduler.cpp 198 NodeNum2Index[SU->NodeNum] = SUnits.size();
425 InternalAdditionnalPressure.resize(TopPressure.MaxSetPressure.size());
429 assert(SUnits.size() == ScheduledSUnits.size() &&
429 assert(SUnits.size() == ScheduledSUnits.size() &&
448 HasLowLatencyNonWaitedParent.assign(SUnits.size(), 0);
487 if (SuccSU->NodeNum >= DAG->SUnits.size())
513 HasLowLatencyNonWaitedParent.assign(SUnits.size(), 0);
533 HasLowLatencyNonWaitedParent.resize(SUnits.size(), 0);
653 if (SU->NodeNum >= DAG->SUnits.size())
659 unsigned DAGSize = DAG->SUnits.size();
680 unsigned DAGSize = DAG->SUnits.size();
735 else if (SubGraph.size() > 5) {
804 unsigned DAGSize = DAG->SUnits.size();
898 unsigned DAGSize = DAG->SUnits.size();
927 unsigned DAGSize = DAG->SUnits.size();
931 CurrentBottomUpReservedDependencyColoring.size() == DAGSize &&
932 CurrentTopDownReservedDependencyColoring.size() == DAGSize);
976 unsigned DAGSize = DAG->SUnits.size();
1009 unsigned DAGSize = DAG->SUnits.size();
1035 unsigned DAGSize = DAG->SUnits.size();
1056 unsigned DAGSize = DAG->SUnits.size();
1077 unsigned DAGSize = DAG->SUnits.size();
1116 unsigned DAGSize = DAG->SUnits.size();
1194 unsigned DAGSize = DAG->SUnits.size();
1230 int ID = CurrentBlocks.size();
1261 for (unsigned i = 0, e = CurrentBlocks.size(); i != e; ++i) {
1266 for (unsigned i = 0, e = CurrentBlocks.size(); i != e; ++i) {
1286 unsigned DAGSize = CurrentBlocks.size();
1334 unsigned DAGSize = CurrentBlocks.size();
1353 PosOld.reserve(DAG->SUnits.size());
1354 PosNew.reserve(DAG->SUnits.size());
1396 for (unsigned i = PosOld.size(), e = 0; i != e; --i) {
1408 LLVM_DEBUG(for (unsigned i = 0, e = CurrentBlocks.size(); i != e; ++i) {
1415 unsigned DAGSize = CurrentBlocks.size();
1465 LiveOutRegsNumUsages.resize(Blocks.size());
1466 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1491 LastPosHighLatencyParentScheduled.resize(Blocks.size(), 0);
1492 BlockNumPredsLeft.resize(Blocks.size());
1493 BlockNumSuccsLeft.resize(Blocks.size());
1495 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1497 BlockNumPredsLeft[i] = Block->getPreds().size();
1502 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1515 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1517 int ID = BlocksStruct.TopDownIndex2Block[Blocks.size()-1-i];
1531 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1550 for (unsigned i = 0, e = Blocks.size(); i != e; ++i) {
1788 for (unsigned b = 0; b < ScheduledBlocks.size(); ++b) {
1831 unsigned DAGSize = SUnits.size();
1835 for (unsigned i = 0, e = ScheduledSUnits.size(); i != e; ++i) {
1898 for (unsigned i = 0, e = SUnits.size(); i != e; ++i) {
1953 IsLowLatencySU.resize(SUnits.size(), 0);
1954 LowLatencyOffset.resize(SUnits.size(), 0);
1955 IsHighLatencySU.resize(SUnits.size(), 0);
1957 for (unsigned i = 0, e = (unsigned)SUnits.size(); i != e; ++i) {
2018 ScheduledSUnitsInv.resize(SUnits.size());
2020 for (unsigned i = 0, e = (unsigned)SUnits.size(); i != e; ++i) {
lib/Target/AMDGPU/SIMachineScheduler.h 138 int getCost() { return SUnits.size(); }
lib/Target/ARM/ARMAsmPrinter.cpp 1191 if (CPI >= MCP->getConstants().size())
lib/Target/ARM/ARMConstantIslandPass.cpp 311 LLVM_DEBUG(dbgs() << "Verifying " << CPUsers.size() << " CP users.\n");
312 for (unsigned i = 0, e = CPUsers.size(); i != e; ++i) {
352 << MCP->getConstants().size() << " CP entries, aligned to "
395 AFI->initPICLabelUId(CPEMIs.size());
418 for (unsigned i = 0, e = CPUsers.size(); i != e; ++i)
433 for (unsigned i = 0, e = ImmBranches.size(); i != e; ++i)
465 for (unsigned i = 0, e = CPEntries.size(); i != e; ++i) {
466 for (unsigned j = 0, je = CPEntries[i].size(); j != je; ++j) {
519 for (unsigned i = 0, e = CPs.size(); i != e; ++i) {
557 unsigned i = CPEntries.size();
595 unsigned Size = JT[JTI].MBBs.size() * sizeof(uint32_t);
605 JumpTableEntryIndices.insert(std::make_pair(JTI, CPEntries.size() - 1));
644 for (unsigned i = 0, e = CPEs.size(); i != e; ++i) {
670 assert(CPI < MCP->getConstants().size() && "Invalid constant pool index.");
838 JumpTableUserIndices.insert(std::make_pair(CPI, CPUsers.size()));
1146 for (unsigned i = 0, e = CPEs.size(); i != e; ++i) {
1383 unsigned NumCPUsers = CPUsers.size();
1587 for (unsigned i = 0, e = CPEntries.size(); i != e; ++i) {
1589 for (unsigned j = 0, ee = CPEs.size(); j != ee; ++j) {
1770 for (unsigned i = 0, e = CPUsers.size(); i != e; ++i) {
2174 assert(JTI < JT.size());
2181 for (unsigned j = 0, ee = JTBBs.size(); j != ee; ++j) {
2368 assert(JTI < JT.size());
2375 for (unsigned j = 0, ee = JTBBs.size(); j != ee; ++j) {
lib/Target/ARM/ARMConstantPoolValue.h 83 for (unsigned i = 0, e = Constants.size(); i != e; ++i) {
lib/Target/ARM/ARMFrameLowering.cpp 415 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
987 unsigned i = CSI.size();
1075 unsigned i = CSI.size();
1176 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
1347 for (unsigned i = 0, e = CSI.size(); i != e; ++i)
1496 FnSize += Table.MBBs.size() * 4;
1497 FnSize += MF.getConstantPool()->getConstants().size() * 4;
lib/Target/ARM/ARMISelDAGToDAG.cpp 4430 if (Ops.size() == 5){
4434 assert(Ops.size() == 3 &&
4544 if (Ops.size() == 5) {
4548 assert(Ops.size() == 3 &&
4773 AsmNodeOperands[AsmNodeOperands.size() -1] = CurDAG->getTargetConstant(
lib/Target/ARM/ARMISelLowering.cpp 9570 unsigned NumLPads = LPadList.size();
9582 .addImm(LPadList.size())
15952 if (Subtarget->isTargetWindows() && Args.size() >= 2)
lib/Target/ARM/ARMLegalizerInfo.cpp 39 for (unsigned i = 0; i < v.size(); ++i) {
41 if (i + 1 < v[i].first && i + 1 < v.size() &&
49 assert(v.size() >= 1);
lib/Target/ARM/ARMTargetTransformInfo.cpp 543 return MemOps.size() * 2;
lib/Target/ARM/Disassembler/ARMDisassembler.cpp 64 return ITStates.size() == 1;
lib/Target/ARM/Thumb1FrameLowering.cpp 206 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
826 for (unsigned i = CSI.size(); i != 0; --i) {
1025 for (unsigned i = CSI.size(); i != 0; --i) {
lib/Target/AVR/AVRFrameLowering.cpp 250 for (unsigned i = CSI.size(); i != 0; --i) {
lib/Target/BPF/BTFDebug.cpp 354 BTFType.Info |= Vars.size();
375 OffsetToIdMap[Offset] = Table.size();
390 TypeEntry->setId(TypeEntries.size() + 1);
398 TypeEntry->setId(TypeEntries.size() + 1);
702 if (Line < FileContent[FileName].size())
720 if (!TypeEntries.size() && StringTable.getSize() == 1)
774 FuncLen += FuncSec.second.size() * BTF::BPFFuncInfoSize;
778 LineLen += LineSec.second.size() * BTF::BPFLineInfoSize;
782 FieldRelocLen += FieldRelocSec.second.size() * BTF::BPFFieldRelocSize;
802 OS.EmitIntValue(FuncSec.second.size(), 4);
816 OS.EmitIntValue(LineSec.second.size(), 4);
835 OS.EmitIntValue(FieldRelocSec.second.size(), 4);
lib/Target/BPF/BTFDebug.h 99 return BTFTypeBase::getSize() + EnumValues.size() * BTF::BTFEnumSize;
126 return BTFTypeBase::getSize() + Members.size() * BTF::BTFMemberSize;
143 return BTFTypeBase::getSize() + Parameters.size() * BTF::BTFParamSize;
181 return BTFTypeBase::getSize() + BTF::BTFDataSecVarSize * Vars.size();
lib/Target/Hexagon/HexagonBitSimplify.cpp 1208 for (unsigned i = 0; i < Pending.size(); ++i) {
3079 for (unsigned i = G.Ins.size(); i > 0; --i) {
3209 for (unsigned i = 0, n = ShufIns.size(); i < n; ++i) {
3252 for (unsigned i = 0, n = Groups.size(); i < n; ++i) {
3257 for (unsigned j = 0, m = G.Ins.size(); j < m; ++j)
3262 for (unsigned i = 0, n = Groups.size(); i < n; ++i) {
lib/Target/Hexagon/HexagonBitTracker.cpp 167 for (unsigned i = 0, n = Vector.size(); i < n; ++i) {
176 size_t size() const { return Vector.size(); }
180 assert(n < Vector.size());
lib/Target/Hexagon/HexagonCommonGEP.cpp 1094 unsigned Num = NA.size();
1195 LastCN = (CF != NCM.end()) ? CF->second.size() : 0;
1248 for (unsigned i = 0; i < BO.size(); ++i) {
1254 for (unsigned i = BO.size(); i > 0; --i) {
lib/Target/Hexagon/HexagonConstExtenders.cpp 1981 LLVM_DEBUG(dbgs() << "Collected " << Extenders.size() << " extenders\n");
1982 for (unsigned I = 0, E = Extenders.size(); I != E; ) {
lib/Target/Hexagon/HexagonFrameLowering.cpp 272 for (unsigned I = 1, E = CSI.size(); I < E; ++I) {
1258 for (unsigned I = 0; I < CSI.size(); ++I)
1263 for (unsigned i = 0, n = CSI.size(); i < n; ++i) {
1332 for (unsigned i = 0; i < CSI.size(); ++i) {
1440 for (unsigned i = 0, n = CSI.size(); i < n; ++i) {
1542 for (unsigned i = 0, n = CSI.size(); i < n; ++i) {
2433 for (unsigned i = 0, n = CSI.size(); i < n; ++i) {
2456 unsigned NumCSI = CSI.size();
2477 unsigned NumCSI = CSI.size();
lib/Target/Hexagon/HexagonGenInsert.cpp 272 if (RInd >= CVect.size())
389 assert(Idx < Seq.size());
394 return Seq.size();
445 unsigned S = Seq.size();
448 assert(Seq.size() <= MaxSize);
586 for (unsigned i = 0, n = LL.size(); i < n; ++i)
636 for (unsigned i = 0, n = VRs.size(); i < n; ++i)
866 for (unsigned i = 0, n = LL.size(); i < n; ++i)
898 for (unsigned i = 0, n = LL.size(); i < n; ++i) {
1042 for (unsigned i = 0, n = LL.size(); i < n; ++i)
1075 for (unsigned i = 0, n = LL.size(); i < n; ++i) {
1097 for (unsigned i = 1, n = LL.size(); i < n; ++i) {
1130 for (unsigned i = 0, n = LL.size(); i < n; ) {
1143 n = LL.size();
1155 for (unsigned i = LL.size(); i > 0; --i) {
1292 for (unsigned i = 0, n = LL.size(); i < n; ++i)
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 232 for (unsigned I = 0; I < WorkQ.size(); ++I) {
336 unsigned S = Order.size();
340 Table.resize(Order.size());
346 unsigned Size = Order.size();
366 return Order.size();
677 return List.size()-1;
687 unsigned size() const { return List.size(); }
752 for (unsigned I = 0, E = List.size(); I != E; ++I) {
1006 assert(Idx >= 0 && unsigned(Idx) < Output.size());
1347 for (unsigned i = 0, e = T::size(); i != e; ++i) {
2017 unsigned VecLen = Mask.size();
lib/Target/Hexagon/HexagonMachineScheduler.cpp 126 for (unsigned i = 0, e = Packet.size(); i != e; ++i)
130 for (unsigned i = 0, e = Packet.size(); i != e; ++i)
150 Packet.size() >= SchedModel->getIssueWidth()) {
178 for (unsigned i = 0, e = Packet.size(); i != e; ++i) {
211 for (unsigned su = 0, e = SUnits.size(); su != e;
216 for (unsigned su = 0, e = SUnits.size(); su != e;
277 HighPressureSets.assign(MaxPressure.size(), 0);
278 for (unsigned i = 0, e = MaxPressure.size(); i < e; ++i) {
lib/Target/Hexagon/HexagonSplitDouble.cpp 291 for (unsigned i = 0; i < WorkQ.size(); ++i) {
579 for (unsigned i = 0; i < WorkQ.size(); ++i) {
585 for (unsigned i = 0, n = WorkQ.size(); i < n; ++i) {
lib/Target/Hexagon/HexagonStoreWidening.cpp 230 if (G.size() > 1)
366 Pow2Num = OG.size();
551 assert(OG.size() > 1 && "Created invalid group");
552 assert(distance(I, E)+1 >= int(OG.size()) && "Too many elements");
553 I += OG.size()-1;
577 assert(G.size() > 1 && "Store group with fewer than 2 elements");
lib/Target/Hexagon/HexagonSubtarget.cpp 205 for (unsigned su = 0, e = DAG->SUnits.size(); su != e; ++su) {
271 for (unsigned i = 0, e = DAG->SUnits.size(); i != e; ++i) {
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp 1316 if (CurrentPacketMIs.size() == 1)
1793 if (OldPacketMIs.size() > 1) {
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp 508 if (foundBranches.size() > 1) {
509 if (foundBranches.size() > 2) {
552 if (foundBranches.size() <= 1 && bOnlySlot3 == false && pSlot3Cnt == 1 &&
lib/Target/Hexagon/RDFGraph.cpp 271 unsigned N = Ns.size();
351 assert((Blocks.size() < ((size_t)1 << (8*sizeof(NodeId)-BitsPerIndex))) &&
369 uint32_t ActiveB = Blocks.size()-1;
379 for (unsigned i = 0, n = Blocks.size(); i != n; ++i) {
672 Pos = DS.Stack.size();
690 unsigned P = nextDown(Stack.size());
705 unsigned P = Stack.size();
720 unsigned SS = Stack.size();
735 assert(P > 0 && P <= Stack.size());
1480 for (unsigned i = 1; i != MaxRefs.size(); ++i)
1485 unsigned CS = ClosureIdx.size();
1506 for (unsigned i = ClosureIdx.size(); i != 0; --i)
lib/Target/Hexagon/RDFLiveness.cpp 615 for (unsigned i = 0; i < PhiUQ.size(); ++i) {
lib/Target/Hexagon/RDFRegisters.h 41 assert(Idx != 0 && !Map.empty() && Idx-1 < Map.size());
51 return Map.size(); // Return actual_index + 1.
60 uint32_t size() const { return Map.size(); }
lib/Target/MSP430/MSP430FrameLowering.cpp 193 MFI->setCalleeSavedFrameSize(CSI.size() * 2);
195 for (unsigned i = CSI.size(); i != 0; --i) {
219 for (unsigned i = 0, e = CSI.size(); i != e; ++i)
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp 462 if (Relocs.size() < 2)
522 assert(Relocs.size() == Sorted.size() && "Some relocs were not consumed");
lib/Target/Mips/Mips16FrameLowering.cpp 124 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/Target/Mips/Mips16ISelLowering.cpp 294 if (Args.size() >= 1) {
304 if (Args.size() >=2) {
lib/Target/Mips/Mips16InstrInfo.cpp 191 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/Target/Mips/Mips16RegisterInfo.cpp 87 if (CSI.size()) {
89 MaxCSFI = CSI[CSI.size() - 1].getFrameIdx();
lib/Target/Mips/MipsAsmPrinter.cpp 1277 for (unsigned I = 0; I < JT.size(); ++I) {
1280 for (unsigned J = 0; J < MBBs.size(); ++J)
lib/Target/Mips/MipsConstantIslandPass.cpp 426 for (unsigned J = 0, E = BBInfo.size(); J !=E; ++J) {
472 initPICLabelUId(CPEMIs.size());
491 for (unsigned i = 0, e = CPUsers.size(); i != e; ++i)
503 for (unsigned i = 0, e = ImmBranches.size(); i != e; ++i)
554 for (unsigned i = 0, e = CPs.size(); i != e; ++i) {
613 for (unsigned i = 0, e = CPEs.size(); i != e; ++i) {
630 assert(CPI < MCP->getConstants().size() && "Invalid constant pool index.");
1061 for (unsigned i = 0, e = CPEs.size(); i != e; ++i) {
1117 for (unsigned i = 0, e = CPEs.size(); i != e; ++i) {
1280 unsigned NumCPUsers = CPUsers.size();
1444 for (unsigned i = 0, e = CPEntries.size(); i != e; ++i) {
1446 for (unsigned j = 0, ee = CPEs.size(); j != ee; ++j) {
lib/Target/Mips/MipsSEFrameLowering.cpp 450 for (unsigned i = 0; i < CSI.size(); ++i)
711 for (unsigned i = 0; i < MFI.getCalleeSavedInfo().size(); ++i)
724 for (unsigned i = 0; i < MFI.getCalleeSavedInfo().size(); ++i)
800 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/Target/Mips/MipsSERegisterInfo.cpp 163 if (CSI.size()) {
165 MaxCSFI = CSI[CSI.size() - 1].getFrameIdx();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 1253 for (unsigned i = 0, e = gvars.size(); i != e; ++i) {
lib/Target/NVPTX/NVPTXISelLowering.cpp 1308 for (unsigned i = 0, e = Args.size(); i != e; ++i, ++OIdx) {
1459 for (unsigned i = 0, e = Args.size(); i != e; ++i, ++OIdx) {
2500 for (unsigned i = 0, e = theArgs.size(); i != e; ++i, ++idx, ++InsIdx) {
lib/Target/NVPTX/NVPTXUtilities.cpp 289 for (int i = 0, e = Vs.size(); i < e; i++) {
lib/Target/PowerPC/PPCAsmPrinter.cpp 1687 for (unsigned i = 0, e = Stubs.size(); i != e; ++i) {
lib/Target/PowerPC/PPCFrameLowering.cpp 1315 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
1884 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
2032 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
2053 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
2203 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
2375 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/Target/PowerPC/PPCRegisterInfo.cpp 368 for (unsigned i = 0; i < Info.size(); i++) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp 224 for (unsigned i = 0, ie = CIV.size(); i < ie; ++i) {
227 for (unsigned j = 0, je = C.Codes.size(); j < je; ++j)
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp 539 SwapEntry.VSEId = SwapVector.size();
589 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
641 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
752 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
946 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
970 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) {
lib/Target/RISCV/RISCVFrameLowering.cpp 162 std::advance(MBBI, CSI.size());
245 auto LastFrameDestroy = std::prev(MBBI, MFI.getCalleeSavedInfo().size());
342 if (CSI.size()) {
344 MaxCSFI = CSI[CSI.size() - 1].getFrameIdx();
491 if (!isInt<12>(StackSize) && (CSI.size() > 0)) {
lib/Target/Sparc/SparcISelDAGToDAG.cpp 299 AsmNodeOperands[AsmNodeOperands.size() -1] = CurDAG->getTargetConstant(
lib/Target/SystemZ/SystemZConstantPoolValue.cpp 32 for (unsigned I = 0, E = Constants.size(); I != E; ++I) {
lib/Target/SystemZ/SystemZFrameLowering.cpp 148 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
194 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
207 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
239 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
272 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp 155 OS << "BrList:" << BrL.List.size();
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp 1238 MFI.getResults().size() > 1
lib/Target/WebAssembly/WebAssemblyExceptionInfo.h 83 unsigned getNumBlocks() const { return Blocks.size(); }
lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp 218 unsigned CurLocal = static_cast<unsigned>(MFI.getParams().size());
370 MFI.setNumLocals(CurLocal - MFI.getParams().size());
374 if (RL == Reg2Local.end() || RL->second < MFI.getParams().size())
377 MFI.setLocal(RL->second - MFI.getParams().size(),
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 946 assert(MFI->getParams().size() == Params.size() &&
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 935 Value *Args[] = {CI->getArgOperand(0), IRB.getInt32(SetjmpRetPHIs.size()),
957 for (unsigned I = 0; I < BBs.size(); I++) {
1032 SwitchInst *SI = IRB.CreateSwitch(Label, Tail, SetjmpRetPHIs.size());
1037 for (unsigned I = 0; I < SetjmpRetPHIs.size(); I++) {
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h 120 assert(I < WARegs.size());
125 assert(I < WARegs.size());
lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp 90 unsigned CurReg = MFI.getParams().size();
lib/Target/X86/X86FrameLowering.cpp 2005 for (unsigned i = 0; i < CSI.size(); ++i) {
2014 for (unsigned i = CSI.size(); i != 0; --i) {
2031 for (unsigned i = CSI.size(); i != 0; --i) {
2078 for (unsigned i = CSI.size(); i != 0; --i) {
2112 for (unsigned i = CSI.size(); i != 0; --i) {
2192 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
2209 for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
lib/Target/X86/X86ISelLowering.cpp 2203 for (unsigned Idx = 0; Idx < Args.size(); Idx++) {
4852 for (unsigned i = 0, e = LegalFPImmediates.size(); i != e; ++i) {
31037 .addImm(LPadList.size());
45303 if (Constraints.size() >= 2 &&
45304 Constraints[0].Codes.size() == 1 && Constraints[0].Codes[0] == "A" &&
45305 Constraints[1].Codes.size() == 1 && Constraints[1].Codes[0] == "0") {
lib/Target/X86/X86LegalizerInfo.cpp 38 for (unsigned i = 0; i < v.size(); ++i) {
40 if (i + 1 < v[i].first && i + 1 < v.size() &&
48 assert(v.size() >= 1);
lib/Target/XCore/XCoreAsmPrinter.cpp 194 for (unsigned i = 0, e = JTBBs.size(); i != e; ++i) {
lib/Target/XCore/XCoreISelLowering.cpp 355 unsigned NumEntries = MJTI->getJumpTables()[JTI].MBBs.size();
lib/TextAPI/MachO/TextStub.cpp 1080 return Seq.size();
1084 if (Index >= Seq.size())
lib/Transforms/IPO/ArgumentPromotion.cpp 183 if (Indices.size() == 1 && Indices.front() == 0)
284 Ops.reserve(ArgIndex.second.size());
446 if (Operands.size() == 1 && Operands.front() == 0)
456 for (unsigned i = 0, e = Operands.size(); i != e; ++i) {
509 if (Prefix.size() > Longer.size())
509 if (Prefix.size() > Longer.size())
lib/Transforms/IPO/CalledValuePropagation.cpp 160 if (Union.size() > MaxFunctionsPerValue)
lib/Transforms/IPO/DeadArgumentElimination.cpp 163 unsigned NumArgs = Params.size();
804 NewRetIdxs[i] = RetTypes.size() - 1;
812 if (RetTypes.size() > 1) {
820 NRetTy = ArrayType::get(RetTypes[0], RetTypes.size());
822 } else if (RetTypes.size() == 1)
853 assert(ArgAttrVec.size() == Params.size());
923 assert(ArgAttrVec.size() == Args.size());
984 if (RetTypes.size() > 1)
1053 if (RetTypes.size() > 1) {
lib/Transforms/IPO/FunctionAttrs.cpp 766 if (ArgumentSCC.size() == 1) {
814 for (unsigned i = 0, e = ArgumentSCC.size(); i != e; ++i) {
833 for (unsigned i = 0, e = ArgumentSCC.size(); i != e; ++i) {
847 for (unsigned i = 0, e = ArgumentSCC.size(); i != e; ++i) {
1594 if (I->size() != 1)
lib/Transforms/IPO/FunctionImport.cpp 718 assert(GlobalList.second.SummaryList.size() == 1 &&
lib/Transforms/IPO/GlobalDCE.cpp 400 NumFunctions += DeadFunctions.size();
413 NumVariables += DeadGlobalVars.size();
417 NumAliases += DeadAliases.size();
421 NumIFuncs += DeadIFuncs.size();
lib/Transforms/IPO/GlobalOpt.cpp 562 if (Val >= NewGlobals.size()) Val = 0; // Out of bound array access.
602 for (unsigned i = 0, e = NewGlobals.size(); i != e; ++i)
608 return FirstGlobal != NewGlobals.size() ? NewGlobals[FirstGlobal] : nullptr;
1158 if (FieldNo >= FieldVals.size())
1338 for (unsigned i = 0, e = FieldMallocs.size(); i != e; ++i) {
1363 for (unsigned i = 0, e = FieldGlobals.size(); i != e; ++i) {
1414 for (unsigned i = 0, e = FieldGlobals.size(); i != e; ++i) {
lib/Transforms/IPO/GlobalSplit.cpp 118 if (I >= SplitGlobals.size())
lib/Transforms/IPO/LowerTypeTests.cpp 185 uint64_t FragmentIndex = Fragments.size() - 1;
224 if (Bytes.size() < ReqSize)
614 std::vector<uint64_t> ByteArrayOffsets(ByteArrayInfos.size());
617 for (unsigned I = 0; I != ByteArrayInfos.size(); ++I) {
635 for (unsigned I = 0; I != ByteArrayInfos.size(); ++I) {
655 ByteArraySizeBytes = BAB.Bytes.size();
lib/Transforms/IPO/MergeFunctions.cpp 423 LLVM_DEBUG(dbgs() << "size of worklist: " << Worklist.size() << '\n');
lib/Transforms/IPO/PassManagerBuilder.cpp 214 for (unsigned i = 0, e = Extensions.size(); i != e; ++i)
lib/Transforms/IPO/PruneEH.cpp 264 for (unsigned i = 0, e = Succs.size(); i != e; ++i)
lib/Transforms/IPO/WholeProgramDevirt.cpp 1500 B.Before.Bytes.resize(alignTo(B.Before.Bytes.size(), Alignment));
1503 for (size_t I = 0, Size = B.Before.Bytes.size(); I != Size / 2; ++I)
1521 NewGV->copyMetadata(B.GV, B.Before.Bytes.size());
lib/Transforms/Instrumentation/CFGMST.h 244 OS << " Number of Edges: " << AllEdges.size()
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 260 for (unsigned i=0, ie = TransformedFunction.ArgumentIndexMapping.size();
1612 const unsigned ShadowArgStart = Args.size();
lib/Transforms/Instrumentation/MemorySanitizer.cpp 3663 for (size_t i = 0, n = Constraints.size(); i < n; i++) {
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 578 NumOfPGOMemIntrinsics += ValueSites[IPVK_MemOPSize].size();
583 NumOfCSPGOMemIntrinsics += ValueSites[IPVK_MemOPSize].size();
631 (uint64_t)ValueSites[IPVK_IndirectCallTarget].size() << 48 |
633 (uint64_t)MST.AllEdges.size() << 32 | JC.getCRC();
641 << ", Edges = " << MST.AllEdges.size() << ", ICSites = "
642 << ValueSites[IPVK_IndirectCallTarget].size()
725 EdgeList.reserve(MST.AllEdges.size());
816 InstrumentBBs.size() + FuncInfo.SIVisitor.getNumOfSelectInsts();
839 NumOfPGOICall += FuncInfo.ValueSites[IPVK_IndirectCallTarget].size();
1069 InstrumentBBs.size() + FuncInfo.SIVisitor.getNumOfSelectInsts();
1072 if (NumCounters != CountFromProfile.size()) {
1082 ProfileCountSize = CountFromProfile.size();
1182 LLVM_DEBUG(dbgs() << CountFromProfile.size() << " counts\n");
1184 for (unsigned I = 0, S = CountFromProfile.size(); I < S; I++) {
1363 assert(*CurCtrIdx < CountFromProfile.size() &&
1419 if (NumValueSites != ValueSites.size()) {
lib/Transforms/ObjCARC/BlotMapVector.h 59 size_t Num = Vector.size();
71 size_t Num = Vector.size();
lib/Transforms/Scalar/ConstantHoisting.cpp 378 Itr->second = ConstIntCandVec.size() - 1;
428 Itr->second = ExprCandVec.size() - 1;
lib/Transforms/Scalar/GVN.cpp 426 for (unsigned i = 0, e = deps.size(); i != e; ++i) {
1573 if (ExprIdx.size() < nextValueNumber + 1)
1631 for (unsigned i = 0; i < deps.size(); i++) {
1658 if (Num >= ExprIdx.size() || ExprIdx[Num] == 0)
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 1152 for (unsigned i = 0, e = Result.Blocks.size(); i != e; ++i) {
lib/Transforms/Scalar/LoopInterchange.cpp 165 while (Dep.size() != Level) {
170 if (DepMatrix.size() > MaxMemInstrCount) {
186 unsigned numRows = DepMatrix.size();
260 unsigned NumRows = DepMatrix.size();
284 if (Vec->size() != 1)
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp 282 if (!L->isLoopSimplifyForm() || L->getSubLoops().size() != 1)
lib/Transforms/Scalar/LoopUnswitch.cpp 1278 NewBlocks.reserve(LoopBlocks.size());
1280 for (unsigned i = 0, e = LoopBlocks.size(); i != e; ++i) {
1342 for (unsigned i = 0, e = NewBlocks.size(); i != e; ++i) {
lib/Transforms/Scalar/MergeICmps.cpp 411 int size() const { return Comparisons_.size(); }
442 for (size_t BlockIdx = 0; BlockIdx < Blocks.size(); ++BlockIdx) {
679 assert(Comparisons_.size() >= 2 && "simplifying trivial BCECmpChain");
683 for (size_t I = 1; I < Comparisons_.size(); ++I) {
705 for (int I = static_cast<int>(Comparisons_.size()) - 2; I >= 0; --I) {
lib/Transforms/Scalar/NewGVN.cpp 2918 for (unsigned i = 0, e = CongruenceClasses.size(); i != e; ++i) {
3435 if (Node->getChildren().size() > 1)
lib/Transforms/Scalar/PlaceSafepoints.cpp 688 assert(ParsePointsNeeded.size() <= Calls.size());
688 assert(ParsePointsNeeded.size() <= Calls.size());
lib/Transforms/Scalar/SROA.cpp 3856 int Idx = 0, Size = Offsets.Splits.size();
3912 for (int Idx = 0, Size = SplitLoads.size(); Idx < Size; ++Idx) {
3983 assert(SplitLoads->size() == Offsets.Splits.size() + 1 &&
3983 assert(SplitLoads->size() == Offsets.Splits.size() + 1 &&
3990 int Idx = 0, Size = Offsets.Splits.size();
4549 NumPromoted += PromotableAllocas.size();
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 2472 int SiblingsCount = (ParentL ? ParentL->getSubLoopsVector().size()
lib/Transforms/Utils/CodeExtractor.cpp 1171 for (unsigned u = 0, e = Users.size(); u != e; ++u) {
lib/Transforms/Utils/CtorUtils.cpp 129 unsigned NumCtors = Ctors.size();
131 for (unsigned i = 0; i != Ctors.size() && NumCtors > 0; ++i) {
lib/Transforms/Utils/LoopSimplify.cpp 299 for (size_t I = 0; I != SubLoops.size(); )
393 PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(),
445 for (unsigned i = 0, e = BackedgeBlocks.size(); i != e; ++i) {
lib/Transforms/Utils/LoopUnroll.cpp 745 for (unsigned i = 0, e = Latches.size(); i != e; ++i) {
780 for (unsigned i = 0, e = Headers.size(); i != e; ++i) {
805 for (unsigned i = 0, e = Latches.size(); i != e; ++i) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp 180 assert(L->getSubLoops().size() == 1);
726 if (!L->isLoopSimplifyForm() || L->getSubLoops().size() != 1)
lib/Transforms/Utils/LowerSwitch.cpp 414 if (Cases.size() >= 2) {
459 LLVM_DEBUG(dbgs() << "Clusterify finished. Total clusters: " << Cases.size()
lib/Transforms/Utils/Mem2Reg.cpp 54 NumPromoted += Allocas.size();
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 534 AllocaDbgDeclares.resize(Allocas.size());
540 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) {
637 RenamePassData::ValVector Values(Allocas.size());
638 for (unsigned i = 0, e = Allocas.size(); i != e; ++i)
643 RenamePassData::LocationVector Locations(Allocas.size());
lib/Transforms/Utils/SanitizerStats.cpp 33 return ArrayType::get(StatTy, Inits.size());
66 ConstantInt::get(IntPtrTy, Inits.size() - 1),
87 ConstantInt::get(Int32Ty, Inits.size()),
lib/Transforms/Utils/SimplifyCFG.cpp 758 if (V1->size() > V2->size())
758 if (V1->size() > V2->size())
763 if (V1->size() == 1) {
766 for (unsigned i = 0, e = V2->size(); i != e; ++i)
774 unsigned i1 = 0, i2 = 0, e1 = V1->size(), e2 = V2->size();
774 unsigned i1 = 0, i2 = 0, e1 = V1->size(), e2 = V2->size();
853 assert(ThisCases.size() == 1 && "Branch can only have one case!");
872 for (unsigned i = 0, e = PredCases.size(); i != e; ++i)
893 for (unsigned i = 0, e = PredCases.size(); i != e; ++i)
904 for (unsigned i = 0, e = ThisCases.size(); i != e; ++i)
1046 if (Weights.size() != 1 + PredCases.size())
1052 Weights.assign(1 + PredCases.size(), 1);
1058 if (SuccWeights.size() != 1 + BBCases.size())
1061 SuccWeights.assign(1 + BBCases.size(), 1);
1067 for (unsigned i = 0, e = PredCases.size(); i != e; ++i)
1095 for (unsigned i = 0, e = BBCases.size(); i != e; ++i)
1123 for (unsigned i = 0, e = PredCases.size(); i != e; ++i)
1141 for (unsigned i = 0, e = BBCases.size(); i != e; ++i)
1177 Builder.CreateSwitch(CV, PredDefault, PredCases.size());
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp 60 } else if (UnreachableBlocks.size() == 1) {
77 } else if (ReturningBlocks.size() == 1) {
94 PN = PHINode::Create(F.getReturnType(), ReturningBlocks.size(),
lib/Transforms/Vectorize/VPlan.cpp 465 assert(Succs.size() <= 2 &&
468 if (Succs.size() == 1) {
lib/XRay/InstrumentationMap.cpp 196 Sleds.reserve(YAMLSleds.size());
projects/openmp/libomptarget/src/api.cpp 25 size_t Devices_size = Devices.size();
106 size_t Devices_size = Devices.size();
projects/openmp/libomptarget/src/device.cpp 374 size_t Devices_size = Devices.size();
projects/openmp/libomptarget/src/interface.cpp 151 size_t Devices_size = Devices.size();
310 int64_t size = MapperComponentsPtr->Components.size();
projects/openmp/libomptarget/src/omptarget.cpp 81 assert(TransTable->TargetsImages.size() > (size_t)device_id &&
630 assert(TM->Table->TargetsTable.size() > (size_t)device_id &&
753 tgtArgsPositions[i] = tgt_args.size();
758 assert(tgt_args.size() == tgt_offsets.size() &&
758 assert(tgt_args.size() == tgt_offsets.size() &&
778 &tgt_args[0], &tgt_offsets[0], tgt_args.size(), team_num,
782 &tgt_args[0], &tgt_offsets[0], tgt_args.size());
projects/openmp/libomptarget/src/rtl.cpp 139 assert(TT.TargetsTable.size() == TT.TargetsImages.size() &&
139 assert(TT.TargetsTable.size() == TT.TargetsImages.size() &&
146 if (TT.TargetsTable.size() < TargetsTableMinimumSize) {
261 size_t start = Devices.size();
tools/bugpoint/BugDriver.cpp 69 for (unsigned i = 0, e = Passes.size(); i != e; ++i) {
143 for (unsigned i = 1, e = Filenames.size(); i != e; ++i) {
241 unsigned NumPrint = Funcs.size();
246 if (NumPrint < Funcs.size())
247 outs() << "... <" << Funcs.size() << " total>";
252 unsigned NumPrint = GVs.size();
257 if (NumPrint < GVs.size())
258 outs() << "... <" << GVs.size() << " total>";
tools/bugpoint/CrashDebugger.cpp 153 for (unsigned i = 0, e = GVs.size(); i != e; ++i) {
229 auto *NewValTy = ArrayType::get(NewValElemTy, Used.size());
246 for (unsigned i = 0, e = Funcs.size(); i != e; ++i) {
449 for (unsigned i = 0, e = BBs.size(); i != e; ++i)
764 for (unsigned i = 0, e = Insts.size(); i != e; ++i) {
838 unsigned NumPrint = std::min<size_t>(NamedMDs.size(), 10);
841 if (NumPrint < NamedMDs.size())
842 outs() << "... <" << NamedMDs.size() << " total>";
903 for (unsigned i = 0, e = NamedMDOps.size(); i != e; ++i) {
988 if (GVs.size() > 1 && !BugpointIsInterrupted) {
992 unsigned OldSize = GVs.size();
998 if (GVs.size() < OldSize)
1104 if (Functions.size() > 1 && !BugpointIsInterrupted) {
1108 unsigned OldSize = Functions.size();
1114 if (Functions.size() < OldSize)
1137 OldSize += Attrs.size();
1143 NewSize += Attrs.size();
1157 unsigned OldSize = Blocks.size();
1165 if (Blocks.size() < OldSize)
1179 unsigned OldSize = Blocks.size();
1183 if (Blocks.size() < OldSize)
1192 unsigned OldSize = Blocks.size();
1196 if (Blocks.size() < OldSize)
1287 << (PassesToRun.size() == 1 ? ": " : "es: ")
tools/bugpoint/ExtractFunction.cpp 234 for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
240 ArrayType::get(ArrayElts[0]->getType(), ArrayElts.size()), ArrayElts);
324 for (unsigned i = 0, e = F.size(); i != e; ++i) {
tools/bugpoint/FindBugs.cpp 50 for (int i = 0, e = PassesToRun.size(); i != e; i++) {
tools/bugpoint/ListReducer.h 55 if (TheList.size() == 1) // we are done, it's the base case and it fails
80 unsigned MidTop = TheList.size();
107 MidTop = TheList.size();
131 MidTop = TheList.size();
139 MidTop = TheList.size();
161 if (TheList.size() > 2) {
176 for (unsigned i = 1; i < TheList.size() - 1; ++i) {
tools/bugpoint/Miscompilation.cpp 253 << (Funcs.size() == 1 ? "this function is" : "these functions are")
255 << (BD.getPassesToRun().size() == 1 ? "" : "es") << ":";
271 for (unsigned i = 0, e = Funcs.size(); i != e; ++i) {
344 for (unsigned i = 0, e = MiscompiledFunctions.size(); i != e; ++i)
374 for (unsigned i = 0, e = MiscompiledFunctions.size(); i != e; ++i)
400 for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
431 for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
490 outs() << "but these " << BBs.size() << " blocks are extracted: ";
491 for (unsigned i = 0, e = BBs.size() < 10 ? BBs.size() : 10; i != e; ++i)
491 for (unsigned i = 0, e = BBs.size() < 10 ? BBs.size() : 10; i != e; ++i)
493 if (BBs.size() > 10)
506 for (unsigned i = 0, e = FunctionsBeingTested.size(); i != e; ++i) {
510 for (unsigned i = 0, e = BBs.size(); i != e; ++i) {
544 for (unsigned i = 0, e = MiscompiledFunctions.size(); i != e; ++i)
551 unsigned OldSize = Blocks.size();
566 if (Blocks.size() == OldSize)
597 for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
636 << (MiscompiledFunctions.size() == 1 ? " is" : "s are")
661 << (MiscompiledFunctions.size() == 1 ? " is" : "s are")
684 << (MiscompiledFunctions.size() == 1 ? " is" : "s are")
748 << (getPassesToRun().size() == 1 ? "" : "es") << ": "
tools/bugpoint/ToolRunner.cpp 184 for (unsigned i = 0, e = ToolArgs.size(); i != e; ++i)
189 for (unsigned i = 0, e = Args.size(); i != e; ++i)
195 for (unsigned i = 0, e = LLIArgs.size() - 1; i != e; ++i) errs()
320 for (std::size_t i = 0; i < ExecutorArgs.size(); ++i)
325 for (unsigned i = 0, e = Args.size(); i != e; ++i)
450 for (unsigned i = 0, e = ToolArgs.size(); i != e; ++i)
463 for (unsigned i = 0, e = LLCArgs.size() - 1; i != e; ++i) errs()
566 for (unsigned i = 0, e = ToolArgs.size(); i != e; ++i)
569 for (unsigned i = 0, e = SharedLibs.size(); i != e; ++i) {
575 for (unsigned i = 0, e = Args.size(); i != e; ++i)
581 for (unsigned i = 0, e = JITArgs.size() - 1; i != e; ++i) errs()
609 for (size_t I = 0; I < Args.size(); ++I) {
613 if (I == Args.size())
677 for (unsigned i = 0, e = ArgsForCC.size(); i != e; ++i)
688 for (unsigned i = 0, e = CCArgs.size() - 1; i != e; ++i) errs()
728 for (unsigned i = 0, e = Args.size(); i != e; ++i)
736 for (unsigned i = 0, e = ProgramArgs.size() - 1; i != e; ++i) errs()
826 for (unsigned i = 0, e = ArgsForCC.size(); i != e; ++i)
832 for (unsigned i = 0, e = CCArgs.size() - 1; i != e; ++i) errs()
tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp 89 for (unsigned i = 0, e = args.size(); i != e; ++i) {
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h 310 unsigned size() const { return Data ? elements().size() : 0; }
tools/clang/include/clang/Basic/Diagnostic.h 1470 unsigned range_size() const { return Ranges.size(); }
1480 unsigned fixit_size() const { return FixIts.size(); }
tools/clang/include/clang/Basic/Module.h 439 Parent->SubModuleIndex[Name] = Parent->SubModules.size();
626 return M->getVisibilityID() < ImportLocs.size()
tools/clang/include/clang/Basic/SourceManagerInternals.h 104 assert(ID < FilenamesByID.size() && "Invalid FilenameID");
108 unsigned getNumFilenames() const { return FilenamesByID.size(); }
tools/clang/include/clang/Driver/Multilib.h 169 unsigned size() const { return Multilibs.size(); }
tools/clang/include/clang/Frontend/ASTUnit.h 518 return TopLevelDeclsInPreamble.size() + TopLevelDecls.size();
518 return TopLevelDeclsInPreamble.size() + TopLevelDecls.size();
625 return CachedCompletionResults.size();
tools/clang/include/clang/Lex/HeaderSearch.h 272 assert(angledDirIdx <= systemDirIdx && systemDirIdx <= dirs.size() &&
657 unsigned header_file_size() const { return FileInfo.size(); }
675 unsigned search_dir_size() const { return SearchDirs.size(); }
tools/clang/include/clang/Lex/PreprocessingRecord.h 369 return LoadedPreprocessedEntities.size();
447 Self->LoadedPreprocessedEntities.size() + this->I : this->I;
456 return iterator(this, -(int)LoadedPreprocessedEntities.size());
461 return iterator(this, PreprocessedEntities.size());
471 return iterator(this, PreprocessedEntities.size());
479 assert(end <= LoadedPreprocessedEntities.size());
481 iterator(this, int(start) - LoadedPreprocessedEntities.size()),
482 iterator(this, int(end) - LoadedPreprocessedEntities.size()));
tools/clang/include/clang/Serialization/ASTReader.h 1739 return static_cast<unsigned>(IdentifiersLoaded.size());
1744 return static_cast<unsigned>(MacrosLoaded.size());
1749 return static_cast<unsigned>(TypesLoaded.size());
1754 return static_cast<unsigned>(DeclsLoaded.size());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h 382 unsigned num_roots() const { return Roots.size(); }
383 unsigned num_eops() const { return EndNodes.size(); }
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h 83 for (std::size_t i = 1; i < ASTs.size(); ++i)
tools/clang/include/clang/Tooling/Refactoring/ASTSelection.h 106 return SelectedNode.get().Children.size();
tools/clang/include/clang/Tooling/Transformer/Stencil.h 121 PartStrings.reserve(Parts.size());
tools/clang/lib/ARCMigrate/ARCMT.cpp 322 for (unsigned i=0, e = transforms.size(); i != e; ++i)
365 for (unsigned i=0, e = transforms.size(); i != e; ++i) {
tools/clang/lib/ARCMigrate/FileRemapper.cpp 103 for (unsigned i = 0, e = pairs.size(); i != e; ++i)
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp 245 for (unsigned i = 0, e = pass.ARCMTMacroLocs.size(); i != e; ++i) {
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 182 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) {
198 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) {
302 for (unsigned i = 0, e = AllProps.size(); i != e; ++i) {
335 for (unsigned i = 0, e = GCAttrs.size(); i != e; ++i) {
tools/clang/lib/ARCMigrate/TransformActions.cpp 199 for (unsigned i = 0, e = CachedActions.size(); i != e; ++i) {
243 for (unsigned i = 0, e = CachedActions.size(); i != e; ++i) {
tools/clang/lib/AST/Interp/ByteCodeEmitter.cpp 88 const size_t Target = Code.size();
106 const int64_t Position = Code.size() + sizeof(Opcode) + sizeof(int32_t);
131 if (Code.size() + Size > std::numeric_limits<unsigned>::max()) {
142 SrcMap.emplace_back(Code.size(), SI);
tools/clang/lib/AST/Interp/Function.cpp 26 CodePtr Function::getCodeEnd() const { return Code.data() + Code.size(); }
tools/clang/lib/AST/Interp/Program.cpp 48 unsigned I = Globals.size();
83 assert(Idx < Globals.size());
177 unsigned I = Globals.size();
tools/clang/lib/AST/Interp/Program.h 55 assert(Idx < Globals.size());
tools/clang/lib/AST/Type.cpp 3302 while (RecordTypeList.size() > NextToCheckIndex) {
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp 590 assert((Matchers.size() < USHRT_MAX) && "Too many matchers.");
591 for (unsigned I = 0, E = Matchers.size(); I != E; ++I) {
tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp 42 : Error(Error), BeginIndex(Error->Errors.size()) {}
46 if (BeginIndex < Error->Errors.size()) {
48 for (size_t i = BeginIndex + 1, e = Error->Errors.size(); i < e; ++i) {
175 if (Content.Messages.size() == 1) {
178 for (size_t i = 0, e = Content.Messages.size(); i != e; ++i) {
187 for (size_t i = 0, e = Errors.size(); i != e; ++i) {
201 for (size_t i = 0, e = Errors.size(); i != e; ++i) {
204 for (size_t i = 0, e = Error.ContextStack.size(); i != e; ++i) {
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 282 unsigned getNumArgs() const override { return ArgKinds.size(); }
610 if (Constructed.size() > 1) {
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp 467 Args.size() + 1);
tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp 122 if (Matchers.size() != 1)
129 for (size_t i = 0, e = Matchers.size(); i != e; ++i) {
142 for (size_t i = 0, e = Matchers.size(); i != e; ++i) {
192 for (size_t i = 0, e = Args.size(); i != e; ++i) {
tools/clang/lib/Analysis/CloneDetection.cpp 133 for (unsigned i = 0; i < Result.size(); ++i) {
134 for (unsigned j = 0; j < Result.size(); ++j) {
375 for (unsigned i = 0; i < StmtsByHash.size() - 1; ++i) {
385 for (; i < StmtsByHash.size(); ++i) {
528 for (size_t KindIndex = 0; KindIndex < Variables.size(); ++KindIndex) {
538 Occurences.emplace_back(Variables.size(), Mention);
566 assert(Other.Occurences.size() == Occurences.size());
566 assert(Other.Occurences.size() == Occurences.size());
567 for (unsigned i = 0; i < Occurences.size(); ++i) {
589 if (OtherOccurence.KindID < Variables.size())
602 if (ThisOccurence.KindID < Other.Variables.size())
tools/clang/lib/Analysis/PostOrderCFGView.cpp 27 BlockOrder[*I] = Blocks.size() + 1;
tools/clang/lib/Analysis/ThreadSafety.cpp 164 return static_cast<unsigned short>(Facts.size() - 1);
432 assert(*i < VarDefinitions.size());
485 for (unsigned i = 1, e = VarDefinitions.size(); i < e; ++i) {
519 unsigned getContextIndex() { return SavedContexts.size()-1; }
530 unsigned newID = VarDefinitions.size();
538 unsigned newID = VarDefinitions.size();
548 unsigned newID = VarDefinitions.size();
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 879 static_cast<unsigned>(CurrentArguments.size()), Arena);
900 static_cast<unsigned>(CurrentInstructions.size()), Arena);
tools/clang/lib/Basic/CodeGenOptions.cpp 25 for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
tools/clang/lib/Basic/DiagnosticIDs.cpp 278 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() &&
285 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() &&
299 unsigned ID = DiagInfo.size()+DIAG_UPPER_LIMIT;
tools/clang/lib/Basic/LangOptions.cpp 40 for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
tools/clang/lib/Basic/Module.cpp 61 Parent->SubModuleIndex[Name] = Parent->SubModules.size();
468 for (unsigned I = 0, N = ConfigMacros.size(); I != N; ++I) {
573 for (unsigned I = 0, N = UnresolvedConflicts.size(); I != N; ++I) {
582 for (unsigned I = 0, N = Conflicts.size(); I != N; ++I) {
628 if (ImportLocs.size() <= ID)
tools/clang/lib/Basic/SourceManager.cpp 231 auto IterBool = FilenameIDs.try_emplace(Name, FilenamesByID.size());
359 for (unsigned i = 0, e = MemBufferInfos.size(); i != e; ++i) {
2051 llvm::errs() << FileInfos.size() << " files mapped, " << MemBufferInfos.size()
2142 for (unsigned i = 0, e = MemBufferInfos.size(); i != e; ++i)
tools/clang/lib/Basic/Warnings.cpp 87 for (unsigned i = 0, e = Opts.Warnings.size(); i != e; ++i) {
197 for (unsigned i = 0, e = Opts.Remarks.size(); i != e; ++i) {
tools/clang/lib/CodeGen/BackendUtil.cpp 1656 CGOpts.CmdArgs.size());
tools/clang/lib/CodeGen/CGDebugInfo.cpp 3543 FnBeginRegionCount.push_back(LexicalBlockStack.size());
3740 FnBeginRegionCount.push_back(LexicalBlockStack.size());
3819 assert(RCount <= LexicalBlockStack.size() && "Region stack mismatch");
3822 while (LexicalBlockStack.size() != RCount) {
tools/clang/lib/CodeGen/CGDeclCXX.cpp 515 assert(I->second < CXXGlobalInits.size() &&
739 for (unsigned i = 0, e = DtorsAndObjects.size(); i != e; ++i) {
tools/clang/lib/CodeGen/CGObjCGNU.cpp 1636 if (EarlyInitList.size() > 0) {
3731 symtab.addInt(CGM.Int16Ty, Classes.size());
3733 symtab.addInt(CGM.Int16Ty, Categories.size());
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp 882 for (unsigned i = 0, e = BFIs.size(); i != e; ++i) {
tools/clang/lib/CodeGen/CGStmt.cpp 1951 if (ResultRegTypes.size() == 1) {
1954 for (unsigned i = 0, e = ResultRegTypes.size(); i != e; ++i) {
2208 for (unsigned i = 0, e = InOutArgs.size(); i != e; i++) {
2265 else if (ResultRegTypes.size() == 1)
2293 assert(RegResults.size() == ResultRegTypes.size());
2293 assert(RegResults.size() == ResultRegTypes.size());
2294 assert(RegResults.size() == ResultTruncRegTypes.size());
2294 assert(RegResults.size() == ResultTruncRegTypes.size());
2295 assert(RegResults.size() == ResultRegDests.size());
2295 assert(RegResults.size() == ResultRegDests.size());
2298 assert(ResultTypeRequiresCast.size() <= ResultRegDests.size());
2299 for (unsigned i = 0, e = RegResults.size(); i != e; ++i) {
tools/clang/lib/CodeGen/CGVTables.cpp 994 size_t savedSize = DeferredVTables.size();
1003 assert(savedSize == DeferredVTables.size() &&
tools/clang/lib/CodeGen/CodeGenModule.cpp 1905 UsedArray.resize(List.size());
1906 for (unsigned i = 0, e = List.size(); i != e; ++i) {
2166 Annotations[0]->getType(), Annotations.size()), Annotations);
2544 DelayedCXXInitPosition[Global] = CXXGlobalInits.size();
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 489 return RegionStack.size() - 1;
495 size_t Index = RegionStack.size();
540 if (LastTerminatedRegion->second != RegionStack.size())
568 assert(RegionStack.size() >= ParentIndex && "parent not in stack");
570 while (RegionStack.size() > ParentIndex) {
646 RegionStack.size() < LastTerminatedRegion->second)
795 LastTerminatedRegion = {EndLoc, RegionStack.size()};
1123 for (size_t i = RegionStack.size(); i != Index; --i) {
1416 llvm::ArrayType::get(FunctionRecordTy, FunctionRecords.size());
1452 FunctionNames.size());
tools/clang/lib/DirectoryWatcher/DirectoryScanner.cpp 45 Events.reserve(Scan.size());
tools/clang/lib/Driver/Driver.cpp 820 if (ConfigFiles.size() > 1) {
1600 Cur = Flags.at(Flags.size() - 1);
1602 if (Flags.size() >= 2) {
1603 Prev = Flags.at(Flags.size() - 2);
tools/clang/lib/Driver/Multilib.cpp 100 for (unsigned I = 0, N = Flags.size(); I != N; ++I) {
264 if (Filtered.size() == 1) {
tools/clang/lib/Driver/ToolChain.cpp 1060 Args.getAllArgValues(options::OPT_fopenmp_targets_EQ).size() != 1) {
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 1466 for (unsigned I = 0, N = Features.size(); I < N; ++I) {
1472 for (unsigned I = 0, N = Features.size(); I < N; ++I) {
tools/clang/lib/Format/ContinuationIndenter.cpp 81 int MatchingStackIndex = Stack.size() - 1;
305 if (Previous.is(tok::l_brace) && State.Stack.size() > 1 &&
306 State.Stack[State.Stack.size() - 2].NestedBlockInlined &&
307 State.Stack[State.Stack.size() - 2].HasMultipleNestedBlocks)
724 if (HasTrailingCall && State.Stack.size() > 1 &&
725 State.Stack[State.Stack.size() - 2].CallContinuation == 0)
810 if (State.Stack.size() > 1)
811 State.Stack[State.Stack.size() - 2].LastSpace =
864 !Style.isCpp() && Current.is(tok::r_brace) && State.Stack.size() > 1 &&
865 State.Stack[State.Stack.size() - 2].NestedBlockInlined;
867 for (unsigned i = 0, e = State.Stack.size() - 1; i != e; ++i)
949 State.Stack.size() > 1) {
951 return State.Stack[State.Stack.size() - 2].NestedBlockIndent;
954 return State.Stack[State.Stack.size() - 2].LastSpace;
972 if (Current.is(tok::r_paren) && State.Stack.size() > 1 &&
975 return State.Stack[State.Stack.size() - 2].LastSpace;
977 return State.Stack[State.Stack.size() - 2].LastSpace;
1084 assert(State.Stack.size());
1172 !Previous->is(TT_DictLiteral) && State.Stack.size() > 1 &&
1174 if (State.Stack[State.Stack.size() - 2].NestedBlockInlined && Newline)
1175 for (unsigned i = 0, e = State.Stack.size() - 1; i != e; ++i)
1177 State.Stack[State.Stack.size() - 2].NestedBlockInlined = false;
1296 if (State.Stack.size() == 1) {
1434 if (State.Stack.size() > 1 &&
1644 for (unsigned i = 0, e = State.Stack.size(); i != e; ++i)
1653 for (unsigned i = 0, e = State.Stack.size(); i != e; ++i)
2196 for (unsigned i = 0, e = State.Stack.size(); i != e; ++i)
tools/clang/lib/Format/Format.cpp 589 return Seq.size();
593 if (Index >= Seq.size()) {
594 assert(Index == Seq.size());
1165 for (unsigned i = 0; i < Styles.size(); ++i) {
1184 for (int i = Styles.size() - 1; i >= 0; --i) {
1635 while (Idx < Tokens.size()) {
1637 while ((End + 1) < Tokens.size() &&
2057 for (unsigned I = 0; I < Style.JavaImportGroups.size(); I++) {
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 57 while (IndentForLevel.size() <= Line.Level)
72 while (IndentForLevel.size() <= Line.Level)
tools/clang/lib/Frontend/ASTMerge.cpp 43 for (unsigned I = 0, N = ASTFiles.size(); I != N; ++I) {
tools/clang/lib/Frontend/ASTUnit.cpp 1030 TopLevelDeclIDs.reserve(TopLevelDecls.size());
1152 assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
1433 Resolved.reserve(TopLevelDeclsInPreamble.size());
1585 assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
2211 assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
2387 Ranges.reserve(SD.Ranges.size());
2395 FixIts.reserve(SD.FixIts.size());
tools/clang/lib/Frontend/ChainedIncludesSource.cpp 42 for (unsigned i = 0, e = CIs.size(); i != e; ++i) {
124 for (unsigned i = 0, e = includes.size(); i != e; ++i) {
tools/clang/lib/Frontend/CompilerInstance.cpp 1975 for (unsigned I = 0, N = TopModule->ConfigMacros.size(); I != N; ++I) {
tools/clang/lib/Frontend/CompilerInvocation.cpp 2007 for (unsigned i = 0, e = Inputs.size(); i != e; ++i) {
3618 code = hash_combine(code, hsOpts.SystemHeaderPrefixes.size(), SHPC,
3619 hsOpts.UserEntries.size(), UEC);
tools/clang/lib/Frontend/FrontendAction.cpp 193 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size();
tools/clang/lib/Frontend/FrontendActions.cpp 256 ModuleHeaders.reserve(Inputs.size());
552 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size();
tools/clang/lib/Frontend/InitHeaderSearch.cpp 475 for (unsigned i = First; i != SearchList.size(); ++i) {
556 SearchList.reserve(IncludePath.size());
565 unsigned NumQuoted = SearchList.size();
572 unsigned NumAngled = SearchList.size();
601 for (unsigned i = 0, e = SearchList.size(); i != e; ++i) {
627 for (unsigned i = 0, e = HSOpts.UserEntries.size(); i != e; ++i) {
638 for (unsigned i = 0, e = HSOpts.SystemHeaderPrefixes.size(); i != e; ++i)
tools/clang/lib/Frontend/InitPreprocessor.cpp 1162 for (unsigned i = 0, e = InitOpts.Macros.size(); i != e; ++i) {
1176 for (unsigned i = 0, e = InitOpts.MacroIncludes.size(); i != e; ++i)
1185 for (unsigned i = 0, e = InitOpts.Includes.size(); i != e; ++i) {
tools/clang/lib/Frontend/MultiplexConsumer.cpp 30 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
36 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
48 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
54 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
60 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
66 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
123 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
129 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
135 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
140 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
145 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
150 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
160 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
170 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
174 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
179 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
189 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
194 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
200 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
204 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
209 for (size_t i = 0, e = Listeners.size(); i != e; ++i)
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 302 if (Clang->getFrontendOpts().Inputs.size() != 1 ||
394 return PreambleBounds(PreambleBytes.size(), PreambleEndsAtStartOfLine);
435 if (PreambleBytes.size() != Bounds.Size ||
512 PreambleBounds Bounds(PreambleBytes.size(), PreambleEndsAtStartOfLine);
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 49 assert(CurTok < RawTokens.size() && "Overran eof!");
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 6869 for (unsigned i = 0, e = InstanceMethods.size(); i < e; i++)
6871 for (unsigned i = 0, e = ClassMethods.size(); i < e; i++)
6873 for (unsigned i = 0, e = OptInstanceMethods.size(); i < e; i++)
6875 for (unsigned i = 0, e = OptClassMethods.size(); i < e; i++)
6927 if (InstanceMethods.size() > 0) {
6934 if (ClassMethods.size() > 0) {
6941 if (OptInstanceMethods.size() > 0) {
6948 if (OptClassMethods.size() > 0) {
6965 if (AllMethods.size() > 0) {
tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp 34 All.emplace_back(Level, Notes.size());
38 All.emplace_back(Level, Warnings.size());
42 All.emplace_back(Level, Remarks.size());
47 All.emplace_back(Level, Errors.size());
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp 428 if (!(Prefixes.size() == 1 ? PH.Search(*Prefixes.begin(), true, true)
897 return DL.size();
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp 206 e = Clang->getFrontendOpts().Plugins.size(); i != e; ++i) {
231 unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size();
tools/clang/lib/Index/IndexBody.cpp 174 if (Symbols.size() != 1)
tools/clang/lib/Index/IndexTypeSourceInfo.cpp 195 if (Symbols.size() != 1)
tools/clang/lib/Lex/HeaderSearch.cpp 91 << FileInfo.size() << " files tracked.\n";
93 for (unsigned i = 0, e = FileInfo.size(); i != e; ++i) {
117 for (unsigned i = 0, e = HeaderMaps.size(); i != e; ++i)
237 for (unsigned Idx = 0, N = SearchDirs.size(); Idx != N; ++Idx) {
896 for (; i != SearchDirs.size(); ++i) {
936 for (unsigned j = SystemHeaderPrefixes.size(); j; --j) {
1014 CacheLookup.HitIdx = SearchDirs.size();
1163 if (FE->getUID() >= FileInfo.size())
1191 if (FE->getUID() >= FileInfo.size()) {
1208 } else if (FE->getUID() >= FileInfo.size()) {
1634 for (unsigned Idx = 0, N = SearchDirs.size(); Idx != N; ++Idx) {
1689 for (unsigned Idx = 0, N = SearchDirs.size(); Idx != N; ++Idx) {
1784 for (unsigned I = 0; I != SearchDirs.size(); ++I) {
tools/clang/lib/Lex/MacroArgs.cpp 81 for (unsigned i = 0, e = PreExpArgTokens.size(); i != e; ++i)
166 if (PreExpArgTokens.size() < getNumMacroArguments())
tools/clang/lib/Lex/PPDirectives.cpp 2155 if (IncludeMacroStack.size() == MaxAllowedIncludeStackDepth-1) {
tools/clang/lib/Lex/PPLexerChange.cpp 74 if (MaxIncludeStackDepth < IncludeMacroStack.size())
75 MaxIncludeStackDepth = IncludeMacroStack.size();
tools/clang/lib/Lex/PreprocessingRecord.cpp 103 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) {
108 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos;
126 if (unsigned(Pos) >= PreprocessedEntities.size()) {
155 unsigned TotalLoaded = LoadedPreprocessedEntities.size();
215 size_t Count = PreprocessedEntities.size();
263 return getPPEntityID(PreprocessedEntities.size()-1, /*isLoaded=*/false);
271 return getPPEntityID(PreprocessedEntities.size()-1, /*isLoaded=*/false);
321 unsigned Result = LoadedPreprocessedEntities.size();
322 LoadedPreprocessedEntities.resize(LoadedPreprocessedEntities.size()
328 unsigned Result = SkippedRanges.size();
329 SkippedRanges.resize(SkippedRanges.size() + NumRanges);
337 for (unsigned Index = 0; Index != SkippedRanges.size(); ++Index) {
353 assert(Index < LoadedPreprocessedEntities.size() &&
361 assert(Index < PreprocessedEntities.size() &&
369 assert(Index < LoadedPreprocessedEntities.size() &&
tools/clang/lib/Sema/Sema.cpp 1474 PartialDiagId.emplace(Diags.size());
tools/clang/lib/Sema/SemaCodeComplete.cpp 236 unsigned size() const { return Results.size(); }
1167 SMap[R.Declaration->getDeclName()].Add(R.Declaration, Results.size());
1342 OverloadSet.Add(Method, Results.size());
tools/clang/lib/Sema/SemaDeclAttr.cpp 4361 DiagnosticIdentifiers.size()));
6180 Sanitizers.size()));
tools/clang/lib/Sema/SemaExpr.cpp11648 while (RecordTypeList.size() > NextToCheckIndex) {
tools/clang/lib/Sema/SemaStmt.cpp 1031 for (unsigned i = 0, e = CaseRanges.size(); i != e; ++i) {
1069 for (unsigned i = 0, e = CaseRanges.size(); i != e; ++i) {
tools/clang/lib/Sema/SemaStmtAttr.cpp 73 S.Context, A, DiagnosticIdentifiers.data(), DiagnosticIdentifiers.size());
tools/clang/lib/Serialization/ASTReader.cpp 584 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) {
705 for (unsigned I = 0, N = ExistingPPOpts.Includes.size(); I != N; ++I) {
730 for (unsigned I = 0, N = ExistingPPOpts.MacroIncludes.size(); I != N; ++I) {
2274 if (ID == 0 || ID > F.InputFilesLoaded.size())
3110 TypesLoaded.resize(TypesLoaded.size() + F.LocalNumTypes);
3140 DeclsLoaded.resize(DeclsLoaded.size() + F.LocalNumDecls);
3204 IdentifiersLoaded.resize(IdentifiersLoaded.size()
3701 MacrosLoaded.resize(MacrosLoaded.size() + F.LocalNumMacros);
7498 assert(Index < TypesLoaded.size() && "Type index out-of-range");
7768 if (Index > DeclsLoaded.size()) {
7853 if (Index >= DeclsLoaded.size()) {
7868 if (Index >= DeclsLoaded.size()) {
8140 = TypesLoaded.size() - std::count(TypesLoaded.begin(), TypesLoaded.end(),
8143 = DeclsLoaded.size() - std::count(DeclsLoaded.begin(), DeclsLoaded.end(),
8146 = IdentifiersLoaded.size() - std::count(IdentifiersLoaded.begin(),
8150 = MacrosLoaded.size() - std::count(MacrosLoaded.begin(),
8164 NumTypesLoaded, (unsigned)TypesLoaded.size(),
8165 ((float)NumTypesLoaded/TypesLoaded.size() * 100));
8168 NumDeclsLoaded, (unsigned)DeclsLoaded.size(),
8169 ((float)NumDeclsLoaded/DeclsLoaded.size() * 100));
8172 NumIdentifiersLoaded, (unsigned)IdentifiersLoaded.size(),
8173 ((float)NumIdentifiersLoaded/IdentifiersLoaded.size() * 100));
8176 NumMacrosLoaded, (unsigned)MacrosLoaded.size(),
8177 ((float)NumMacrosLoaded/MacrosLoaded.size() * 100));
8818 assert(ID <= IdentifiersLoaded.size() && "identifier ID out of range");
9817 unsigned NumInputs = MF.InputFilesLoaded.size();
9830 unsigned NumInputs = MF.InputFilesLoaded.size();
tools/clang/lib/Serialization/ASTWriter.cpp 122 sizeof(T) * v.size());
1442 Record.push_back(DiagOpts.Warnings.size());
1443 for (unsigned I = 0, N = DiagOpts.Warnings.size(); I != N; ++I)
1445 Record.push_back(DiagOpts.Remarks.size());
1446 for (unsigned I = 0, N = DiagOpts.Remarks.size(); I != N; ++I)
1602 Record.push_back(LangOpts.ModuleFeatures.size());
1612 Record.push_back(LangOpts.CommentOpts.BlockCommandNames.size());
1619 Record.push_back(LangOpts.OMPTargetTriples.size());
1634 Record.push_back(TargetOpts.FeaturesAsWritten.size());
1635 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size(); I != N; ++I) {
1638 Record.push_back(TargetOpts.Features.size());
1639 for (unsigned I = 0, N = TargetOpts.Features.size(); I != N; ++I) {
1658 Record.push_back(HSOpts.UserEntries.size());
1659 for (unsigned I = 0, N = HSOpts.UserEntries.size(); I != N; ++I) {
1668 Record.push_back(HSOpts.SystemHeaderPrefixes.size());
1669 for (unsigned I = 0, N = HSOpts.SystemHeaderPrefixes.size(); I != N; ++I) {
1693 Record.push_back(PPOpts.Macros.size());
1694 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) {
1700 Record.push_back(PPOpts.Includes.size());
1701 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I)
1705 Record.push_back(PPOpts.MacroIncludes.size());
1706 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I)
1859 InputFileID = InputFileOffsets.size();
1869 InputFileOffsets.size(),
1901 InputFileOffsets.size(), UserFilesNum};
2365 PreloadSLocs.push_back(SLocEntryOffsets.size());
2414 SOURCE_LOCATION_OFFSETS, SLocEntryOffsets.size(),
2454 Record.push_back(L.second.size());
2616 for (unsigned I = 0, N = MacroInfosToEmit.size(); I != N; ++I) {
2628 if (Index == MacroOffsets.size())
2631 if (Index > MacroOffsets.size())
2690 RecordData::value_type Record[] = {MACRO_OFFSET, MacroOffsets.size(),
3210 if (TypeOffsets.size() == Index)
3212 else if (TypeOffsets.size() < Index) {
3259 RecordData::value_type Record[] = {TYPE_OFFSET, TypeOffsets.size(),
3272 RecordData::value_type Record[] = {DECL_OFFSET, DeclOffsets.size(),
3535 SELECTOR_OFFSETS, SelectorOffsets.size(),
3845 for (unsigned I = 0, N = IdentifierOffsets.size(); I != N; ++I)
3850 IdentifierOffsets.size(),
tools/clang/lib/Serialization/ASTWriterDecl.cpp 2373 if (DeclOffsets.size() == Index)
2375 else if (DeclOffsets.size() < Index) {
tools/clang/lib/Serialization/MultiOnDiskHashTable.h 321 Writer.write<uint32_t>(Merged->Files.size());
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp 197 if (SFinder.Sizeofs.size() != 1)
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp 113 assert(Args.size() == 1);
123 assert(Args.size() == 1);
251 size_t E = R.size();
282 size_t E = R.size();
406 if (CE->getNumArgs() != ArgTypes.size())
414 for (size_t I = 0, E = ArgTypes.size(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 386 if (CD.QualifiedName.size() > 1 && FD) {
389 size_t NumUnmatched = CD.QualifiedName.size() - 1;
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 284 if (SupportsCrossFileDiagnostics && FileIDs.size() > 1) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 138 int getSize() const { return Nodes.size(); }
298 while (Expanded < Ids.size())
502 int getSize() const { return RootIds.size(); }
tools/clang/lib/Tooling/AllTUsExecution.cpp 107 const std::string TotalNumStr = std::to_string(Files.size());
tools/clang/lib/Tooling/ArgumentsAdjusters.cpp 27 for (size_t i = 0, e = Args.size(); i < e; ++i) {
45 for (size_t i = 0, e = Args.size(); i < e; ++i) {
63 for (size_t i = 0, e = Args.size(); i < e; ++i) {
79 for (size_t i = 0, e = Args.size(); i < e; ++i) {
133 for (size_t I = 0, E = Args.size(); I != E; I++) {
tools/clang/lib/Tooling/Core/Replacement.cpp 499 Result[Result.size() - 1] =
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 155 for (unsigned Pos = 1; Pos < OldArgs.size();) {
323 Paths.reserve(OriginalPaths.size());
324 Types.reserve(OriginalPaths.size());
325 Stems.reserve(OriginalPaths.size());
326 for (size_t I = 0; I < OriginalPaths.size(); ++I) {
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp 269 if (Args.size() < 2)
302 if (Nodes.size() == 1)
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp 55 assert(SelectionStack.size() == 1 && "stack was not popped");
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp 194 for (unsigned I = 0; I < NewNames.size(); ++I) {
249 assert(USRList.size() == NewNames.size());
249 assert(USRList.size() == NewNames.size());
253 for (unsigned I = 0; I < NewNames.size(); ++I) {
tools/clang/lib/Tooling/Syntax/Tokens.cpp 126 Expanded < ExpandedTokens.data() + ExpandedTokens.size());
218 Spelled < (File.SpelledTokens.data() + File.SpelledTokens.size()));
368 for (unsigned I = 0; I < Result.ExpandedTokens.size() - 1; ++I) {
378 Result.ExpandedTokens.size() - 1);
379 Result.Files[SM.getMainFileID()].EndExpanded = Result.ExpandedTokens.size();
425 for (; I + 1 < Result.ExpandedTokens.size(); ++I) {
439 for (unsigned I = 0; I < Result.ExpandedTokens.size(); ++I) {
523 for (; NextSpelled < File.SpelledTokens.size(); ++NextSpelled) {
624 M.EndSpelled == File.SpelledTokens.size()
tools/clang/lib/Tooling/Tooling.cpp 467 AbsolutePaths.reserve(SourcePaths.size());
642 assert(ASTs.size() == 1);
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp 142 assert(Ms.size() == 1 && "Cases must have compatible matchers.");
tools/clang/tools/arcmt-test/arcmt-test.cpp 186 for (unsigned i=0, e = transforms.size(); i != e; ++i) {
tools/clang/tools/clang-diff/ClangDiff.cpp 109 if (ASTs.size() != Files.size())
tools/clang/tools/clang-refactor/TestSupport.cpp 75 if (LHS.size() != RHS.size())
75 if (LHS.size() != RHS.size())
143 size_t GroupIndex = Results.size() - 1;
144 if (Results.back().size() >=
147 if (GroupIndex >= TestRanges.GroupedRanges.size()) {
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp 156 std::size_t Idx = Args.size() - 1;
222 llvm::outs() << "Running clang-scan-deps on " << Inputs.size()
234 if (Index >= Inputs.size())
tools/clang/tools/diagtool/FindDiagnosticID.cpp 54 llvm::cl::ParseCommandLineOptions((int)Args.size(), Args.data(),
tools/clang/tools/diagtool/ListWarnings.cpp 72 out << "Warnings with flags (" << Flagged.size() << "):\n";
75 out << "Warnings without flags (" << Unflagged.size() << "):\n";
81 ((double)Flagged.size()) / (Flagged.size() + Unflagged.size()) * 100.0;
81 ((double)Flagged.size()) / (Flagged.size() + Unflagged.size()) * 100.0;
81 ((double)Flagged.size()) / (Flagged.size() + Unflagged.size()) * 100.0;
89 double avgDiagsPerFlag = (double) Flagged.size() / flagHistogram.size();
94 << flagHistogram["pedantic"].size() << '\n';
tools/clang/tools/driver/cc1as_main.cpp 426 for (unsigned i = 1, e = Opts.Features.size(); i != e; ++i)
598 unsigned NumArgs = Asm.LLVMArgs.size();
tools/clang/tools/extra/clang-doc/BitcodeWriter.cpp 123 assert(Inits.size() == BlockIdCount);
189 assert(Inits.size() == RecordIdCount);
383 assert(Block.second.size() < (1U << BitCodeConstants::SubblockIDSize));
391 assert(RIDs.size() < (1U << BitCodeConstants::SubblockIDSize));
tools/clang/tools/extra/clang-doc/Representation.cpp 50 for (unsigned long I = 0; I < Children.size(); I++) {
tools/clang/tools/extra/clang-doc/Representation.h 60 if (FirstCI != SecondCI || Children.size() != Other.Children.size())
60 if (FirstCI != SecondCI || Children.size() != Other.Children.size())
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp 120 for (size_t I = 0; I < Tokens.size(); ++I) {
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp 88 assert(Invocation->getFrontendOpts().Inputs.size() == 1);
393 LLVM_DEBUG(llvm::dbgs() << "Having found " << MatchedSymbols.size()
tools/clang/tools/extra/clang-include-fixer/SymbolIndexManager.cpp 100 << Symbols.size() << " results...\n");
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.cpp 18 this->RegexHeaderMappingTable.reserve(RegexHeaderMappingTable->size());
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 276 assert(options.getSourcePathList().size() == 1 &&
440 assert(FixerReplacements.size() == 1);
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 655 for (unsigned I = 0; I < ErrorFixes.size(); ++I) {
671 std::vector<bool> Apply(ErrorFixes.size(), true);
690 for (unsigned I = 0; I < ErrorFixes.size(); ++I) {
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp 109 for (unsigned I = 1, E = FileDirectives.size(); I != E; ++I)
113 Blocks.push_back(FileDirectives.size()); // Sentinel value.
117 for (unsigned I = 0, E = FileDirectives.size(); I != E; ++I)
121 for (unsigned BI = 0, BE = Blocks.size() - 1; BI != BE; ++BI)
139 for (unsigned BI = 0, BE = Blocks.size() - 1; BI != BE; ++BI) {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp 65 IgnoredIntegerValues.resize(IgnoredIntegerValuesInput.size());
75 IgnoredFloatingPointValues.reserve(IgnoredFloatingPointValuesInput.size());
76 IgnoredDoublePointValues.reserve(IgnoredFloatingPointValuesInput.size());
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp 930 Actions.reserve(Actions.size() + Tweaks->size());
930 Actions.reserve(Actions.size() + Tweaks->size());
1167 if (Params.positions.size() != 1) {
1170 Params.positions.size());
tools/clang/tools/extra/clangd/CodeComplete.cpp 1320 SPAN_ATTACH(Tracer, "returned_results", int64_t(Output.Completions.size()));
1324 NSema, NIndex, NSemaAndIndex, NIdent, Output.Completions.size(),
1326 assert(!Opts.Limit || Output.Completions.size() <= Opts.Limit);
1541 auto Ret = BundleLookup.try_emplace(OverloadSet, Bundles.size());
1855 OS << "CodeCompleteResult: " << R.Completions.size() << (R.HasMore ? "+" : "")
tools/clang/tools/extra/clangd/Diagnostics.cpp 241 OS << " (" << (D.Fixes.size() > 1 ? "fixes" : "fix") << " available)";
tools/clang/tools/extra/clangd/Headers.cpp 129 auto R = NameToIndex.try_emplace(Name, RealPathNames.size());
tools/clang/tools/extra/clangd/Quality.h 162 if (Heap.size() >= N) {
173 assert(Heap.size() <= N);
181 assert(Heap.size() <= N);
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 221 for (size_t I = 0, E = Cmd->CommandLine.size(); I < E; ++I) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp 142 NonConflicting.reserve(Tokens.size());
tools/clang/tools/extra/clangd/TUScheduler.cpp 110 if (LRU.size() <= MaxRetainedASTs)
tools/clang/tools/extra/clangd/XRefs.cpp 306 ResultIndex[*ID] = Result.size() - 1;
509 for (size_t I = 0, E = Params.size(); I != E; ++I) {
958 if (Index && Results.size() < Limit) {
980 if (Results.size() > Limit)
tools/clang/tools/extra/clangd/index/Background.cpp 169 log("Enqueueing {0} commands for indexing", ChangedFiles.size());
170 SPAN_ATTACH(Tracer, "files", int64_t(ChangedFiles.size()));
177 Tasks.reserve(NeedsReIndexing.size());
tools/clang/tools/extra/clangd/index/FileIndex.cpp 197 llvm::ArrayRef<Ref>(&RefsStorage[RefsStorage.size() - SymRefs.size()],
209 RefsStorage.size() * sizeof(Ref) + SymsStorage.size() * sizeof(Symbol);
209 RefsStorage.size() * sizeof(Ref) + SymsStorage.size() * sizeof(Symbol);
tools/clang/tools/extra/clangd/index/MemIndex.cpp 54 SPAN_ATTACH(Tracer, "results", static_cast<int>(Results.size()));
tools/clang/tools/extra/clangd/index/Ref.cpp 53 NumRefs += SymRefs.size();
tools/clang/tools/extra/clangd/index/Ref.h 83 size_t size() const { return Refs.size(); }
tools/clang/tools/extra/clangd/index/Relation.h 57 size_t size() const { return Relations.size(); }
tools/clang/tools/extra/clangd/index/Serialization.cpp 167 for (unsigned I = 0; I < Sorted.size(); ++I)
277 writeVar(IGN.DirectIncludes.size(), OS);
395 writeVar(Cmd.CommandLine.size(), CmdOS);
505 Result.Cmd->CommandLine.reserve(Cmd.CommandLine.size());
568 InternedCmd.CommandLine.reserve(Data.Cmd->CommandLine.size());
tools/clang/tools/extra/clangd/index/Symbol.h 189 size_t size() const { return Symbols.size(); }
tools/clang/tools/extra/clangd/index/dex/Dex.cpp 68 this->Corpus = dex::Corpus(Symbols.size());
69 std::vector<std::pair<float, const Symbol *>> ScoredSymbols(Symbols.size());
71 for (size_t I = 0; I < Symbols.size(); ++I) {
82 SymbolQuality.resize(Symbols.size());
84 for (size_t I = 0; I < ScoredSymbols.size(); ++I) {
91 for (DocID SymbolRank = 0; SymbolRank < Symbols.size(); ++SymbolRank) {
289 size_t Bytes = Symbols.size() * sizeof(const Symbol *);
290 Bytes += SymbolQuality.size() * sizeof(float);
tools/clang/tools/extra/clangd/index/dex/Iterator.cpp 377 switch (RealChildren.size()) {
407 switch (RealChildren.size()) {
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp 232 if (IDs.size() > 1) {
236 Name, IDs.size());
tools/clang/tools/extra/clangd/unittests/Annotations.cpp 23 Ps.reserve(Offsets.size());
45 Rs.reserve(OffsetRanges.size());
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp 738 0, AsyncRequests.size() - 1);
740 0, BlockingRequests.size() - 1);
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 658 EXPECT_EQ(Results.Completions.size(), Opts.Limit);
1035 if (P.size() != arg.parameters.size())
1035 if (P.size() != arg.parameters.size())
1037 for (unsigned I = 0; I < P.size(); ++I) {
1183 [this, Num] { return Requests.size() == Num; }));
1204 EXPECT_EQ(Reqs.size(), Num);
1712 EXPECT_EQ(Results.Completions.size(), 3u);
1718 EXPECT_TRUE(C.FixIts.size() == 1u || C.Name == "AuxFunction");
1752 EXPECT_EQ(Results.Completions.size(), 3u);
1836 EXPECT_EQ(Results.Completions.size(), 1u);
2158 ASSERT_EQ(Reqs1.size(), 1u);
2164 ASSERT_EQ(Reqs2.size(), 1u);
2171 ASSERT_EQ(Reqs3.size(), 2u);
tools/clang/tools/extra/clangd/unittests/DexTests.cpp 42 std::vector<DocID> IDs(IDAndScore.size());
43 for (size_t I = 0; I < IDAndScore.size(); ++I)
503 EXPECT_EQ(Matches.size(), *Req.Limit);
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp 712 EXPECT_EQ(D.Fixes.size(), 1u);
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp 547 for (unsigned I = 0; I < Refs.size(); ++I) {
571 for (unsigned I = 0; I < Refs.size(); ++I)
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp 50 EXPECT_THAT(Paths.size(), IndexFile.Sources->size());
tools/clang/tools/extra/clangd/unittests/IndexTests.cpp 144 EXPECT_EQ(Matches.size(), *Req.Limit);
tools/clang/tools/extra/clangd/unittests/Matchers.h 57 std::vector<int> Matches(Matchers.size());
59 for (size_t J = 0; I < Matchers.size() && J < V.size(); ++J)
59 for (size_t J = 0; I < Matchers.size() && J < V.size(); ++J)
62 if (I == Matchers.size()) // We exhausted all matchers.
tools/clang/tools/extra/clangd/unittests/PrintASTTests.cpp 39 if (TemplateArgsAtPoints.size() == Points.size())
39 if (TemplateArgsAtPoints.size() == Points.size())
43 if (Pos != Points[TemplateArgsAtPoints.size()])
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp 24 switch (Test.points().size()) {
61 for (unsigned I = 0; I < Result.size(); ++I) {
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp 55 if (A.points().size() != 0) {
56 assert(A.ranges().size() == 0 &&
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp 2146 .size());
tools/clang/tools/extra/modularize/CoverageChecker.cpp 325 if (IncludePaths.size() == 0) {
tools/clang/tools/extra/modularize/Modularize.cpp 986 for (unsigned I = 0, N = H->second.size(); I != N; ++I) {
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 117 int ModuleMapCount = ModuleMaps.size();
tools/clang/tools/extra/modularize/ModuleAssistant.cpp 103 if (HeaderFileNames.size() != 0) {
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp 630 bool hasMismatch() { return MacroExpansionInstances.size() > 1; }
717 bool hasMismatch() { return ConditionalExpansionInstances.size() > 1; }
815 assert((HeaderStack.size() == 0) && "Header stack should be empty.");
919 } while ((TH != H) && (HeaderStack.size() != 0));
965 H = HeaderPaths.size();
973 if ((H >= 0) && (H < (HeaderHandle)HeaderPaths.size()))
986 if (HeaderStack.size() != 0) {
993 if (HeaderStack.size() != 0)
1025 H = InclusionPaths.size();
1038 if ((H >= 0) && (H <= (InclusionPathHandle)InclusionPaths.size()))
1165 auto Count = (int)ip.size();
1226 auto Count = (int)ip.size();
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp 51 EXPECT_EQ(Infos.get().size(), NumInfos);
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.cpp 59 ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
59 ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
60 for (size_t Idx = 0; Idx < Actual.Children.size(); ++Idx)
91 ASSERT_EQ(Expected->Description.size(), Actual->Description.size());
91 ASSERT_EQ(Expected->Description.size(), Actual->Description.size());
92 for (size_t Idx = 0; Idx < Actual->Description.size(); ++Idx)
134 ASSERT_EQ(Expected->ChildNamespaces.size(), Actual->ChildNamespaces.size());
134 ASSERT_EQ(Expected->ChildNamespaces.size(), Actual->ChildNamespaces.size());
135 for (size_t Idx = 0; Idx < Actual->ChildNamespaces.size(); ++Idx)
139 ASSERT_EQ(Expected->ChildRecords.size(), Actual->ChildRecords.size());
139 ASSERT_EQ(Expected->ChildRecords.size(), Actual->ChildRecords.size());
140 for (size_t Idx = 0; Idx < Actual->ChildRecords.size(); ++Idx)
143 ASSERT_EQ(Expected->ChildFunctions.size(), Actual->ChildFunctions.size());
143 ASSERT_EQ(Expected->ChildFunctions.size(), Actual->ChildFunctions.size());
144 for (size_t Idx = 0; Idx < Actual->ChildFunctions.size(); ++Idx)
148 ASSERT_EQ(Expected->ChildEnums.size(), Actual->ChildEnums.size());
148 ASSERT_EQ(Expected->ChildEnums.size(), Actual->ChildEnums.size());
149 for (size_t Idx = 0; Idx < Actual->ChildEnums.size(); ++Idx)
172 ASSERT_EQ(Expected->Bases.size(), Actual->Bases.size());
172 ASSERT_EQ(Expected->Bases.size(), Actual->Bases.size());
173 for (size_t Idx = 0; Idx < Actual->Bases.size(); ++Idx)
176 ASSERT_EQ(Expected->ChildRecords.size(), Actual->ChildRecords.size());
176 ASSERT_EQ(Expected->ChildRecords.size(), Actual->ChildRecords.size());
177 for (size_t Idx = 0; Idx < Actual->ChildRecords.size(); ++Idx)
180 ASSERT_EQ(Expected->ChildFunctions.size(), Actual->ChildFunctions.size());
180 ASSERT_EQ(Expected->ChildFunctions.size(), Actual->ChildFunctions.size());
181 for (size_t Idx = 0; Idx < Actual->ChildFunctions.size(); ++Idx)
185 ASSERT_EQ(Expected->ChildEnums.size(), Actual->ChildEnums.size());
185 ASSERT_EQ(Expected->ChildEnums.size(), Actual->ChildEnums.size());
186 for (size_t Idx = 0; Idx < Actual->ChildEnums.size(); ++Idx)
200 ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
200 ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
201 for (size_t Idx = 0; Idx < Actual.Children.size(); ++Idx)
tools/clang/tools/extra/unittests/clang-doc/SerializeTest.cpp 70 ASSERT_EQ(NumExpectedInfos, EmittedInfos.size());
80 ASSERT_EQ(NumExpectedInfos, EmittedInfos.size());
tools/clang/tools/extra/unittests/clang-include-fixer/IncludeFixerTest.cpp 103 assert(FixerContexts.size() == 1);
tools/clang/tools/extra/unittests/clang-query/QueryParserTest.cpp 177 ASSERT_EQ(8u, Comps.size());
196 ASSERT_EQ(1u, Comps.size());
201 ASSERT_EQ(1u, Comps.size());
206 ASSERT_EQ(4u, Comps.size());
218 ASSERT_EQ(1u, Comps.size());
224 ASSERT_EQ(1u, Comps.size());
229 ASSERT_EQ(1u, Comps.size());
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp 27 EXPECT_EQ(2ul, Errors.size());
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp 40 EXPECT_EQ(3u, Options.LineFilter.size());
42 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges.size());
50 EXPECT_EQ(0u, Options.LineFilter[1].LineRanges.size());
52 EXPECT_EQ(1u, Options.LineFilter[2].LineRanges.size());
tools/clang/tools/extra/unittests/clang-tidy/GoogleModuleTest.cpp 76 assert(Errors.size() == 1);
tools/clang/tools/extra/unittests/clang-tidy/LLVMModuleTest.cpp 19 if (Errors.size() != (size_t)ExpectedWarning.hasValue())
41 if (Errors.size() != (size_t)ExpectedWarning.hasValue())
tools/clang/tools/extra/unittests/clang-tidy/NamespaceAliaserTest.cpp 63 EXPECT_EQ(ExpectedWarningCount, errors.size());
tools/clang/tools/extra/unittests/clang-tidy/ObjCModuleTest.cpp 28 EXPECT_EQ(0ul, Errors.size());
40 EXPECT_EQ(1ul, Errors.size());
tools/clang/tools/extra/unittests/clang-tidy/UsingInserterTest.cpp 67 EXPECT_EQ(ExpectedWarningCount, errors.size());
tools/clang/tools/libclang/ARCMigrate.cpp 122 return static_cast<Remap *>(map)->Vec.size();
tools/clang/tools/libclang/CIndex.cpp 3528 Args->data(), Args->data() + Args->size(),
3555 TU->Arguments.reserve(Args->size());
8645 (unsigned) entries->size(),
8690 skipped->count = wantedRanges.size();
8717 skipped->count = SkippedRanges.size();
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 316 if (!allocated_results || allocated_results->FixItsVector.size() <= completion_index)
319 return static_cast<unsigned>(allocated_results->FixItsVector[completion_index].size());
328 if (!allocated_results || allocated_results->FixItsVector.size() <= completion_index) {
tools/clang/tools/libclang/CIndexDiagnostic.h 37 return Diagnostics.size();
tools/clang/tools/libclang/CXCompilationDatabase.cpp 84 return ACC->CCmd.size();
96 if (I >= ACC->CCmd.size())
128 return static_cast<CompileCommand *>(CCmd)->CommandLine.size();
139 if (Arg >= Cmd->CommandLine.size())
tools/clang/tools/libclang/CXLoadedDiagnostic.cpp 128 return Ranges.size();
132 assert(Range < Ranges.size());
137 return FixIts.size();
142 assert(FixIt < FixIts.size());
tools/clang/tools/libclang/CXString.cpp 115 Set->Count = Strings.size();
tools/clang/unittests/AST/ASTImporterTest.cpp 1427 if (Index == Order.size())
1434 return Index == Order.size();
tools/clang/unittests/AST/CommentLexer.cpp 86 ASSERT_EQ(0U, Toks.size());
99 ASSERT_EQ(1U, Toks.size());
115 ASSERT_EQ(2U, Toks.size());
134 ASSERT_EQ(2U, Toks.size());
154 ASSERT_EQ(3U, Toks.size());
177 ASSERT_EQ(10U, Toks.size());
215 ASSERT_EQ(15U, Toks.size());
256 ASSERT_EQ(2U, Toks.size());
273 ASSERT_EQ(3U, Toks.size());
291 ASSERT_EQ(3U, Toks.size());
319 ASSERT_EQ(array_lengthof(Text), Toks.size());
321 for (size_t j = 0, e = Toks.size(); j != e; j++) {
338 ASSERT_EQ(6U, Toks.size());
364 ASSERT_EQ(4U, Toks.size());
384 ASSERT_EQ(8U, Toks.size());
416 ASSERT_EQ(8U, Toks.size());
448 ASSERT_EQ(8U, Toks.size());
480 ASSERT_EQ(3U, Toks.size());
502 ASSERT_EQ(8U, Toks.size());
541 ASSERT_EQ(11U, Toks.size());
586 ASSERT_EQ(5U, Toks.size());
610 ASSERT_EQ(3U, Toks.size());
629 ASSERT_EQ(4U, Toks.size());
653 ASSERT_EQ(6U, Toks.size());
684 ASSERT_EQ(5U, Toks.size());
712 ASSERT_EQ(10U, Toks.size());
753 ASSERT_EQ(10U, Toks.size());
794 ASSERT_EQ(14U, Toks.size());
844 ASSERT_EQ(13U, Toks.size());
897 ASSERT_EQ(4U, Toks.size());
922 ASSERT_EQ(5U, Toks.size());
950 ASSERT_EQ(9U, Toks.size());
982 ASSERT_EQ(3U, Toks.size());
1001 ASSERT_EQ(4U, Toks.size());
1023 ASSERT_EQ(4U, Toks.size());
1048 ASSERT_EQ(3U, Toks.size());
1068 ASSERT_EQ(4U, Toks.size());
1089 ASSERT_EQ(5U, Toks.size());
1112 ASSERT_EQ(4U, Toks.size());
1133 ASSERT_EQ(7U, Toks.size());
1165 ASSERT_EQ(4U, Toks.size());
1191 ASSERT_EQ(5U, Toks.size());
1221 ASSERT_EQ(6U, Toks.size());
1248 ASSERT_EQ(6U, Toks.size());
1280 ASSERT_EQ(6U, Toks.size());
1311 ASSERT_EQ(7U, Toks.size());
1344 ASSERT_EQ(4U, Toks.size());
1369 ASSERT_EQ(5U, Toks.size());
1394 ASSERT_EQ(3U, Toks.size());
1412 ASSERT_EQ(4U, Toks.size());
1433 ASSERT_EQ(3U, Toks.size());
1451 ASSERT_EQ(4U, Toks.size());
1472 ASSERT_EQ(4U, Toks.size());
1493 ASSERT_EQ(3U, Toks.size());
1511 ASSERT_EQ(4U, Toks.size());
1532 ASSERT_EQ(3U, Toks.size());
1550 ASSERT_EQ(4U, Toks.size());
1571 ASSERT_EQ(3U, Toks.size());
1589 ASSERT_EQ(4U, Toks.size());
1610 ASSERT_EQ(3U, Toks.size());
1628 ASSERT_EQ(4U, Toks.size());
1649 ASSERT_EQ(3U, Toks.size());
1667 ASSERT_EQ(4U, Toks.size());
1688 ASSERT_EQ(3U, Toks.size());
1706 ASSERT_EQ(4U, Toks.size());
1727 ASSERT_EQ(3U, Toks.size());
1745 ASSERT_EQ(4U, Toks.size());
1766 ASSERT_EQ(4U, Toks.size());
1793 ASSERT_EQ(3U, Toks.size());
1817 ASSERT_EQ(12U, Toks.size());
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp 81 EXPECT_EQ(2U, Sema.Values.size());
93 EXPECT_EQ(5U, Sema.Values.size());
108 EXPECT_EQ(5U, Sema.Values.size());
121 EXPECT_EQ(3ULL, Sema.Values.size());
158 EXPECT_EQ(1ULL, Sema.Values.size());
161 EXPECT_EQ(3ULL, Sema.Matchers.size());
165 EXPECT_EQ(1ULL, Bar.Args.size());
171 EXPECT_EQ(1ULL, Baz.Args.size());
177 EXPECT_EQ(2ULL, Foo.Args.size());
191 EXPECT_EQ(1ULL, Sema.Matchers.size());
330 ASSERT_EQ(1u, Comps.size());
336 ASSERT_EQ(1u, Comps.size());
347 ASSERT_EQ(1u, Comps.size());
354 EXPECT_LT(0u, Comps.size());
359 ASSERT_EQ(3u, Comps.size());
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp 479 ASSERT_EQ(AllOfWhileComps.size(), WhileComps.size());
479 ASSERT_EQ(AllOfWhileComps.size(), WhileComps.size());
485 EXPECT_EQ(0u, DeclWhileComps.size());
tools/clang/unittests/Analysis/CloneDetectionTest.cpp 76 ASSERT_EQ(CloneGroups.size(), 1u);
93 ASSERT_EQ(CloneGroups.size(), 1u);
tools/clang/unittests/Basic/SourceManagerTest.cpp 81 ASSERT_EQ(3U, toks.size());
290 ASSERT_EQ(4U, toks.size());
412 ASSERT_EQ(0U, toks.size());
414 ASSERT_EQ(15U, Macros.size());
tools/clang/unittests/Format/SortIncludesTest.cpp 701 EXPECT_EQ(1u, Ranges.size());
tools/clang/unittests/Frontend/FrontendActionTest.cpp 97 ASSERT_EQ(2U, test_action.decl_names.size());
117 ASSERT_EQ(2U, test_action.decl_names.size());
145 ASSERT_EQ(13U, test_action.decl_names.size());
tools/clang/unittests/Lex/LexerTest.cpp 85 EXPECT_EQ(ExpectedTokens.size(), toks.size());
tools/clang/unittests/Lex/PPCallbacksTest.cpp 429 EXPECT_EQ(Results1.size(), 1U);
435 EXPECT_EQ(Results2.size(), 1U);
441 EXPECT_EQ(Results3.size(), 1U);
447 EXPECT_EQ(Results4.size(), 2U);
456 EXPECT_EQ(Results5.size(), 2U);
466 EXPECT_EQ(Results6.size(), 1U);
473 EXPECT_EQ(Results7.size(), 2U);
483 EXPECT_EQ(Results8.size(), 1U);
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp 99 ASSERT_EQ(10U, toks.size());
tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp 202 for (size_t I = 0, E = Watchers.size(); I < E; ++I)
205 for (size_t I = 0, E = Sources.size(); I < E; ++I) {
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 93 EXPECT_EQ(Node.Children.size(), NumChildren);
202 EXPECT_EQ(Node->Children.size(), 1u);
226 EXPECT_EQ(Node->Children.size(), 1u);
242 EXPECT_EQ(Node->Children.size(), 1u);
258 EXPECT_EQ(Node->Children.size(), 1u);
282 EXPECT_EQ(Node->Children.size(), 2u);
312 EXPECT_EQ(Node->Children.size(), 1u);
333 EXPECT_EQ(Node->Children.size(), 1u);
355 EXPECT_EQ(Node->Children.size(), 1u);
403 EXPECT_EQ(Node->Children.size(), 1u);
419 EXPECT_EQ(Node->Children.size(), 1u);
435 EXPECT_EQ(Node->Children.size(), 2u);
458 EXPECT_EQ(Node->Children.size(), 1u);
485 EXPECT_EQ(Node->Children.size(), 1u);
511 EXPECT_EQ(Node->Children.size(), 1u);
531 EXPECT_EQ(Node->Children.size(), 1u);
542 EXPECT_EQ(Node->Children.size(), 1u);
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp 113 .size())
138 EXPECT_EQ(2U, Commands.size()) << ErrorMessage;
142 ASSERT_EQ(1u, Commands[0].CommandLine.size());
147 ASSERT_EQ(1u, Commands[1].CommandLine.size());
163 EXPECT_EQ(2U, Commands.size()) << ErrorMessage;
166 ASSERT_EQ(1u, Commands[0].CommandLine.size());
170 ASSERT_EQ(1u, Commands[1].CommandLine.size());
183 EXPECT_LE(Commands.size(), 1u);
204 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage;
304 ASSERT_EQ(4u, FoundCommand.CommandLine.size()) << ErrorMessage;
332 ASSERT_EQ(2u, FoundCommand.CommandLine.size());
369 ASSERT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage;
416 ASSERT_EQ(3ul, Result.size());
424 ASSERT_EQ(2ul, Result.size());
431 ASSERT_EQ(1ul, Backslash.size());
434 ASSERT_EQ(1ul, Quote.size());
440 ASSERT_EQ(1ul, Result.size());
447 ASSERT_EQ(2ul, Result.size());
455 ASSERT_EQ(1ul, Result.size());
462 ASSERT_EQ(1ul, Result.size());
469 ASSERT_EQ(4ul, Result.size());
479 ASSERT_EQ(1ul, QuotedNoSpaces.size());
484 ASSERT_EQ(1ul, MixedNoSpaces.size());
490 ASSERT_EQ(1ul, Unclosed.size());
494 ASSERT_EQ(1ul, Empty.size());
500 ASSERT_EQ(1ul, Args.size());
509 ASSERT_EQ(1ul, Result.size());
522 EXPECT_EQ(0ul, Database.getAllFiles().size());
531 EXPECT_EQ(0ul, Database.getAllCompileCommands().size());
567 ASSERT_EQ(1ul, Result.size());
584 ASSERT_EQ(1ul, Result.size());
601 ASSERT_EQ(1ul, Result.size());
619 ASSERT_EQ(1ul, Result.size());
636 ASSERT_EQ(1ul, Result.size());
tools/clang/unittests/Tooling/DependencyScannerTest.cpp 104 ASSERT_EQ(Deps.size(), 3u);
117 ASSERT_EQ(Deps.size(), 3u);
155 ASSERT_EQ(Deps.size(), 6u);
190 ASSERT_EQ(Deps.size(), 6u);
tools/clang/unittests/Tooling/DiagnosticsYamlTest.cpp 121 ASSERT_EQ(3u, TUDActual.Diagnostics.size());
140 ASSERT_EQ(1u, Fixes1.size());
152 ASSERT_EQ(1u, Fixes2.size());
tools/clang/unittests/Tooling/ExecutionTest.cpp 141 int argc = argv.size();
156 int argc = argv.size();
166 int argc = argv.size();
177 int argc = argv.size();
205 ASSERT_EQ(KVs.size(), 0u);
218 ASSERT_EQ(KVs.size(), 1u);
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp 92 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size());
92 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size());
93 for (std::size_t I = 0; I < expected.size(); I++) {
111 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size());
111 ASSERT_EQ(expected.size(), Visitor.VisitedNodes.size());
112 for (std::size_t I = 0; I < expected.size(); I++) {
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp 111 ASSERT_EQ(Result.size(), 1u);
231 EXPECT_EQ(Occurrences.size(), 1u);
tools/clang/unittests/Tooling/RefactoringTest.cpp 795 EXPECT_EQ(2ul, Ranges.size());
808 EXPECT_EQ(1ul, Ranges.size());
tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp 90 ASSERT_EQ(2u, DocActual.Replacements.size());
117 ASSERT_EQ(1u, DocActual.Replacements.size());
tools/clang/unittests/Tooling/ToolingTest.cpp 604 EXPECT_EQ(2u, ASTs.size());
636 EXPECT_EQ(1u, ASTs.size());
tools/clang/unittests/Tooling/TransformerTest.cpp 562 EXPECT_EQ(transformer::detail::buildMatchers(Rule).size(), 2UL);
613 EXPECT_EQ(Changes.size(), 2u);
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp 151 for (unsigned i = 0, e = Stmts.size(); i != e; ++i) {
tools/clang/utils/TableGen/ClangAttrEmitter.cpp 893 for (size_t I = 0; I < enums.size(); ++I) {
911 for (size_t I = 0; I < enums.size(); ++I) {
1005 for (size_t I = 0; I < enums.size(); ++I) {
1019 for (size_t I = 0; I < enums.size(); ++I) {
1358 for (unsigned I = 0; I < Spellings.size(); ++I)
1386 for (unsigned I = 0; I < Spellings.size(); ++ I) {
1538 for (unsigned Index = 0; Index < SpellingList.size(); ++Index) {
1567 for (unsigned Index = 0; Index < Spellings.size(); ++Index) {
1569 if (Index != Spellings.size() - 1)
1606 assert(Spellings.size() < 15 &&
2270 Args.reserve(ArgRecords.size());
2294 bool ElideSpelling = (Spellings.size() <= 1) ||
3096 for (unsigned I = 0; I < Spellings.size(); ++ I) {
3211 Args.reserve(ArgRecords.size());
3353 if (DiagList.size() == 1)
3356 if (DiagList.size() == 2)
3624 if (Spellings.size() <= 1 || SpellingNamesAreCommon(Spellings))
3832 if (Spellings.size() > 1 && !SpellingNamesAreCommon(Spellings))
3986 if (Spellings.size() == 1)
4092 if (Undocumented && Docs.size() > 1)
tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp 30 for (size_t i = 0, e = Tags.size(); i != e; ++i) {
64 for (size_t i = 0, e = Tags.size(); i != e; ++i) {
118 for (size_t i = 0, e = Tags.size(); i != e; ++i) {
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 47 for (unsigned i = 0, e = DiagGroups.size(); i != e; ++i) {
50 for (unsigned j = 0, e = SubGroups.size(); j != e; ++j)
71 for (unsigned i = 0, e = Parents.size(); i != e; ++i) {
109 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
116 ID = CategoryStrings.size();
164 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
180 for (unsigned i = 0, e = DiagGroups.size(); i != e; ++i) {
184 if (GI.DiagsInGroup.size() > 1)
194 for (unsigned j = 0, e = SubGroups.size(); j != e; ++j)
324 for (unsigned i = 0, e = Parents.size(); i != e; ++i)
348 V.second = GI.SubGroups.size() + GI.DiagsInGroup.size();
348 V.second = GI.SubGroups.size() + GI.DiagsInGroup.size();
367 for (unsigned i = 0, e = Parents.size(); i != e; ++i)
377 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
393 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
419 for (unsigned i = 0, ei = DiagGroups.size(); i != ei; ++i) {
426 for (unsigned j = 0, ej = Parents.size(); j != ej; ++j) {
434 if (Parents.size() > 0 && ParentsInPedantic == Parents.size())
434 if (Parents.size() > 0 && ParentsInPedantic == Parents.size())
754 if (ModifierMappings->size() <= static_cast<unsigned>(Idx))
757 std::to_string(ModifierMappings->size()) +
828 if (P->Pieces.size() == 1)
837 size_t Start = RST.size();
850 const char *Separator = (Lines.size() > 1 || HasMultipleLines) ? "|" : "";
851 HasMultipleLines = Lines.size() > 1;
853 if (Start + Lines.size() > RST.size())
853 if (Start + Lines.size() > RST.size())
854 RST.resize(Start + Lines.size(), EmptyLinePrefix);
857 for (size_t I = 0; I != Lines.size(); ++I)
860 for (size_t I = Start + Lines.size(); I != RST.size(); ++I)
860 for (size_t I = Start + Lines.size(); I != RST.size(); ++I)
864 for (size_t I = Start; I != RST.size(); ++I)
907 SeparatorIndexes.push_back(RST.size());
911 SeparatorIndexes.push_back(RST.size());
962 assert(P->Options.size() == P->OptionPrefixes.size());
962 assert(P->Options.size() == P->OptionPrefixes.size());
963 for (unsigned I = 0, End = P->Options.size(); I < End; ++I) {
1221 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
1485 DiagArrayIndex += DiagsInPedantic.size();
1486 DiagArrayIndex += V.size() + 1;
1498 SubGroupIndex += GroupsInPedantic.size();
1499 SubGroupIndex += SubGroups.size() + 1;
1587 Index.reserve(Diags.size());
1588 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
1598 for (unsigned i = 0, e = Index.size(); i != e; ++i) {
1727 GroupInfo.SubGroups.size() == 1;
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp 30 NumTypes(Records.getAllDerivedDefinitions("Type").size()) {}
124 for (size_t I = 0, N = Args.size(); I < N; ++I) {
140 for (size_t I = 0, N = Args.size(); I < N; ++I)
183 for (size_t I = 0, N = Args.size(); I < N; ++I)
189 for (size_t I = 0, N = Args.size(); I < N; ++I) {
195 for (size_t I = 0, N = Args.size(); I < N; ++I)
262 for (size_t I = 0, N = Args.size(); I < N; ++I)
284 for (size_t I = 0; I < Args.size(); ++I) {
302 if (Cases.size() < NumTypes)
325 for (size_t I = 0, N = Args.size(); I < N; ++I)
334 for (size_t I = 0, N = Args.size(); I < N; ++I)
tools/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp 299 T->getValueAsDef("VectorList")->getValueAsListOfInts("List").size();
312 T->getValueAsDef("TypeList")->getValueAsListOfDefs("List").size();
356 CumulativeSignIndex += Signature.size();
411 << Overload.first->getValueAsListOfDefs("Signature").size() << ", "
429 SS << "return std::make_pair(" << CumulativeIndex << ", " << Ov.size()
432 CumulativeIndex += Ov.size();
536 .size();
549 .size()
595 OS << " if (Ty.ID >= " << TypeList.size() << ") {";
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp 260 while (Args.size() < NumArgs) {
261 Args.push_back(("<arg" + Twine(Args.size() + 1) + ">").str());
263 if (Args.size() == 2 && NumArgs == UnlimitedArgs) {
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp 195 for (unsigned i = 0, e = packages.size(); i != e; ++i)
tools/clang/utils/TableGen/MveEmitter.cpp 422 if (ParamTypes && ParamTypes->size() == ParamNumber)
424 if (ParamValues && ParamValues->size() == ParamNumber)
609 for (unsigned i = 0, e = Args.size(); i < e; ++i) {
624 for (unsigned i = 0, e = Args.size(); i < e; ++i) {
649 OS << ", llvm::SmallVector<llvm::Type *, " << ParamTypes.size() << "> {";
657 OS << "), llvm::SmallVector<Value *, " << Args.size() << "> {";
1486 if (size() != rhs.size())
1486 if (size() != rhs.size())
1487 return size() < rhs.size();
1487 return size() < rhs.size();
1488 for (size_t i = 0, e = size(); i < e; ++i)
1552 for (size_t i = 0, e = MG.ParamTypes.size(); i < e; ++i) {
1628 for (size_t i = 0, e = MG.ParamTypes.size(); i < e; ++i) {
1641 for (size_t i = 0, e = MG.ParamTypes.size(); i < e; ++i)
tools/clang/utils/TableGen/NeonEmitter.cpp 2039 assert_with_loc(GoodVec.size() == 1, "Multiple overloads found - " + ErrMsg);
tools/dsymutil/BinaryHolder.cpp 75 Archives.reserve(ArchiveBuffers.size());
113 Objects.reserve(ObjectBuffers.size());
127 Result.reserve(Objects.size());
tools/dsymutil/BinaryHolder.h 67 Result.reserve(Objects.size());
tools/dsymutil/CompileUnit.h 238 if (FileNum >= ResolvedPaths.size())
246 if (ResolvedPaths.size() <= FileNum)
tools/dsymutil/DebugMap.cpp 191 return seq.size();
198 if (index >= seq.size()) {
tools/dsymutil/DebugMap.h 106 unsigned getNumberOfObjects() const { return Objects.size(); }
tools/dsymutil/DwarfLinker.cpp 564 if (NextValidReloc >= ValidRelocs.size())
573 while (RelocOffset < StartOffset && NextValidReloc < ValidRelocs.size() - 1)
1009 Abbrev.setNumber(Abbreviations.size());
1010 Abbreviations.back()->setNumber(Abbreviations.size());
1399 if (NextValidReloc >= ValidRelocs.size())
1403 while (NextValidReloc < ValidRelocs.size() &&
1409 while (NextValidReloc < ValidRelocs.size() &&
1836 NewRows.reserve(LineTable.Rows.size());
2480 DMO.getWarnings().size() * (4 + 1 + 4) +
tools/dsymutil/DwarfStreamer.cpp 497 for (unsigned Idx = 0; Idx < Rows.size(); ++Idx) {
tools/dsymutil/SymbolMap.cpp 38 if (LineNumber >= UnobfuscatedStrings.size()) {
tools/dsymutil/dsymutil.cpp 174 if (Options.InputFiles.size() > 1 && Options.Flat &&
528 std::min<unsigned>(Options.LinkOpts.Threads, DebugMapPtrsOrErr->size());
535 (DebugMapPtrsOrErr->size() != 1 || Options.LinkOpts.Update);
tools/gold/gold-plugin.cpp 617 if (add_symbols(cf.handle, cf.syms.size(), cf.syms.data()) != LDPS_OK) {
658 ld_plugin_status status = get_symbols(F.handle, F.syms.size(), F.syms.data());
715 assert(InputFileSyms.size() == F.syms.size());
716 std::vector<SymbolResolution> Resols(F.syms.size());
1081 if (unsigned NumOpts = options::extra.size())
tools/lld/COFF/Chunks.cpp 769 return 12 + 12 * relocs.size();
838 write32le(p + 4, data.size());
847 memcpy(buf, data.data(), data.size());
tools/lld/COFF/Chunks.h 582 size_t getSize() const override { return data.size(); }
tools/lld/COFF/DLL.cpp 531 size_t getSize() const override { return chunks.size() * 4; }
573 size_t base = lookups.size();
590 for (int i = 0, e = syms.size(); i < e; ++i)
621 return dirs.size() * sizeof(delay_import_directory_table_entry);
634 size_t base = addresses.size();
655 for (int i = 0, e = syms.size(); i < e; ++i)
723 auto *ordinalTab = make<ExportOrdinalChunk>(names.size());
724 auto *dir = make<ExportDirectoryChunk>(maxOrdinal, names.size(), dllName,
tools/lld/COFF/Driver.cpp 1012 (resourceObjFiles.size() > 1 ||
1013 (resourceObjFiles.size() == 1 && !resources.empty()))) {
1021 if (resources.empty() && resourceObjFiles.size() <= 1) {
1116 cl::ParseCommandLineOptions(v.size(), v.data());
tools/lld/COFF/DriverUtils.cpp 649 DenseMap<StringRef, Export *> map(config->exports.size());
tools/lld/COFF/ICF.cpp 214 if (chunks.size() < 1024) {
215 forEachClassRange(0, chunks.size(), fn);
225 size_t step = chunks.size() / numShards;
228 boundaries[numShards] = chunks.size();
230 boundaries[i] = findBoundary((i - 1) * step, chunks.size());
tools/lld/COFF/InputFiles.cpp 614 if ((uint32_t)sectionNumber >= sparseChunks.size())
tools/lld/COFF/InputFiles.h 161 return symbols.size() - 1;
tools/lld/COFF/LTO.cpp 120 std::vector<lto::SymbolResolution> resols(symBodies.size());
tools/lld/COFF/PDB.cpp 1300 publicSymbols = publics.size();
1324 print(ObjFile::instances.size(),
tools/lld/COFF/SymbolTable.cpp 165 std::vector<std::string> symbolLocations(locations.size());
211 numRefs += symbolLocations.size();
342 firstDiag[sym] = undefDiags.size();
tools/lld/COFF/Writer.cpp 98 return (records.size() + int(writeRepro)) * sizeof(debug_directory);
407 for (size_t i = 0; i != os->chunks.size(); ++i) {
533 origNumChunks += sec->chunks.size();
548 numChunks += sec->chunks.size();
1077 size_t offsetOfEntry = strtab.size() + 4; // +4 for the size field
1174 fileOff += outputSymtab.size() * sizeof(coff_symbol16);
1175 fileOff += 4 + strtab.size();
1215 sizeof(coff_section) * outputSections.size();
1294 coff->NumberOfSections = outputSections.size();
1444 buf - outputSections.size() * sizeof(coff_section), buf);
1450 uint32_t numberOfSymbols = outputSymtab.size();
1459 write32le(buf, strtab.size() + 4);
1461 memcpy(buf + 4, strtab.data(), strtab.size());
1693 log("Writing " + Twine(rels.size()) + " runtime pseudo relocations");
1744 DefinedAbsolute::numOutputSections = outputSections.size();
1915 for (size_t e = v.size(); j < e; ++j) {
tools/lld/ELF/AArch64ErrataFix.cpp 516 tmp.reserve(isd.sections.size() + patches.size());
516 tmp.reserve(isd.sections.size() + patches.size());
tools/lld/ELF/ARMErrataFix.cpp 386 tmp.reserve(isd.sections.size() + patches.size());
386 tmp.reserve(isd.sections.size() + patches.size());
tools/lld/ELF/CallGraphSort.cpp 108 auto res = secToCluster.try_emplace(isec, clusters.size());
111 clusters.emplace_back(clusters.size(), isec->getSize());
183 std::vector<int> sorted(clusters.size());
184 std::vector<int> leaders(clusters.size());
218 for (int i = 0, e = (int)clusters.size(); i != e; ++i)
tools/lld/ELF/Driver.cpp 1551 if (partitions.size() == 254)
1738 for (size_t i = 0; i < files.size(); ++i)
tools/lld/ELF/ICF.cpp 395 if (!threadsEnabled || sections.size() < 1024) {
396 forEachClassRange(0, sections.size(), fn);
409 size_t step = sections.size() / numShards;
412 boundaries[numShards] = sections.size();
415 boundaries[i] = findBoundary((i - 1) * step, sections.size());
488 forEachClassRange(0, sections.size(), [&](size_t begin, size_t end) {
tools/lld/ELF/InputFiles.cpp 600 if (sec.sh_link < this->sections.size())
767 if (idx >= this->sections.size())
999 if (secIdx >= this->sections.size())
1297 if (idx >= verdefs.size() || idx == VER_NDX_LOCAL) {
tools/lld/ELF/InputFiles.h 211 if (symbolIndex >= this->symbols.size())
tools/lld/ELF/InputSection.h 258 (pieces.size() - 1 == i) ? data().size() : pieces[i + 1].inputOff;
tools/lld/ELF/LinkerScript.cpp 414 size_t sizeBefore = ret.size();
tools/lld/ELF/MarkLive.cpp 138 for (size_t i = 0, end = eh.pieces.size(); i < end; ++i) {
366 for (unsigned curPart = 1; curPart <= partitions.size(); ++curPart)
372 if (partitions.size() != 1)
tools/lld/ELF/OutputSections.cpp 168 cmd->sections.reserve(cmd->sectionBases.size());
225 for (size_t i = 0; i < v.size(); ++i)
304 memcpy(buf, zDebugHeader.data(), zDebugHeader.size());
305 memcpy(buf + zDebugHeader.size(), compressedData.data(),
317 parallelForEachN(0, sections.size(), [&](size_t i) {
325 if (i + 1 == sections.size())
446 assert(sectionCommands.size() == 1);
tools/lld/ELF/Relocations.cpp 803 if (i < undef.locs.size())
804 msg += ("\n>>> referenced " + Twine(undef.locs.size() - i) + " more times")
830 assert(undef.locs.size() == 1);
1568 tmp.reserve(isd->sections.size() + newThunks.size());
1568 tmp.reserve(isd->sections.size() + newThunks.size());
tools/lld/ELF/ScriptLexer.cpp 168 bool ScriptLexer::atEOF() { return errorCount() || tokens.size() == pos; }
223 if (v.size() == 1)
270 if (tokens.size() >= pos + 2 && tokens[pos] == tok &&
tools/lld/ELF/ScriptParser.cpp 794 size_t symbolsReferenced = script->referencedSymbols.size();
873 if (script->referencedSymbols.size() > symbolsReferenced)
1369 ver.id = config->versionDefinitions.size();
tools/lld/ELF/SymbolTable.cpp 63 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()});
tools/lld/ELF/SyntheticSections.cpp 282 return config->buildIdVector.size();
725 f.mipsGotIndex = gots.size() - 1;
885 if (mergedGots.size() == 1 ||
890 file->mipsGotIndex = mergedGots.size() - 1;
1095 assert(sym.pltIndex == entries.size());
1100 return (target->gotPltHeaderEntriesNum + entries.size()) * config->wordsize;
1139 assert(sym.pltIndex == entries.size());
1144 return entries.size() * config->wordsize;
1223 size_t tagOffset = entries.size() * entsize;
1496 this->size = entries.size() * this->entsize;
1685 add(relocs.size());
1718 if (group.size() < 8)
1799 add(g.size() - 1);
1816 add(ungroupedRelatives.size());
1843 add(ungroupedNonRelatives.size());
1904 size_t oldSize = relrRelocs.size();
1923 for (size_t i = 0, e = offsets.size(); i < e;) {
1959 if (relrRelocs.size() < oldSize) {
1960 log(".relr.dyn needs " + Twine(oldSize - relrRelocs.size()) +
1965 return relrRelocs.size() != oldSize;
2069 symbolIndexMap.reserve(symbols.size());
2282 uint64_t numBits = symbols.size() * 12;
2289 size += symbols.size() * 4; // Hash values
2300 write32(buf + 4, getPartition().dynSymTab->getNumSymbols() - symbols.size());
2464 writePPC32GlinkSection(buf, entries.size());
2479 for (size_t i = 0, e = entries.size(); i != e; ++i) {
2490 sym.pltIndex = entries.size();
2495 return headerSize + entries.size() * target->pltEntrySize;
2506 for (size_t i = 0; i < entries.size(); ++i) {
2526 return std::max<size_t>(NextPowerOf2(symbols.size() * 4 / 3), 1024);
2534 size += chunk.compilationUnits.size() * 16 + chunk.addressAreas.size() * 20;
2534 size += chunk.compilationUnits.size() * 16 + chunk.addressAreas.size() * 20;
2633 std::vector<uint32_t> cuIdxs(chunks.size());
2634 for (uint32_t i = 0, e = chunks.size(); i != e; ++i) {
2636 cuIdx += chunks[i].compilationUnits.size();
2669 idx = symbols[shardId].size() + 1;
2693 off += (sym.cuVector.size() + 1) * 4;
2714 std::vector<GdbChunk> chunks(sections.size());
2715 std::vector<std::vector<NameAttrEntry>> nameAttrs(sections.size());
2717 parallelForEachN(0, sections.size(), [&](size_t i) {
2765 cuOff += chunk.compilationUnits.size();
2795 write32le(buf, sym.cuVector.size());
2833 write32(buf + 8, fdes.size());
2950 file.vernauxs.resize(file.verdefs.size());
2974 for (unsigned i = 0; i != f->vernauxs.size(); ++i) {
2988 getParent()->info = verneeds.size();
2994 auto *vernaux = reinterpret_cast<Elf_Vernaux *>(verneed + verneeds.size());
2999 verneed->vn_cnt = vn.vernauxs.size();
3022 return verneeds.size() * sizeof(Elf_Verneed) +
3050 for (size_t i = 0, e = sec->pieces.size(); i != e; ++i)
3061 for (size_t i = 0, e = sec->pieces.size(); i != e; ++i)
3094 for (size_t i = 0, e = sec->pieces.size(); i != e; ++i) {
3118 for (size_t i = 0, e = sec->pieces.size(); i != e; ++i)
3272 selectedSections.reserve(executableSections.size());
3275 for (size_t i = 1; i < executableSections.size(); ++i) {
3433 sym.ppc64BranchltIndex = entries.size();
3438 return entries.size() * 8;
3505 eHdr->e_phnum = part.phdrs.size();
3554 return sizeof(typename ELFT::Phdr) * getPartition().phdrs.size();
3566 return 12 * (partitions.size() - 1);
3570 for (size_t i = 1; i != partitions.size(); ++i)
3576 for (size_t i = 1; i != partitions.size(); ++i) {
3581 i == partitions.size() - 1 ? in.partEnd : partitions[i + 1].elfHeader;
tools/lld/ELF/SyntheticSections.h 499 size_t getSize() const override { return relocs.size() * this->entsize; }
565 size_t getSize() const override { return relrRelocs.size() * this->entsize; }
585 unsigned getNumSymbols() const { return symbols.size() + 1; }
tools/lld/ELF/Writer.cpp 157 for (unsigned part = 2; part != partitions.size() + 1; ++part) {
320 for (size_t i = 1; i <= partitions.size(); ++i) {
449 if (partitions.size() != 1) {
1217 int priority = -config->symbolOrderingFile.size();
1308 for (; insPt != unorderedSections.size(); ++insPt) {
1355 assert(sec->sectionCommands.size() == 1);
1540 for (int i = 0, n = sections.size(); i < n; ++i)
1836 for (size_t i = 0, e = outputSections.size(); i != e; ++i) {
1860 Out::programHeaders->size = sizeof(Elf_Phdr) * mainPart->phdrs.size();
2360 fileSize = sectionHeaderOff + (outputSections.size() + 1) * sizeof(Elf_Shdr);
2435 for (size_t i = 1, end = sections.size(); i < end; ++i) {
2567 size_t num = outputSections.size() + 1;
2686 std::vector<uint8_t> hashes(chunks.size() * hashBuf.size());
2689 parallelForEachN(0, chunks.size(), [&](size_t i) {
tools/lld/include/lld/Core/File.h 160 return _v.size();
tools/lld/lib/Core/Error.cpp 58 assert(ev < (int)_messages.size());
70 return _messages.size() - 1;
tools/lld/lib/Core/Resolver.cpp 54 for (; i < _undefines.size(); ++i) {
69 } while (i < _undefines.size());
193 if ((size_t)index >= inputs.size())
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp 74 commonEncodings.size() * sizeof(uint32_t)),
76 personalities.size() * sizeof(uint32_t)),
78 3 * (pages.size() + 1) * sizeof(uint32_t)),
82 addHeader(commonEncodings.size(), personalities.size(), pages.size());
82 addHeader(commonEncodings.size(), personalities.size(), pages.size());
82 addHeader(commonEncodings.size(), personalities.size(), pages.size());
98 uint64_t size() const override { return _contents.size(); }
137 commonEncodings.size() * sizeof(uint32_t));
149 personalities.size() * sizeof(uint32_t));
151 for (unsigned i = 0; i < personalities.size(); ++i)
159 uint32_t numIndexes = pages.size() + 1;
168 for (unsigned i = 0; i < pages.size(); ++i) {
183 auto &finalEntry = pages[pages.size() - 1].entries.back();
185 3 * pages.size() * sizeof(uint32_t),
188 write32(indexData + (3 * pages.size() + 2) * sizeof(uint32_t),
215 uint32_t curPageOffset = _contents.size();
305 assert(personalities.size() <= 4);
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 175 for (unsigned i = 0, e = nodes.size(); i != e; ++i) {
495 if (_syslibRoots.size() != 1 || !isSystemPath) {
522 if (isSystemPath && (_syslibRoots.size() == 1))
747 while (dylibCount != _allDylibs.size()) {
748 dylibCount = _allDylibs.size();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp 269 + file.sections.size() * sectsSize
296 relocCount += sect.relocations.size();
391 size += _file.segments.size() * segCommandSize;
392 count += _file.segments.size();
394 size += _file.sections.size() * sectionSize;
609 index += sect.indirectSymbols.size();
618 return sect.content.size() / sect.indirectSymbols.size();
626 + _file.sections.size() * sizeof(typename T::section);
634 seg->nsects = _file.sections.size();
656 sout->nreloc = sin.relocations.size();
660 relOffset += sin.relocations.size() * sizeof(any_relocation_info);
700 + segInfo.sections.size() * sizeof(typename T::section);
709 cmd->nsects = segInfo.sections.size();
787 st->nsyms = _file.stabsSymbols.size() + _file.localSymbols.size() +
787 st->nsyms = _file.stabsSymbols.size() + _file.localSymbols.size() +
788 _file.globalSymbols.size() + _file.undefinedSymbols.size();
788 _file.globalSymbols.size() + _file.undefinedSymbols.size();
874 st->nsyms = _file.stabsSymbols.size() + _file.localSymbols.size() +
874 st->nsyms = _file.stabsSymbols.size() + _file.localSymbols.size() +
875 _file.globalSymbols.size() + _file.undefinedSymbols.size();
875 _file.globalSymbols.size() + _file.undefinedSymbols.size();
888 dst->nlocalsym = _file.stabsSymbols.size() +
889 _file.localSymbols.size();
891 dst->nextdefsym = _file.globalSymbols.size();
893 dst->nundefsym = _file.undefinedSymbols.size();
1436 allNodes.reserve(_file.exportInfo.size()*2);
1443 orderedNodes.reserve(allNodes.size());
1470 _symbolTableSize = nlistSize * (_file.stabsSymbols.size()
1471 + _file.localSymbols.size()
1472 + _file.globalSymbols.size()
1473 + _file.undefinedSymbols.size());
1489 _symbolTableGlobalsStartIndex = _file.stabsSymbols.size() +
1490 _file.localSymbols.size();
1492 + _file.globalSymbols.size();
1496 _indirectSymbolTableCount += sect.indirectSymbols.size();
1501 _functionStartsSize = _file.functionStarts.size();
1505 _dataInCodeSize = _file.dataInCode.size() * sizeof(data_in_code_entry);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 650 si->normalizedSectionIndex = file.sections.size()-1;
701 file.sections.reserve(_sectionInfos.size());
711 file.sections.reserve(_sectionInfos.size());
1076 _atomToSymbolIndex[atom] = file.localSymbols.size();
1092 _atomToSymbolIndex[atom] = file.localSymbols.size();
1100 const uint32_t globalStartIndex = file.localSymbols.size();
1109 _atomToSymbolIndex[ai.atom] = globalStartIndex + file.globalSymbols.size();
1125 const uint32_t start = file.globalSymbols.size() + file.localSymbols.size();
1125 const uint32_t start = file.globalSymbols.size() + file.localSymbols.size();
1141 _atomToSymbolIndex[ai.atom] = file.undefinedSymbols.size() + start;
1373 auto size = file.functionStarts.size();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp 530 if (sectIndex > normalizedFile.sections.size())
554 uint32_t numStabs = normalizedFile.stabsSymbols.size();
555 uint32_t numLocal = normalizedFile.localSymbols.size();
556 uint32_t numGlobal = normalizedFile.globalSymbols.size();
557 uint32_t numUndef = normalizedFile.undefinedSymbols.size();
573 if (sym->sect > normalizedFile.sections.size())
1525 if (nextIndex < normalizedFile.dataInCode.size()) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp 57 return seq.size();
60 if ( index >= seq.size() )
69 return seq.size();
72 if ( index >= seq.size() )
82 return seq.size();
85 if ( index >= seq.size() )
95 return seq.size();
98 if ( index >= seq.size() )
110 return seq.size();
113 if ( index >= seq.size() )
335 size_t size = _normalizedContent.size();
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 518 static size_t size(IO &io, AtomList<T> &seq) { return seq._atoms.size(); }
520 if (index >= seq._atoms.size())
560 return seq.size();
564 if (index >= seq.size())
884 reinterpret_cast<const uint8_t *>(_content.data()), _content.size());
895 uintptr_t index = _references.size();
901 assert(index < _references.size());
964 io.mapOptional("size", keys->_size, (uint64_t)keys->_content.size());
1370 assert(createdFiles.size() == 1);
tools/lld/tools/lld/lld.cpp 85 SmallVector<const char *, 256> expandedArgs(v.data(), v.data() + v.size());
119 if (v.size() > 1 && v[1] == StringRef("-flavor")) {
120 if (v.size() <= 2)
tools/lld/unittests/DriverTests/DarwinLdDriverTest.cpp 32 int inputFileCount() { return _ctx.getNodes().size(); }
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp 272 EXPECT_EQ(f->sections.size(), 2UL);
285 EXPECT_EQ(text.relocations.size(), 2UL);
313 EXPECT_EQ(f->localSymbols.size(), 1UL);
318 EXPECT_EQ(f->globalSymbols.size(), 1UL);
325 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
397 EXPECT_EQ(f->sections.size(), 2UL);
410 EXPECT_EQ(text.relocations.size(), 3UL);
448 EXPECT_EQ(f->localSymbols.size(), 0UL);
449 EXPECT_EQ(f->globalSymbols.size(), 1UL);
456 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
529 EXPECT_EQ(f->sections.size(), 2UL);
542 EXPECT_EQ(text.relocations.size(), 5UL);
589 EXPECT_EQ(f->localSymbols.size(), 0UL);
590 EXPECT_EQ(f->globalSymbols.size(), 1UL);
597 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
673 EXPECT_EQ(f->sections.size(), 2UL);
686 EXPECT_EQ(text.relocations.size(), 5UL);
732 EXPECT_EQ(f->localSymbols.size(), 0UL);
733 EXPECT_EQ(f->globalSymbols.size(), 1UL);
740 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp 164 EXPECT_EQ(2UL, f2->undefinedSymbols.size());
174 EXPECT_EQ(1UL, f2->sections.size());
276 EXPECT_EQ(2UL, f2->undefinedSymbols.size());
286 EXPECT_EQ(1UL, f2->sections.size());
394 EXPECT_EQ(2UL, f2->globalSymbols.size());
406 EXPECT_EQ(1UL, f2->undefinedSymbols.size());
412 EXPECT_EQ(1UL, f2->sections.size());
551 EXPECT_EQ(2UL, f2->globalSymbols.size());
563 EXPECT_EQ(1UL, f2->undefinedSymbols.size());
569 EXPECT_EQ(1UL, f2->sections.size());
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp 180 EXPECT_EQ(f->globalSymbols.size(), 1UL);
209 EXPECT_EQ(f->sections.size(), 1UL);
279 EXPECT_EQ(f->sections.size(), 2UL);
293 EXPECT_EQ(sect1.relocations.size(), 2UL);
325 EXPECT_EQ(f->globalSymbols.size(), 1UL);
333 EXPECT_EQ(f->localSymbols.size(), 1UL);
341 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
409 EXPECT_EQ(f->sections.size(), 2UL);
423 EXPECT_EQ(sect1.relocations.size(), 3UL);
462 EXPECT_EQ(f->globalSymbols.size(), 1UL);
470 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
537 EXPECT_EQ(f->sections.size(), 2UL);
551 EXPECT_EQ(sect1.relocations.size(), 3UL);
590 EXPECT_EQ(f->globalSymbols.size(), 1UL);
598 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
677 EXPECT_EQ(f->sections.size(), 2UL);
691 EXPECT_EQ(sect1.relocations.size(), 5UL);
746 EXPECT_EQ(f->globalSymbols.size(), 1UL);
754 EXPECT_EQ(f->undefinedSymbols.size(), 1UL);
tools/lld/wasm/Driver.cpp 682 cl::ParseCommandLineOptions(v.size(), v.data());
tools/lld/wasm/InputFiles.cpp 82 "\n Symbols : " + Twine(symbols.size()) +
271 for (uint32_t index = 0; index < seg.Functions.size(); index++) {
359 size_t idx = symbols.size();
tools/lld/wasm/SymbolTable.cpp 97 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()});
101 symIndex = symVector.size();
689 LLVM_DEBUG(dbgs() << "symbol with (" << variants.size()
tools/lld/wasm/SyntheticSections.cpp 65 writeUleb128(os, symtab->sharedFiles.size(), "Needed");
71 auto pair = typeIndices.insert(std::make_pair(sig, types.size()));
89 writeUleb128(bodyOutputStream, types.size(), "type count");
96 uint32_t numImports = importedSymbols.size() + gotSymbols.size();
96 uint32_t numImports = importedSymbols.size() + gotSymbols.size();
200 writeUleb128(os, inputFunctions.size(), "function count");
209 out.importSec->getNumImportedFunctions() + inputFunctions.size();
303 writeUleb128(os, inputEvents.size(), "event count");
314 out.importSec->getNumImportedEvents() + inputEvents.size();
323 writeUleb128(os, exports.size(), "export count");
340 sym->setTableIndex(config->tableBase + indirectFunctions.size());
358 writeUleb128(os, indirectFunctions.size(), "elem count");
389 writeUleb128(sub.os, symtabEntries.size(), "num symbols");
428 if (dataSegments.size()) {
430 writeUleb128(sub.os, dataSegments.size(), "num data segments");
441 writeUleb128(sub.os, initFunctions.size(), "num init functions");
461 for (uint32_t i = 0; i < dataSegments.size(); ++i) {
480 writeUleb128(sub.os, c.second.size(), "num entries");
491 sym->setOutputSymbolIndex(symtabEntries.size());
tools/lld/wasm/SyntheticSections.h 89 bool isNeeded() const override { return types.size() > 0; };
135 bool isNeeded() const override { return inputFunctions.size() > 0; };
179 return inputGlobals.size() + dataAddressGlobals.size() +
179 return inputGlobals.size() + dataAddressGlobals.size() +
180 staticGotSymbols.size();
211 bool isNeeded() const override { return inputEvents.size() > 0; }
220 bool isNeeded() const override { return exports.size() > 0; }
242 bool isNeeded() const override { return indirectFunctions.size() > 0; };
245 uint32_t numEntries() const { return indirectFunctions.size(); }
tools/lld/wasm/Writer.cpp 146 size_t origSize = outputSections.size();
314 sec->sectionIndex = outputSections.size();
700 for (size_t i = 0; i < segments.size(); ++i)
724 if (segments.size()) {
969 out.startSec = make<StartSection>(segments.size());
1044 log("Defined Functions: " + Twine(out.functionSec->inputFunctions.size()));
1046 log("Defined Events : " + Twine(out.eventSec->inputEvents.size()));
tools/lldb/include/lldb/Breakpoint/BreakpointList.h 79 return m_breakpoints.size();
tools/lldb/include/lldb/Breakpoint/BreakpointLocationCollection.h 107 size_t GetSize() const { return m_break_loc_collection.size(); }
tools/lldb/include/lldb/Breakpoint/BreakpointLocationList.h 146 size_t GetSize() const { return m_locations.size(); }
tools/lldb/include/lldb/Core/FileSpecList.h 168 if (idx < m_files.size()) {
171 } else if (idx == m_files.size()) {
179 if (idx < m_files.size()) {
187 if (idx < m_files.size()) {
tools/lldb/include/lldb/Core/FormatEntity.h 150 const size_t n = children.size();
151 const size_t m = rhs.children.size();
tools/lldb/include/lldb/Core/IOHandler.h 504 return m_stack.size();
553 const size_t num_io_handlers = m_stack.size();
tools/lldb/include/lldb/Core/ModuleSpec.h 325 return m_specs.size();
350 if (i < m_specs.size()) {
tools/lldb/include/lldb/Core/Section.h 74 size_t GetSize() const { return m_sections.size(); }
tools/lldb/include/lldb/Core/UniqueCStringMap.h 73 return ((idx < m_map.size()) ? m_map[idx].cstring : ConstString());
110 const Entry *after_last_entry = first_entry + m_map.size();
121 const size_t start_size = values.size();
127 return values.size() - start_size;
132 const size_t start_size = values.size();
140 return values.size() - start_size;
144 size_t GetSize() const { return m_map.size(); }
172 if (m_map.size() < m_map.capacity()) {
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h 128 uint32_t GetCount() { return m_map.size(); }
132 if (index >= m_map.size())
140 if (index >= m_map.size())
tools/lldb/include/lldb/DataFormatters/TypeSynthetic.h 291 size_t GetCount() const { return m_expression_paths.size(); }
tools/lldb/include/lldb/Expression/ExpressionVariable.h 125 size_t GetSize() { return m_variables.size(); }
129 if (index < m_variables.size())
136 return m_variables.size() - 1;
147 const size_t size = m_variables.size();
tools/lldb/include/lldb/Host/Debug.h 78 const size_t num_actions = m_actions.size();
90 const size_t num_actions = m_actions.size();
111 const size_t num_actions = m_actions.size();
121 size_t GetSize() const { return m_actions.size(); }
tools/lldb/include/lldb/Host/ProcessLaunchInfo.h 57 size_t GetNumFileActions() const { return m_file_actions.size(); }
tools/lldb/include/lldb/Interpreter/OptionValueArray.h 55 size_t GetSize() const { return m_values.size(); }
59 if (idx < m_values.size())
66 if (idx < m_values.size())
85 if (idx < m_values.size())
98 if (idx < m_values.size()) {
107 if (idx < m_values.size()) {
tools/lldb/include/lldb/Interpreter/OptionValueProperties.h 206 return ((idx < m_properties.size()) ? &m_properties[idx] : nullptr);
210 return ((idx < m_properties.size()) ? &m_properties[idx] : nullptr);
tools/lldb/include/lldb/Symbol/DebugMacros.h 80 size_t GetNumMacroEntries() const { return m_macro_entries.size(); }
83 if (index < m_macro_entries.size())
tools/lldb/include/lldb/Symbol/Symtab.h 126 if (m_symbols.capacity() > m_symbols.size()) {
tools/lldb/include/lldb/Symbol/Type.h 330 size_t GetSize() { return m_content.size(); }
517 size_t GetSize() { return m_content.size(); }
tools/lldb/include/lldb/Symbol/UnwindPlan.h 400 m_row_list.reserve(rhs.m_row_list.size());
tools/lldb/include/lldb/Target/PathMappingList.h 47 size_t GetSize() const { return m_pairs.size(); }
tools/lldb/include/lldb/Target/Platform.h 928 return m_platforms.size();
935 if (idx < m_platforms.size())
958 const size_t num_platforms = m_platforms.size();
tools/lldb/include/lldb/Target/Process.h 435 size_t GetNumRestartedReasons() { return m_restarted_reasons.size(); }
438 return ((idx < m_restarted_reasons.size())
tools/lldb/include/lldb/Utility/CompletionRequest.h 77 std::size_t GetNumberOfResults() const { return m_results.size(); }
tools/lldb/include/lldb/Utility/ProcessInfo.h 164 size_t GetSize() { return m_infos.size(); }
169 return ((idx < m_infos.size()) ? m_infos[idx].GetNameAsStringRef() : "");
173 return ((idx < m_infos.size()) ? m_infos[idx].GetProcessID() : 0);
177 if (idx < m_infos.size()) {
186 assert(idx < m_infos.size());
tools/lldb/include/lldb/Utility/RangeMap.h 374 if (idx < m_entries.size()) {
382 if (m_entries.size() > 1)
475 size_t GetSize() const { return m_entries.size(); }
478 return ((i < m_entries.size()) ? &m_entries[i] : nullptr);
736 return indexes.size();
tools/lldb/include/lldb/Utility/StreamTee.h 76 size_t new_idx = m_streams.size();
86 result = m_streams.size();
94 if (idx < m_streams.size())
104 if (idx >= m_streams.size())
tools/lldb/include/lldb/Utility/StructuredData.h 180 size_t GetSize() const { return m_items.size(); }
183 if (idx < m_items.size())
190 if (idx < m_items.size())
tools/lldb/source/API/SBBreakpoint.cpp 797 size_t GetSize() { return m_break_ids.size(); }
800 if (idx >= m_break_ids.size())
tools/lldb/source/API/SBMemoryRegionInfoList.cpp 34 size_t GetSize() const { return m_regions.size(); }
tools/lldb/source/API/SBModule.cpp 346 const size_t num_matches = matching_symbol_indexes.size();
tools/lldb/source/API/SBProcess.cpp 1152 return runtime->GetExtendedBacktraceTypes().size();
1166 if (idx < names.size()) {
tools/lldb/source/API/SBQueue.cpp 102 const uint32_t num_threads = thread_list.size();
123 const uint32_t num_pending_items = queue_items.size();
140 result = m_threads.size();
150 if (queue_sp && idx < m_threads.size()) {
169 result = m_pending_items.size();
177 if (m_pending_items_fetched && idx < m_pending_items.size()) {
tools/lldb/source/API/SBThread.cpp 947 step_over_until_addrs.size(), stop_other_threads,
tools/lldb/source/API/SBValueList.cpp 33 uint32_t GetSize() { return m_values.size(); }
tools/lldb/source/Breakpoint/Breakpoint.cpp 776 if (old_id_vec.size() == new_id_vec.size()) {
776 if (old_id_vec.size() == new_id_vec.size()) {
779 size_t num_elements = old_id_vec.size();
tools/lldb/source/Breakpoint/BreakpointIDList.cpp 28 size_t BreakpointIDList::GetSize() const { return m_breakpoint_ids.size(); }
32 return ((index < m_breakpoint_ids.size()) ? m_breakpoint_ids[index]
37 if (index >= m_breakpoint_ids.size())
64 for (size_t i = 0; i < m_breakpoint_ids.size(); ++i) {
tools/lldb/source/Breakpoint/BreakpointList.cpp 154 (uint32_t)m_breakpoints.size());
163 if (i < m_breakpoints.size())
tools/lldb/source/Breakpoint/BreakpointLocationCollection.cpp 104 if (i < m_break_loc_collection.size())
114 if (i < m_break_loc_collection.size())
tools/lldb/source/Breakpoint/BreakpointLocationList.cpp 128 (uint64_t)m_locations.size());
139 if (i < m_locations.size())
148 if (i < m_locations.size())
244 size_t num_locations = m_locations.size();
256 assert (idx < m_locations.size());
266 while (idx < m_locations.size()) {
tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp 110 uint32_t num_matches = line_matches.size();
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp 409 size_t num_names = m_lookups.size();
tools/lldb/source/Commands/CommandObjectDisassemble.cpp 453 bool print_sc_header = ranges.size() > 1;
498 bool print_sc_header = ranges.size() > 1;
tools/lldb/source/Commands/CommandObjectSource.cpp 580 for (size_t i = 0, e = m_options.modules.size(); i < e; ++i) {
886 const size_t num_modules = m_options.modules.size();
909 const size_t num_modules = m_options.modules.size();
1169 for (size_t i = 0, e = m_options.modules.size(); i < e; ++i) {
tools/lldb/source/Commands/CommandObjectTarget.cpp 663 const size_t num_targets_to_delete = delete_target_list.size();
2802 if (loadables.size() == 0) {
3098 const size_t num_entries = m_options.m_format_array.size();
tools/lldb/source/Commands/CommandObjectThread.cpp 159 strm.Format("{0} thread(s) ", thread_index_ids.size());
877 if (resume_threads.size() == 1)
1238 abort_other_plans, &address_list.front(), address_list.size(),
tools/lldb/source/Commands/CommandObjectWatchpoint.cpp 107 size_t size = StrRefArgs.size();
261 const size_t size = wp_ids.size();
334 const size_t size = wp_ids.size();
407 const size_t size = wp_ids.size();
481 const size_t size = wp_ids.size();
592 const size_t size = wp_ids.size();
711 const size_t size = wp_ids.size();
tools/lldb/source/Commands/CommandObjectWatchpointCommand.cpp 420 const size_t count = valid_wp_ids.size();
529 const size_t count = valid_wp_ids.size();
601 const size_t count = valid_wp_ids.size();
tools/lldb/source/Core/Address.cpp 167 if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) {
167 if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) {
171 DataExtractor data(&buf.front(), buf.size(), byte_order, addr_size);
176 buf.size(), // Size of item
tools/lldb/source/Core/AddressResolver.cpp 38 return m_address_ranges.size();
tools/lldb/source/Core/Debugger.cpp 1072 return g_debugger_list_ptr->size();
1082 if (index < g_debugger_list_ptr->size())
tools/lldb/source/Core/Disassembler.cpp 539 if (source_lines_to_display.lines.size() > 0)
541 source_lines_to_display.lines.size() - 1;
585 for (size_t i = 0; i < previous_lines.size(); i++) {
598 source_lines_to_display.lines.size() - 1;
623 if (source_lines_to_display.lines.size() > 0) {
625 for (size_t idx = 0; idx < source_lines_to_display.lines.size();
1049 size_t InstructionList::GetSize() const { return m_instructions.size(); }
1065 if (idx < m_instructions.size())
1105 size_t num_instructions = m_instructions.size();
1159 size_t num_instructions = m_instructions.size();
1404 return (base(op) && op.m_children.size() == 2 &&
1415 return (base(op) && op.m_children.size() == 1 && child(op.m_children[0]));
tools/lldb/source/Core/FileSpecList.cpp 63 const size_t num_files = m_files.size();
88 if (idx < m_files.size())
95 if (idx < m_files.size())
115 size_t FileSpecList::GetSize() const { return m_files.size(); }
tools/lldb/source/Core/IOHandler.cpp 1015 m_curr_active_window_idx = m_subwindows.size();
1205 if (m_curr_active_window_idx >= m_subwindows.size()) {
1206 if (m_prev_active_window_idx < m_subwindows.size()) {
1214 const size_t num_subwindows = m_subwindows.size();
1224 if (m_curr_active_window_idx < m_subwindows.size())
1249 const size_t num_subwindows = m_subwindows.size();
1442 const size_t num_submenus = submenus.size();
1524 const size_t num_submenus = submenus.size();
1575 const size_t num_submenus = submenus.size();
1636 menu_bounds.size.height = run_menu_sp->GetSubmenus().size() + 2;
1647 if (m_submenus.size() > 1) {
1662 if (m_submenus.size() > 1) {
2042 return m_children.size();
2900 const bool last_child = row.parent && &rows[rows.size() - 1] == &row;
3557 if (submenus.size() == 7)
3559 else if (submenus.size() > 8)
3584 } else if (submenus.size() > 7) {
tools/lldb/source/Core/Module.cpp 115 return GetModuleCollection().size();
122 if (idx < modules.size())
851 const size_t num_matches = symbol_indexes.size();
1298 size_t num_indices = symbol_indexes.size();
tools/lldb/source/Core/ModuleList.cpp 161 while (idx < m_modules.size()) {
312 if (idx < m_modules.size())
324 if (idx < m_modules.size())
562 size = m_modules.size();
tools/lldb/source/Core/PluginManager.cpp 258 if (idx < instances.size())
389 if (idx < instances.size())
474 if (idx < instances.size())
558 if (idx < instances.size())
638 if (idx < instances.size())
723 if (idx < instances.size())
802 if (idx < instances.size())
887 if (idx < instances.size())
896 if (idx < instances.size())
905 if (idx < instances.size())
985 if (idx < instances.size())
1076 if (idx < instances.size())
1085 if (idx < instances.size())
1095 if (idx < instances.size())
1212 if (idx < instances.size())
1238 if (idx < instances.size())
1291 if (idx < instances.size())
1299 if (idx < instances.size())
1324 if (idx < instances.size())
1407 if (idx < instances.size())
1415 if (idx < instances.size())
1440 if (idx < instances.size())
1525 if (idx < instances.size())
1622 if (idx < instances.size())
1649 if (idx < instances.size()) {
1721 if (idx < instances.size())
1801 if (idx < instances.size())
1881 if (idx < instances.size())
1961 if (idx < instances.size())
2050 if (idx < instances.size())
2060 if (idx < instances.size())
2145 if (idx < instances.size())
2170 for (unsigned i = 0; i < instances.size(); ++i)
2179 for (unsigned i = 0; i < instances.size(); ++i)
2243 if (idx < instances.size())
2267 for (unsigned i = 0; i < instances.size(); ++i)
tools/lldb/source/Core/Section.cpp 428 size_t section_index = m_sections.size();
438 if (idx < m_sections.size()) {
485 size_t count = m_sections.size();
497 if (idx < m_sections.size())
547 size_t num_sections = m_sections.size();
tools/lldb/source/Core/SourceManager.cpp 451 if (line < m_offsets.size())
459 return m_offsets.size();
505 return line < m_offsets.size();
tools/lldb/source/Core/UserSettingsController.cpp 92 return matching_properties.size();
tools/lldb/source/Core/Value.cpp 698 size_t ValueList::GetSize() { return m_values.size(); }
tools/lldb/source/Core/ValueObjectChild.cpp 64 ::snprintf(&bitfield_type_name.front(), bitfield_type_name.size(),
tools/lldb/source/Core/ValueObjectList.cpp 36 size_t ValueObjectList::GetSize() const { return m_value_objects.size(); }
42 if (idx < m_value_objects.size())
49 if (idx < m_value_objects.size()) {
58 if (idx >= m_value_objects.size())
tools/lldb/source/DataFormatters/TypeCategory.cpp 80 return m_languages.size();
tools/lldb/source/DataFormatters/TypeCategoryMap.cpp 103 if (pos >= sorted_categories.size()) {
tools/lldb/source/Expression/DWARFExpression.cpp 1056 size_t count = stack.size();
1430 if (stack.size() < 2) {
1436 stack.push_back(stack[stack.size() - 2]);
1445 if (pick_idx < stack.size())
1446 stack.push_back(stack[stack.size() - 1 - pick_idx]);
1461 if (stack.size() < 2) {
1468 stack.back() = stack[stack.size() - 2];
1469 stack[stack.size() - 2] = tmp;
1480 if (stack.size() < 3) {
1486 size_t last_idx = stack.size() - 1;
1518 if (stack.size() < 2) {
1537 if (stack.size() < 2) {
1566 if (stack.size() < 2) {
1585 if (stack.size() < 2) {
1603 if (stack.size() < 2) {
1658 if (stack.size() < 2) {
1676 if (stack.size() < 2) {
1716 if (stack.size() < 2) {
1734 if (stack.size() < 2) {
1758 if (stack.size() < 2) {
1775 if (stack.size() < 2) {
1845 if (stack.size() < 2) {
1866 if (stack.size() < 2) {
1887 if (stack.size() < 2) {
1908 if (stack.size() < 2) {
1929 if (stack.size() < 2) {
1950 if (stack.size() < 2) {
2303 if (stack.size() < 1) {
2430 if (stack.size() < 1) {
2533 if (stack.size() < 1) {
2643 size_t count = stack.size();
tools/lldb/source/Expression/IRExecutionUnit.cpp 395 if (m_failed_lookups.size()) {
670 for (size_t i = 0; i < alternates.size(); i++) {
687 if (param_and_qual_matches.size())
690 else if (param_matches.size())
tools/lldb/source/Expression/UserExpression.cpp 293 if (!diagnostic_manager.Diagnostics().size())
318 if (!diagnostic_manager.Diagnostics().size())
348 if (!diagnostic_manager.Diagnostics().size())
tools/lldb/source/Host/common/Editline.cpp 342 for (unsigned index = m_current_line_index; index < m_input_lines.size();
374 ((m_input_lines[m_input_lines.size() - 1].length() + GetPromptWidth()) %
383 int line_count = (int)m_input_lines.size();
472 earlier ? (int)m_input_lines.size() - 1 : 0);
620 if (m_current_line_index == m_input_lines.size() - 1 &&
659 if (m_current_line_index == m_input_lines.size() - 1) {
731 if (m_current_line_index == m_input_lines.size() - 1 && IsOnlySpaces()) {
746 if (m_current_line_index == m_input_lines.size() - 1) {
860 SetCurrentLine((int)m_input_lines.size() - 1);
tools/lldb/source/Host/common/MainLoop.cpp 211 if (ppoll(read_fds.data(), read_fds.size(), nullptr, &sigmask) == -1 &&
tools/lldb/source/Host/common/NativeProcessProtocol.cpp 89 if (idx < m_threads.size())
314 const auto initial_size = m_delegates.size();
321 return m_delegates.size() < initial_size;
tools/lldb/source/Host/common/ProcessLaunchInfo.cpp 110 if (idx < m_file_actions.size())
116 for (size_t idx = 0, count = m_file_actions.size(); idx < count; ++idx) {
tools/lldb/source/Interpreter/CommandHistory.cpp 22 return m_history.size();
51 if (idx >= m_history.size())
53 idx = m_history.size() - idx;
57 if (idx >= m_history.size())
66 if (idx < m_history.size())
101 stop_idx = std::min(stop_idx + 1, m_history.size());
tools/lldb/source/Interpreter/CommandObject.cpp 340 int CommandObject::GetNumArgumentEntries() { return m_arguments.size(); }
344 if (static_cast<size_t>(idx) < m_arguments.size())
421 for (unsigned i = 0; i < cmd_arg_entry.size(); ++i)
433 int num_args = m_arguments.size();
441 int num_alternatives = arg_entry.size();
tools/lldb/source/Interpreter/OptionValueArray.cpp 30 const uint32_t size = m_values.size();
32 strm.Printf(" =%s", (m_values.size() > 0 && !one_line) ? "\n" : "");
107 const size_t array_count = m_values.size();
148 const uint32_t size = m_values.size();
185 if (idx >= m_values.size())
204 const uint32_t size = m_values.size();
219 size_t num_remove_indexes = remove_indexes.size();
311 const uint32_t size = m_values.size();
tools/lldb/source/Interpreter/OptionValueFileSpecList.cpp 141 size_t num_remove_indexes = remove_indexes.size();
tools/lldb/source/Interpreter/OptionValuePathMappings.cpp 176 size_t num_remove_indexes = remove_indexes.size();
tools/lldb/source/Interpreter/OptionValueProperties.cpp 36 const size_t num_properties = m_properties.size();
48 return m_properties.size();
55 m_name_to_index.Append(ConstString(property.GetName()), m_properties.size());
74 m_name_to_index.Append(name, m_properties.size());
105 if (idx < m_properties.size())
521 const size_t num_properties = m_properties.size();
554 const size_t num_properties = m_properties.size();
624 const size_t num_properties = m_properties.size();
640 const size_t num_properties = m_properties.size();
tools/lldb/source/Interpreter/Options.cpp 108 int num_levels = GetRequiredOptions().size();
151 if (m_required_options.size() != 0)
423 uint32_t num_option_sets = GetRequiredOptions().size();
628 int num_levels = GetRequiredOptions().size();
657 for (size_t i = 0; i < opt_element_vector.size(); i++) {
777 for (size_t i = 0; i < opt_element_vector.size(); i++) {
821 for (uint32_t i = 0; i < m_option_defs.size(); i++) {
852 if (option_idx < m_option_infos.size()) {
1151 dummy_vec.size() &&
tools/lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp 832 if (aggregate_field_offsets.size()) {
837 const uint32_t num_children = aggregate_compiler_types.size();
tools/lldb/source/Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.cpp 1640 if (aggregate_field_offsets.size())
1643 const uint32_t num_children = aggregate_compiler_types.size();
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp 1181 std::vector<bool> to_be_removed(m_known_kexts.size(), true);
1185 int number_of_old_kexts_being_removed = m_known_kexts.size();
1187 const uint32_t new_kexts_size = kext_summaries.size();
1188 const uint32_t old_kexts_size = m_known_kexts.size();
1277 const uint32_t num_of_new_kexts = kext_summaries.size();
1314 const uint32_t num_of_old_kexts = m_known_kexts.size();
1337 if (kexts_failed_to_load.size() > 0 && number_of_new_kexts_being_added > 0) {
1339 (int)kexts_failed_to_load.size(),
1368 const size_t count = image_infos.size() * m_kext_summary_header.entry_size;
1382 i < image_infos.size() &&
1397 if (i < image_infos.size())
1402 return image_infos.size();
1449 const size_t count = m_known_kexts.size();
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp 448 if (addrs.size() > 0) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp 151 (uint64_t)solib_addresses.size());
237 const size_t num_segments = info.segments.size();
272 for (uint32_t i = 0; i < inaccessible_segment_indexes.size(); ++i) {
311 const size_t num_segments = info.segments.size();
348 for (size_t i = 0; i < image_infos.size(); i++) {
486 const size_t num_sections = image_infos[i].segments.size();
513 const size_t image_infos_size = image_infos.size();
611 for (uint32_t idx = 0; idx < image_infos.size(); ++idx) {
760 const size_t num_segments = segments.size();
778 for (uint32_t i = 0; i < segments.size(); ++i)
948 if (addresses.size() > 0) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp 177 (uint64_t)image_infos.size());
313 (uint64_t)load_addresses.size());
324 ->GetSize() == load_addresses.size()) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp 587 for (uint32_t idx = 0; idx < image_infos.size(); ++idx) {
658 const size_t count = image_infos.size() * 3 * addr_size;
668 i < image_infos.size() && info_data_ref.ValidOffset(info_data_offset);
698 m_dyld_image_infos.size() != 0)
895 const size_t num_sections = dylib_info.segments.size();
934 if (exe_idx < image_infos.size()) {
985 const size_t count = m_dyld_image_infos.size();
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp 490 if (addrs.size() > 0) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 321 static_cast<int>(namespace_map->size()));
747 static_cast<int>(namespace_map->size()));
780 static_cast<int>(context.m_namespace_map->size()));
1874 if (parent_map && parent_map->size())
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 749 (int)namespace_map->size());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp 1103 size_t num_diags = diagnostics.size();
1299 if (install_diagnostics.Diagnostics().size())
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp 96 if (m_file_stack.size() == 0)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 647 compiler_invocation_arguments.size());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp 675 if (m_execution_unit_sp->GetJittedFunctions().size() > 1) {
tools/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp 1024 if (pcs.size() == 0)
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxBitset.cpp 29 size_t CalculateNumChildren() override { return m_elements.size(); }
78 if (idx >= m_elements.size() || !m_first)
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxTuple.cpp 29 size_t CalculateNumChildren() override { return m_elements.size(); }
62 if (idx >= m_elements.size())
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp 77 while (idx >= m_elements_cache.size()) {
tools/lldb/source/Plugins/Language/CPlusPlus/LibStdcppTuple.cpp 79 name.Printf("[%zd]", m_members.size());
93 if (idx < m_members.size() && m_members[idx])
99 return m_members.size();
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp 608 if (idx >= m_children.size()) // should never happen
852 if (idx >= m_children.size()) // should never happen
1010 if (idx >= m_children.size()) // should never happen
tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp 470 if (idx >= m_children.size()) // should never happen
637 if (idx >= m_children.size()) // should never happen
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp 454 bkpt, exception_names.data(), exception_names.size(),
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp 494 size_t ClassDescriptorV2::iVarsStorage::size() { return m_ivars.size(); }
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp 326 if (!m_is_valid || m_type_vector.size() < 3)
366 is_zero_argument ? 0 : selector_components.size(),
385 for (size_t ai = 3, ae = m_type_vector.size(); ai != ae; ++ai) {
409 size_t GetNumTypes() { return m_type_vector.size(); }
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp 2541 if (index > m_indexed_isa_cache.size()) {
2545 (uint64_t)index, (uint64_t)m_indexed_isa_cache.size());
2563 if (objc_indexed_classes_count > m_indexed_isa_cache.size()) {
2568 objc_indexed_classes_count - m_indexed_isa_cache.size();
2573 m_objc_indexed_classes + (m_indexed_isa_cache.size() * addr_size);
2594 if (index > m_indexed_isa_cache.size())
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp 423 size_t num_elements = m_descriptors.size();
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 1395 if (uint64_t(args[eRsId]) < rsm->m_globals.size()) {
2115 if (alloc->element.children.size() > 0) {
2257 if (num_children > elem.children.size() || num_children == 0)
2275 if (found && num_children < elem.children.size()) {
2276 const uint32_t size_diff = elem.children.size() - num_children;
2321 if ((type == Element::RS_TYPE_NONE) && (elem.children.size() > 0)) {
2582 offset + ((elem.children.size() + 1) * sizeof(uint32_t));
2606 size_t size = (elem.children.size() + 1) * sizeof(uint32_t);
2829 if (m_rsmodules.size() > 0) {
3145 if (alloc_id <= m_allocations.size() && alloc_id != 0 &&
3277 (alloc->element.children.size() > 0) &&
3902 strm.Printf("Globals: %" PRIu64, static_cast<uint64_t>(m_globals.size()));
3911 strm.Printf("Kernels: %" PRIu64, static_cast<uint64_t>(m_kernels.size()));
3932 static_cast<uint64_t>(m_reductions.size()));
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp 111 stream.Printf("%" PRIu64 " script %s", uint64_t(groups.size()),
112 (groups.size() == 1) ? "group" : "groups");
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp 121 assert(params.size() == num_params + 1);
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp 156 size_t obj_idx = m_objects.size();
167 return m_objects.size();
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.h 132 size_t GetNumObjects() const { return m_objects.size(); }
135 if (idx < m_objects.size())
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 821 for (size_t i = 0; i < m_dynamic_symbols.size(); ++i) {
962 return program_headers.size();
969 if (program_headers.size() != header.e_phnum)
985 if (idx < program_headers.size())
988 return program_headers.size();
1313 return section_headers.size();
1370 if (section_headers.size() != header.e_shnum)
1385 if (idx < section_headers.size())
1389 if (strtab_idx && strtab_idx < section_headers.size()) {
1521 return section_headers.size();
1547 if (id < m_section_headers.size())
1556 for (size_t i = 1; i < m_section_headers.size(); ++i)
2309 if (m_dynamic_symbols.size())
2310 return m_dynamic_symbols.size();
2338 return m_dynamic_symbols.size();
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp 1856 if (n_sect < m_section_infos.size()) {
4575 for (uint32_t sect_idx = 1; sect_idx < m_mach_sections.size();
6120 mach_header.ncmds = segment_load_commands.size();
6167 segment_load_commands.size() * sizeof(struct segment_command_64);
6170 segment_load_commands.size() * sizeof(struct segment_command);
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 703 if (coff_data_dir_export_table < m_coff_header_opt.data_dirs.size() &&
767 if (coff_data_dir_exception_table >= m_coff_header_opt.data_dirs.size())
803 const uint32_t nsects = m_sect_headers.size();
1166 (uint32_t)header.data_dirs.size());
1168 for (i = 0; i < header.data_dirs.size(); i++) {
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp 164 llvm::StringRef response(&in_buffer[0], in_buffer.size());
316 std::string(&error_message[0], error_message.size()).c_str());
383 if (output_buf.size() > strlen(kShellPrefix)) {
417 dst.write(&output_buffer[0], output_buffer.size());
457 dst.write(&chunk[0], chunk.size());
529 error = ReadAllBytes(&buffer[0], buffer.size());
533 DataExtractor extractor(&buffer[0], buffer.size(), eByteOrderLittle,
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp 1721 const size_t path_parts_size = path_parts.size();
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp 59 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
204 const uint32_t num_installed = m_sdk_directory_infos.size();
223 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
273 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
398 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
416 if (sdk_idx < m_sdk_directory_infos.size()) {
528 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
646 const uint32_t num_sdk_infos = m_sdk_directory_infos.size();
tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp 43 size_t Count() const { return m_archs.size(); }
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp 834 for (size_t i = 0; i < connection_urls.size(); ++i) {
839 return connection_urls.size();
853 return connection_urls.size();
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp 605 assert(m_threads.size() == 1);
1296 m_mem_region_cache.size());
1335 m_mem_region_cache.size(), GetID());
1346 m_mem_region_cache.size());
1393 return m_threads.size();
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp 52 const size_t num_sets = m_sets.size();
77 m_set_reg_nums.resize(m_sets.size());
317 set >= m_sets.size()) {
397 return m_regs.size();
405 const uint32_t reg_num = m_regs.size();
429 assert(set < m_sets.size());
430 assert(set < m_set_reg_nums.size());
431 assert(set < m_set_names.size());
443 const size_t num_sets = m_sets.size();
445 assert(m_sets.size() == m_set_reg_nums.size());
445 assert(m_sets.size() == m_set_reg_nums.size());
446 m_sets[set].num_registers = m_set_reg_nums[set].size();
456 if (pos->second.size() > 1) {
469 const size_t num_regs = m_regs.size();
506 if (pos->second.size() > 1) {
622 size_t DynamicRegisterInfo::GetNumRegisters() const { return m_regs.size(); }
624 size_t DynamicRegisterInfo::GetNumRegisterSets() const { return m_sets.size(); }
632 if (i < m_regs.size())
638 if (i < m_regs.size())
644 if (i < m_sets.size())
658 m_set_reg_nums.resize(m_set_reg_nums.size() + 1);
661 return m_sets.size() - 1;
690 const size_t num_regs = m_regs.size();
727 const size_t num_sets = m_sets.size();
tools/lldb/source/Plugins/Process/Utility/HistoryThread.cpp 49 if (m_pcs.size() > 0) {
tools/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp 59 if (frame_idx < m_pcs.size()) {
68 uint32_t HistoryUnwind::DoGetFrameCount() { return m_pcs.size(); }
tools/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp 119 return static_cast<uint32_t>(GetSharedRegisterInfoVector().size());
tools/lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp 130 return static_cast<uint32_t>(GetPrivateRegisterInfoVector().size());
tools/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp 68 return m_frames.size();
72 if (m_frames.size() > 0)
115 assert(m_frames.size() != 0 &&
126 uint32_t cur_idx = m_frames.size();
298 assert(m_frames.size() == 1 && "No. of cursor frames are not 1");
310 for (uint32_t i = 1; i < m_frames.size(); i++)
352 if (!m_frames[m_frames.size() - 2]
382 return m_frames[m_frames.size() - 2]->reg_ctx_lldb_sp->GetCFA(
383 m_frames[m_frames.size() - 2]->cfa);
395 if (m_frames.size() == 0) {
403 while (idx >= m_frames.size() && AddOneMoreFrame(abi))
406 if (idx < m_frames.size()) {
441 if (m_frames.size() == 0) {
449 while (idx >= m_frames.size()) {
454 const uint32_t num_frames = m_frames.size();
465 if (frame_num < m_frames.size())
474 if (static_cast<size_t>(frame_num) >= m_frames.size())
tools/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp 43 return m_cursors.size();
164 return m_cursors.size();
246 return m_cursors.size();
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp 226 } else if (m_thread_data.size() > 0) {
693 if (m_thread_data.size() != nlwps)
883 return m_thread_data.size();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp 345 for (uint32_t i = 0; i < features.size(); ++i) {
413 if (supported_compressions.size() > 0) {
795 for (size_t i = 0, n = argv.size(); i < n; ++i) {
2326 Dur mean = sum / v.size();
2333 return Dur(sqrtf(accum / (v.size() - 1)));
2562 return connection_urls.size();
2779 thread_ids.size() == 0 && IsConnected()) {
2791 return thread_ids.size();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp 33 const size_t size = m_packets.size();
51 const size_t size = m_packets.size();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.h 48 if (m_total_packet_count < m_packets.size())
55 if (m_total_packet_count < m_packets.size())
58 return (uint32_t)m_packets.size();
69 return m_packets.empty() ? 0 : i % m_packets.size();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 1939 if (reg_info->byte_offset + reg_info->byte_size >= regs_buffer.size())
1951 response.PutBytesAsRawHex8(regs_buffer.data(), regs_buffer.size());
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 428 return regnums.size();
1307 (m_continue_c_tids.size() == num_threads ||
1371 const size_t num_continue_c_tids = m_continue_c_tids.size();
1372 const size_t num_continue_C_tids = m_continue_C_tids.size();
1373 const size_t num_continue_s_tids = m_continue_s_tids.size();
1374 const size_t num_continue_S_tids = m_continue_S_tids.size();
1403 for (size_t i = 1; i < m_continue_C_tids.size(); ++i) {
1545 return m_thread_ids.size();
1563 return m_thread_pcs.size();
1599 int nItems = m_stop_packet_stack.size();
1645 size_t num_thread_ids = m_thread_ids.size();
1651 num_thread_ids = m_thread_ids.size();
1689 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() &&
1689 if (m_thread_ids.size() == m_thread_pcs.size() && thread_sp.get() &&
1828 const size_t exc_data_size = exc_data.size();
2395 int nItems = m_stop_packet_stack.size();
3938 signals_to_ignore.size(), error);
4734 (int)list.m_list.size());
4795 (int)list.m_list.size());
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp 298 *ExpectedName, filtered_modules.size());
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 82 ::fread(file_contents.data(), 1, file_contents.size(), file);
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 210 if (record && record->FileNum < m_files->size())
652 if (record->Number >= m_files->size())
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 822 function_param_types.size(), is_variadic, type_quals);
1128 function_param_decls.size());
1132 function_param_decls.size());
1998 const size_t num_matches = method_die_offsets.size();
2037 &member_accessibilities.front(), member_accessibilities.size());
2298 const size_t n = m_dies.size();
2404 for (size_t i = 0; i < param_types.size(); i++) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.cpp 78 const uint32_t kNumAttributes = m_attributes.size();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h 29 size_t NumAttributes() const { return m_attributes.size(); }
31 return m_attributes.size() > idx ? m_attributes[idx].get_form() : 0;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp 64 if (idx < m_decls.size())
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugArangeSet.h 45 size_t NumDescriptors() const { return m_arange_descriptors.size(); }
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp 78 DWARFUnit::extract(m_dwarf, m_units.size(), data, section, &offset);
109 return m_units.size();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp 20 if (m_entries.size() == 1) {
55 if (m_entries.size() != rhs.m_entries.size())
55 if (m_entries.size() != rhs.m_entries.size())
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h 52 uint32_t GetSize() const { return m_entries.size(); }
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 207 die.SetParentIndex(m_die_array.size() - die_index_stack[depth - 1]);
211 m_die_array.size() - die_index_stack.back());
227 die_index_stack.back() = m_die_array.size() - 1;
386 size_t old_size = dies.size();
398 return dies.size() - old_size;
tools/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.cpp 14 const size_t count = die_info_array.size();
25 const size_t count = die_info_array.size();
47 const size_t count = die_info_array.size();
67 const size_t count = die_info_array.size();
93 const size_t count = die_info_array.size();
232 atoms.size() * sizeof(Atom);
259 const size_t num_atoms = header_data.atoms.size();
485 return die_info_array.size();
515 return die_info_array.size();
526 return die_info_array.size();
535 return die_info_array.size();
545 return die_info_array.size();
569 return die_offsets.size();
578 size_t old_size = die_info_array.size();
581 return die_info_array.size() - old_size;
tools/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp 44 std::vector<IndexSet> sets(units_to_index.size());
49 units_to_index.size());
66 TaskMapOverInt(0, units_to_index.size(), extract_fn);
71 TaskMapOverInt(0, units_to_index.size(), parser_fn);
tools/lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp 40 const size_t initial_size = info_array.size();
50 return info_array.size() - initial_size;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 189 const size_t number_of_files = prologue.FileNames.size();
755 cu->SetID(m_lldb_cu_to_dwarf_unit.size());
765 if (cu_idx >= m_lldb_cu_to_dwarf_unit.size())
776 : m_lldb_cu_to_dwarf_unit.size();
1486 return method_die_offsets.size();
2042 const size_t num_die_matches = die_offsets.size();
2144 const size_t num_matches = die_offsets.size();
2400 const size_t num_die_matches = die_offsets.size();
2467 const size_t num_die_matches = die_offsets.size();
2513 const size_t num_matches = die_offsets.size();
2691 const size_t num_matches = die_offsets.size();
2779 const size_t count1 = decl_ctx_1.size();
2780 const size_t count2 = decl_ctx_2.size();
2857 const size_t num_matches = die_offsets.size();
3110 const size_t num_matches = die_offsets.size();
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp 471 if (oso_idx < m_compile_unit_infos.size()) {
522 unsigned size = m_compile_unit_infos.size();
564 return m_compile_unit_infos.size();
619 return cu_infos.size();
832 const size_t match_count = indexes.size();
939 const uint32_t oso_index_count = m_compile_unit_infos.size();
943 &symbol_idx, &m_compile_unit_infos[0], m_compile_unit_infos.size(),
960 const uint32_t oso_index_count = m_compile_unit_infos.size();
964 &symbol_id, &m_compile_unit_infos[0], m_compile_unit_infos.size(),
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h 217 for (uint32_t oso_idx = 0, num_oso_idxs = m_compile_unit_infos.size();
tools/lldb/source/Plugins/SymbolFile/DWARF/UniqueDWARFASTType.h 61 uint32_t GetSize() { return (uint32_t)m_collection.size(); }
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp 1096 m_clang.SetFunctionParameters(&function_decl, params.data(), params.size());
1159 return_ct, arg_types.data(), arg_types.size(), is_variadic, 0, *cc);
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp 1270 if (max_matches > 0 && max_matches < matches.size())
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp 222 bases.reserve(m_bases.size());
tools/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp 627 lldbassert(arg_list.size() <= num_args);
645 arg_list.size(), is_variadic, type_quals, cc);
956 if (params.size())
957 m_ast.SetFunctionParameters(decl, params.data(), params.size());
tools/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp 113 return m_source_indexes.size();
121 if (idx < m_source_indexes.size()) {
163 const uint32_t num_indexes = m_code_indexes.size();
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp 672 if (m_types.size() == 0) {
tools/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp 47 range, function_text.data(), function_text.size(), unwind_plan);
tools/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp 236 for (size_t i = 0; i < reg_info.size(); ++i) {
tools/lldb/source/Symbol/ClangASTContext.cpp 7180 return child_indexes.size();
7188 return child_indexes.size();
7242 return child_indexes.size();
7277 return child_indexes.size();
7295 return child_indexes.size();
8337 raw_bases.reserve(bases.size());
8343 cxx_record_decl->setBases(raw_bases.data(), raw_bases.size());
9604 DataExtractor cstr_data(&buf.front(), buf.size(),
9611 buf.size(), error)) > 0) {
9620 if (len < buf.size())
tools/lldb/source/Symbol/CompactUnwindInfo.cpp 366 if (m_indexes.size() > 0) {
367 m_indexes[m_indexes.size() - 1].lsda_array_end = lsda_offset;
tools/lldb/source/Symbol/CompileUnit.cpp 246 const size_t num_file_indexes = file_indexes.size();
tools/lldb/source/Symbol/FuncUnwinders.cpp 80 if (m_unwind_plan_compact_unwind.size() > 0)
tools/lldb/source/Symbol/LineTable.cpp 159 uint32_t LineTable::GetSize() const { return m_entries.size(); }
162 if (idx < m_entries.size()) {
244 if (idx >= m_entries.size())
267 if (!entry.is_terminal_entry && idx + 1 < m_entries.size())
291 const size_t count = m_entries.size();
337 const size_t count = m_entries.size();
384 const size_t count = m_entries.size();
407 const size_t count = m_entries.size();
421 const size_t count = m_entries.size();
436 const size_t count = m_entries.size();
458 const size_t count = m_entries.size();
tools/lldb/source/Symbol/LocateSymbolFile.cpp 344 const uint32_t num_files = files.size();
tools/lldb/source/Symbol/SymbolContext.cpp 1278 if (idx < m_symbol_contexts.size()) {
1286 if (idx < m_symbol_contexts.size()) {
1293 uint32_t SymbolContextList::GetSize() const { return m_symbol_contexts.size(); }
1299 const size_t size = m_symbol_contexts.size();
1309 const size_t size = m_symbol_contexts.size();
tools/lldb/source/Symbol/SymbolFile.cpp 160 return m_compile_units->size();
tools/lldb/source/Symbol/Symtab.cpp 54 uint32_t symbol_idx = m_symbols.size();
65 return m_symbols.size();
87 (uint64_t)m_symbols.size());
89 s->Printf("Symtab, num_symbols = %" PRIu64 "", (uint64_t)m_symbols.size());
154 (uint64_t)indexes.size(), (uint64_t)m_symbols.size());
154 (uint64_t)indexes.size(), (uint64_t)m_symbols.size());
198 (Symbol *)::bsearch(&symbol_uid, &m_symbols[0], m_symbols.size(),
206 if (idx < m_symbols.size())
214 if (idx < m_symbols.size())
260 const size_t num_symbols = m_symbols.size();
423 const size_t num_indexes = indexes.size();
426 assert(i < m_symbols.size());
449 uint32_t prev_size = indexes.size();
451 const uint32_t count = std::min<uint32_t>(m_symbols.size(), end_index);
458 return indexes.size() - prev_size;
467 uint32_t prev_size = indexes.size();
469 const uint32_t count = std::min<uint32_t>(m_symbols.size(), end_index);
478 return indexes.size() - prev_size;
489 uint32_t prev_size = indexes.size();
491 const uint32_t count = std::min<uint32_t>(m_symbols.size(), end_index);
501 return indexes.size() - prev_size;
507 if (symbol >= first_symbol && symbol < first_symbol + m_symbols.size())
537 assert(symbols.size() == addr_cache.size());
537 assert(symbols.size() == addr_cache.size());
576 if (indexes.size() <= 1)
584 std::vector<lldb::addr_t> addr_cache(m_symbols.size(), LLDB_INVALID_ADDRESS);
620 const size_t old_size = indexes.size();
632 return indexes.size() - old_size;
653 return indexes.size();
673 return indexes.size();
681 uint32_t prev_size = indexes.size();
682 uint32_t sym_end = m_symbols.size();
694 return indexes.size() - prev_size;
703 uint32_t prev_size = indexes.size();
704 uint32_t sym_end = m_symbols.size();
719 return indexes.size() - prev_size;
728 const size_t count = m_symbols.size();
1012 size_t num_indices = symbol_indexes.size();
1036 unsigned temp_symbol_indexes_size = temp_symbol_indexes.size();
tools/lldb/source/Symbol/TypeList.cpp 60 uint32_t TypeList::GetSize() const { return m_types.size(); }
tools/lldb/source/Symbol/UnwindPlan.cpp 401 return idx < m_row_list.size();
405 if (idx < m_row_list.size())
412 idx, (uint32_t)m_row_list.size());
426 int UnwindPlan::GetRowCount() const { return m_row_list.size(); }
tools/lldb/source/Symbol/VariableList.cpp 49 if (idx < m_variables.size())
56 if (idx < m_variables.size()) {
165 size_t VariableList::GetSize() const { return m_variables.size(); }
tools/lldb/source/Target/JITLoaderList.cpp 32 size_t JITLoaderList::GetSize() const { return m_jit_loaders_vec.size(); }
tools/lldb/source/Target/PathMappingList.cpp 87 if (index >= m_pairs.size())
100 if (index >= m_pairs.size())
110 if (index >= m_pairs.size())
124 unsigned int numPairs = m_pairs.size();
248 if (idx < m_pairs.size()) {
298 if (idx < m_pairs.size()) {
tools/lldb/source/Target/Platform.cpp 1651 const auto to_read = std::min(static_cast<uint64_t>(buffer.size()),
tools/lldb/source/Target/Process.cpp 5755 return m_image_tokens.size() - 1;
5759 if (token < m_image_tokens.size())
5765 if (token < m_image_tokens.size())
tools/lldb/source/Target/QueueList.cpp 23 return m_queues.size();
28 if (idx < m_queues.size()) {
tools/lldb/source/Target/StackFrameList.cpp 223 assert(m_frames.size() <= end_idx && "Expected there to be frames to fill");
387 uint32_t frame_idx = m_frames.size();
406 next_frame.SetFrameIndex(m_frames.size());
416 if (m_frames.size() > end_idx || GetAllFramesFetched())
469 m_thread.shared_from_this(), m_frames.size(), idx, reg_ctx_sp,
488 m_thread.shared_from_this(), m_frames.size(), idx, cfa, cfa_is_valid,
533 m_thread.shared_from_this(), m_frames.size(), idx,
542 } while (m_frames.size() - 1 < end_idx);
558 for (curr_frame_num = curr_frames->m_frames.size(),
559 prev_frame_num = prev_frames->m_frames.size();
616 return GetVisibleStackFrameIndex(m_frames.size());
648 if (idx < m_frames.size())
657 if (idx < m_frames.size()) {
759 if (idx >= m_frames.size())
762 if (idx < m_frames.size()) {
tools/lldb/source/Target/Target.cpp 444 size_t num_names = func_names.size();
1088 size_t num_names = names.size();
2598 size_t num_exe_ctx = exc_ctx_with_reasons.size();
tools/lldb/source/Target/TargetList.cpp 431 m_selected_target_idx = m_target_list.size();
580 return m_target_list.size();
586 if (idx < m_target_list.size())
593 size_t num_targets = m_target_list.size();
617 if (m_selected_target_idx >= m_target_list.size())
tools/lldb/source/Target/Thread.cpp 950 if (m_completed_plan_stack.size() > 0) {
987 if (m_completed_plan_stack.size() > 0) {
1040 if (m_plan_stack.size() <= 1)
1056 if (m_plan_stack.size() > 1) {
1076 for (int i = m_completed_plan_stack.size() - 1; i >= 0; i--) {
1088 for (int i = m_completed_plan_stack.size() - 1; i >= 0; i--) {
1100 for (int i = m_completed_plan_stack.size() - 1; i >= 0; i--) {
1113 for (int i = m_completed_plan_stack.size() - 1; i >= 0; i--) {
1123 for (int i = m_discarded_plan_stack.size() - 1; i >= 0; i--) {
1139 int stack_size = m_completed_plan_stack.size();
1149 stack_size = m_plan_stack.size();
1188 int stack_size = m_plan_stack.size();
1198 int stack_size = m_plan_stack.size();
1238 int stack_size = m_plan_stack.size();
1273 int stack_size = m_plan_stack.size();
1286 for (master_plan_idx = m_plan_stack.size() - 1; master_plan_idx >= 0;
1296 for (int i = m_plan_stack.size() - 1; i > master_plan_idx; i--) {
1320 else if (m_plan_stack.size() == 0)
1328 int stack_size = m_plan_stack.size();
1534 uint32_t stack_size = m_plan_stack.size();
1535 uint32_t completed_stack_size = m_completed_plan_stack.size();
1536 uint32_t discarded_stack_size = m_discarded_plan_stack.size();
1555 stack_size = m_completed_plan_stack.size();
1562 stack_size = m_discarded_plan_stack.size();
1720 for (size_t n = 0; n < list.size(); n++) {
1749 else if (outside_function.size() == 1 && can_leave_function)
1757 } else if (outside_function.size() == 1) {
1770 if (warnings && candidates.size() > 1) {
tools/lldb/source/Target/ThreadCollection.cpp 48 if (idx < m_threads.size())
56 return m_threads.size();
62 if (idx < m_threads.size())
tools/lldb/source/Target/ThreadList.cpp 87 return m_threads.size();
97 if (idx < m_threads.size())
110 const uint32_t num_threads = m_threads.size();
128 const uint32_t num_threads = m_threads.size();
146 const uint32_t num_threads = m_threads.size();
166 const uint32_t num_threads = m_threads.size();
183 const uint32_t num_threads = m_threads.size();
198 const uint32_t num_threads = m_threads.size();
215 const uint32_t num_threads = m_threads.size();
262 if (threads_copy.size() == 0)
273 __FUNCTION__, (uint64_t)m_threads.size(),
274 (uint64_t)threads_copy.size());
366 (uint64_t)m_threads.size());
452 const uint32_t num_threads = m_threads.size();
652 if (m_threads.size() == 0)
720 const uint32_t num_threads = m_threads.size();
tools/lldb/source/Target/ThreadPlanRunToAddress.cpp 60 size_t num_addresses = m_addresses.size();
79 size_t num_break_ids = m_break_ids.size();
88 size_t num_addresses = m_addresses.size();
140 size_t num_break_ids = m_break_ids.size();
177 size_t num_break_ids = m_break_ids.size();
195 size_t num_addresses = m_addresses.size();
tools/lldb/source/Target/ThreadPlanStepRange.cpp 89 size_t num_ranges = m_address_ranges.size();
108 size_t num_ranges = m_address_ranges.size();
247 size_t num_ranges = m_address_ranges.size();
476 size_t num_ranges = m_address_ranges.size();
tools/lldb/source/Target/ThreadPlanTracer.cpp 216 assert(reg_num < m_register_values.size());
tools/lldb/source/Utility/Args.cpp 210 for (size_t i = 0; i < m_entries.size(); ++i) {
222 for (size_t i = 0; i < m_entries.size(); ++i) {
254 size_t Args::GetArgumentCount() const { return m_entries.size(); }
257 if (idx < m_argv.size())
269 return (m_argv.size() > 1) ? m_argv.data() : nullptr;
274 return (m_argv.size() > 1) ? const_cast<const char **>(m_argv.data())
291 assert(m_argv.size() == m_entries.size() + 1);
291 assert(m_argv.size() == m_entries.size() + 1);
304 assert(m_argv.size() == m_entries.size() + 1);
304 assert(m_argv.size() == m_entries.size() + 1);
321 assert(m_argv.size() == m_entries.size() + 1);
321 assert(m_argv.size() == m_entries.size() + 1);
324 if (idx > m_entries.size())
332 assert(m_argv.size() == m_entries.size() + 1);
332 assert(m_argv.size() == m_entries.size() + 1);
335 if (idx >= m_entries.size())
343 if (idx >= m_entries.size())
tools/lldb/source/Utility/Broadcaster.cpp 285 if (m_hijacking_listeners.size()) {
387 for (size_t i = 0; i < to_be_readded.size(); i++) {
tools/lldb/source/Utility/DataBufferHeap.cpp 45 uint64_t DataBufferHeap::GetByteSize() const { return m_data.size(); }
51 return m_data.size();
tools/lldb/source/Utility/Listener.cpp 72 size_t num_managers = m_broadcaster_managers.size();
tools/lldb/source/Utility/RegisterValue.cpp 320 while (!car.getAsInteger(0, byte) && bytes.size() < byte_size) {
326 if (bytes.size() != byte_size)
tools/lldb/source/Utility/Reproducer.cpp 244 std::size_t i = m_data_recorders.size() + 1;
333 if (m_index >= m_files.size())
tools/lldb/source/Utility/StringList.cpp 64 m_strings.reserve(m_strings.size() + strings.GetSize());
68 size_t StringList::GetSize() const { return m_strings.size(); }
81 if (idx < m_strings.size())
120 if (idx < m_strings.size())
128 if (idx < m_strings.size())
135 if (idx < m_strings.size())
142 if (idx < m_strings.size())
151 const size_t orig_size = m_strings.size();
176 return m_strings.size() - orig_size;
184 while (idx < m_strings.size()) {
tools/lldb/source/Utility/Timer.cpp 59 if (g_quiet && stack.size() <= g_display_depth) {
63 ::fprintf(stdout, "%*s", int(stack.size() - 1) * TIMER_INDENT_AMOUNT, "");
83 if (g_quiet && stack.size() <= g_display_depth) {
86 int(stack.size() - 1) * TIMER_INDENT_AMOUNT, "",
tools/lldb/tools/driver/Driver.cpp 528 const size_t num_args = m_option_data.m_args.size();
tools/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp 125 data.SetData(error, bd_entry_v.data(), bd_entry_v.size(),
181 data.SetData(error, bt_entry_v.data(), bt_entry_v.size(),
tools/lldb/unittests/Expression/DWARFExpressionTest.cpp 84 lldb::offset_t file_offset = m_buffer.size();
tools/lldb/unittests/Expression/DiagnosticManagerTest.cpp 40 EXPECT_EQ(0U, mgr.Diagnostics().size());
48 EXPECT_EQ(1U, mgr.Diagnostics().size());
138 EXPECT_EQ(0U, mgr.Diagnostics().size());
171 EXPECT_EQ(1U, mgr.Diagnostics().size());
182 EXPECT_EQ(2U, mgr.Diagnostics().size());
193 EXPECT_EQ(2U, mgr.Diagnostics().size());
tools/lldb/unittests/Host/SocketAddressTest.cpp 47 ASSERT_EQ(1u, addr.size());
tools/lldb/unittests/Host/SocketTestUtilities.cpp 98 return addresses.size() > 0;
tools/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp 314 ASSERT_EQ(1ul, delegate.structured_data_packets.size());
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp 194 ASSERT_EQ(1u, result->size());
219 ASSERT_EQ(1u, result->size());
264 ASSERT_EQ(0u, result->size()) << "response was: " << response;
tools/lldb/unittests/Process/minidump/MinidumpParserTest.cpp 247 ASSERT_EQ(1u, filtered_modules.size());
689 ASSERT_EQ(1u, filtered_modules.size());
715 ASSERT_EQ(2u, filtered_modules.size());
tools/lldb/unittests/TestingSupport/Host/NativeProcessTestUtils.h 74 BytesRead = ExpectedMemory->size();
104 T::ReadMemoryWithoutTrap(Addr, Data.data(), Data.size(), BytesRead);
126 if (Addr >= Data.size())
129 Size = std::min(Size, Data.size() - (size_t)Addr);
136 if (Addr >= Data.size())
139 size_t Size = std::min(Chunk.size(), Data.size() - (size_t)Addr);
tools/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp 119 EXPECT_EQ(expected_foos, g_foos.size());
120 EXPECT_EQ(expected_bars, g_bars.size());
tools/lli/lli.cpp 880 int ArgC = ArgV.size() - 1;
tools/llvm-ar/llvm-ar.cpp 782 int Pos = Ret.size();
831 InsertPos = Ret.size();
833 assert(unsigned(InsertPos) <= Ret.size());
850 Ret.reserve(Ret.size() + NewMembers.size());
850 Ret.reserve(Ret.size() + NewMembers.size());
tools/llvm-config/llvm-config.cpp 156 for (unsigned i = 0, e = Components.size(); i != e; ++i) {
534 for (unsigned I = 0; I < Components.size(); ++I) {
693 for (unsigned i = 0, e = RequiredLibs.size(); i != e; ++i) {
tools/llvm-cov/CodeCoverage.cpp 760 if (CoverageArches.size() != ObjectFilenames.size()) {
760 if (CoverageArches.size() != ObjectFilenames.size()) {
939 (SourceFiles.size() != 1) || ViewOpts.hasOutputDirectory() ||
948 unsigned(SourceFiles.size())));
tools/llvm-cov/SourceCoverageViewHTML.cpp 432 for (unsigned I = 0, E = FileReports.size(); I < E; ++I) {
449 for (unsigned I = 0, E = FileReports.size(); I < E; ++I)
tools/llvm-cvtres/llvm-cvtres.cpp 136 if (InputFiles.size() == 0) {
tools/llvm-dwarfdump/Statistics.cpp 144 if (Ranges.size())
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 561 if (!BundlePaths.size())
tools/llvm-dwp/llvm-dwp.cpp 304 uint64_t Mask = Buckets.size() - 1;
323 Out.EmitIntValue(Buckets.size(), 4); // Num Buckets
617 if (CurTypesSection.size() != 1)
tools/llvm-elfabi/ErrorCollector.cpp 44 for (size_t i = 0; i < Errors.size(); ++i) {
46 if (i != Errors.size() - 1)
tools/llvm-exegesis/lib/Analysis.cpp 199 for (size_t I = 0, E = Clusters.size(); I < E; ++I) {
218 for (size_t PointId = 0, E = Points.size(); PointId < E; ++PointId) {
234 SchedClassIdToIndex.emplace(SchedClassId, Entries.size());
255 if (Instructions.size() > 1)
256 OS << " (x" << Instructions.size() << ")";
365 assert(ClusterCenterPoint.size() == SchedClassPoint.size() &&
365 assert(ClusterCenterPoint.size() == SchedClassPoint.size() &&
440 << Cluster.PointIndices.size() << " points)</p>";
tools/llvm-exegesis/lib/BenchmarkRunner.cpp 150 BM.PerSnippetValue *= static_cast<double>(Instructions.size()) /
tools/llvm-exegesis/lib/Clustering.cpp 41 Neighbors.reserve(Points_.size() - 1); // The Q itself isn't a neighbor.
43 for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
63 assert(P < Points_.size());
78 assert(P < Points_.size());
95 ClusterIdForPoint_.resize(Points_.size());
99 for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
108 if (LastMeasurement->size() != CurMeasurement->size()) {
108 if (LastMeasurement->size() != CurMeasurement->size()) {
112 for (size_t I = 0, E = LastMeasurement->size(); I < E; ++I) {
123 NumDimensions_ = LastMeasurement->size();
130 for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
134 if (Neighbors.size() + 1 < MinPts) { // Density check.
142 Clusters_.emplace_back(ClusterId::makeValid(Clusters_.size()));
169 if (Neighbors.size() + 1 >= MinPts) {
178 for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
190 for (size_t P = 0, NumPoints = Points_.size(); P < NumPoints; ++P) {
199 assert(OpcodeToPoints.size() == NumOpcodes && "sanity check");
202 assert(NumOpcodesSeen <= Points_.size() &&
212 Clusters_.size(), /*IsUnstable=*/!areAllNeighbours(PointsOfOpcode)));
222 assert(CurrentCluster.PointIndices.size() == PointsOfOpcode.size());
224 assert(Clusters_.size() == NumOpcodesSeen);
254 assert(ClusterIdForPoint_.size() == Points_.size() && "size mismatch");
254 assert(ClusterIdForPoint_.size() == Points_.size() && "size mismatch");
272 Clusters_.emplace_back(ClusterId::makeValidUnstable(Clusters_.size()));
308 assert(UnstableCluster.PointIndices.size() > 1 &&
310 assert(UnstableCluster.PointIndices.size() >= ClusterIDs.size() &&
325 if (Clustering.ErrorCluster_.PointIndices.size() == Points.size()) {
325 if (Clustering.ErrorCluster_.PointIndices.size() == Points.size()) {
347 assert(Representative.size() == Point.size() &&
355 std::vector<BenchmarkMeasure> ClusterCenterPoint(Representative.size());
363 size_t NumMeasurements = Representative.size();
tools/llvm-exegesis/lib/Clustering.h 114 for (size_t I = 0, E = P.size(); I < E; ++I) {
tools/llvm-exegesis/lib/Latency.cpp 59 if (AliasingInstructions.size() >= MaxAliasingInstructions)
tools/llvm-exegesis/lib/SnippetGenerator.cpp 84 if (Output.size() >= Opts.MaxConfigsPerOpcode)
tools/llvm-exegesis/lib/Uops.cpp 103 const size_t OriginalInstructionsSize = Instructions.size();
110 while (Instructions.size() < kMinNumDifferentAddresses) {
tools/llvm-exegesis/lib/X86/Target.cpp 234 if (Result.size() >= Opts.MaxConfigsPerOpcode)
tools/llvm-exegesis/llvm-exegesis.cpp 334 outs() << "Parsed " << Points.size() << " benchmark points\n";
tools/llvm-jitlink/llvm-jitlink.cpp 782 return EntryPointPtr(EntryPointArgs.size() - 1, EntryPointArgs.data());
tools/llvm-lto/llvm-lto.cpp 844 if (Binaries.size() != InputFilenames.size())
848 for (unsigned BufID = 0; BufID < Binaries.size(); ++BufID) {
979 for (unsigned i = 0; i < KeptDSOSyms.size(); ++i)
tools/llvm-mc/Disassembler.cpp 39 ArrayRef<uint8_t> Data(Bytes.first.data(), Bytes.first.size());
45 for (Index = 0; Index < Bytes.first.size(); Index += Size) {
tools/llvm-mca/CodeRegion.cpp 36 if (Regions.size() == 1 && !Regions[0]->startLoc().isValid() &&
64 ActiveRegions[Description] = Regions.size();
83 if (ActiveRegions.empty() && Regions.size() == 1 &&
tools/llvm-mca/Views/TimelineView.cpp 61 if (Index >= Timeline.size())
137 unsigned CumulativeExecutions = PrintingTotals ? Timeline.size() : Executions;
190 unsigned Executions = Timeline.size() / Source.size();
300 const unsigned Iterations = Timeline.size() / Source.size();
tools/llvm-modextract/llvm-modextract.cpp 48 if (ModuleIndex >= Ms.size()) {
51 << Ms.size() << " module(s)\n";
tools/llvm-mt/llvm-mt.cpp 123 if (InputFiles.size() == 0) {
130 } else if (InputFiles.size() == 1) {
tools/llvm-nm/llvm-nm.cpp 1253 for (I = 0; I < SymbolList.size(); ++I) {
1471 for (unsigned J = 0; J < SymbolList.size() && !found; ++J) {
1529 for (unsigned J = 0; J < SymbolList.size() && !found; ++J) {
1589 for (J = 0; J < SymbolList.size() && !found; ++J) {
1668 for (unsigned J = 0; J < SymbolList.size() && !found; ++J) {
tools/llvm-objcopy/COFF/Object.cpp 28 SymbolMap = DenseMap<size_t, Symbol *>(Symbols.size());
72 SectionMap = DenseMap<ssize_t, Section *>(Sections.size());
tools/llvm-objcopy/COFF/Reader.cpp 167 if (*Sym.WeakTargetSymbolId >= RawSymbolTable.size())
179 if (R.Reloc.SymbolTableIndex >= RawSymbolTable.size())
tools/llvm-objcopy/COFF/Writer.cpp 100 S.Header.NumberOfRelocations = S.Relocs.size();
103 FileSize += S.Relocs.size() * sizeof(coff_relocation);
178 Obj.PeHeader.NumberOfRvaAndSize = Obj.DataDirectories.size();
182 PeHeaderSize + sizeof(data_directory) * Obj.DataDirectories.size();
191 PeHeaderSize + sizeof(data_directory) * Obj.DataDirectories.size();
374 if (Obj.DataDirectories.size() < DEBUG_DIRECTORY)
tools/llvm-objcopy/ELF/Object.cpp 98 Sec.Size = Sec.Symbols.size() * Sec.EntrySize;
106 Sec.Size = Sec.Relocations.size() * Sec.EntrySize;
468 Size = Data.size();
667 Sym.Index = Symbols.size();
705 Size = Symbols.size() * EntrySize;
745 SectionIndexTable->reserve(Symbols.size());
770 if (Symbols.size() <= Index)
tools/llvm-objcopy/ELF/Object.h 676 bool empty() const { return Symbols.size() == 1; }
1060 Ptr->Index = Sections.size();
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp 26 sizeof(MachO::section) * LC.Sections.size();
30 sizeof(MachO::section_64) * LC.Sections.size();
97 O.SymTable.Symbols.size() - (NumLocalSymbols + NumExtDefSymbols);
183 sizeof(MachO::section) * LC.Sections.size();
184 MLC.segment_command_data.nsects = LC.Sections.size();
192 sizeof(MachO::section_64) * LC.Sections.size();
193 MLC.segment_command_64_data.nsects = LC.Sections.size();
208 Sec.NReloc = Sec.Relocations.size();
234 StartOfSymbols + NListSize * O.SymTable.Symbols.size();
237 sizeof(uint32_t) * O.IndirectSymTable.Symbols.size();
267 MLC.symtab_command_data.nsyms = O.SymTable.Symbols.size();
283 O.IndirectSymTable.Symbols.size();
342 O.Header.NCmds = O.LoadCommands.size();
tools/llvm-objcopy/MachO/MachOReader.cpp 109 assert(S.NReloc == S.Relocations.size() &&
131 O.SymTabCommandIndex = O.LoadCommands.size();
134 O.DySymTabCommandIndex = O.LoadCommands.size();
138 O.DyLdInfoCommandIndex = O.LoadCommands.size();
141 O.DataInCodeCommandIndex = O.LoadCommands.size();
144 O.FunctionStartsCommandIndex = O.LoadCommands.size();
tools/llvm-objcopy/MachO/MachOWriter.cpp 30 return O.SymTable.Symbols.size() *
89 sizeof(uint32_t) * O.IndirectSymTable.Symbols.size());
239 for (size_t Index = 0; Index < Sec.Relocations.size(); ++Index) {
373 assert((DySymTabCommand.nindirectsyms == O.IndirectSymTable.Symbols.size()) &&
376 sizeof(uint32_t) * O.IndirectSymTable.Symbols.size());
tools/llvm-objcopy/MachO/Object.cpp 9 assert(Index < Symbols.size() && "invalid symbol index");
tools/llvm-objdump/MachODump.cpp 3284 for (unsigned SectIdx = 0; SectIdx != info->Sections->size(); SectIdx++) {
7429 for (unsigned SectIdx = 0; SectIdx != Sections.size(); SectIdx++) {
7498 for (unsigned SymIdx = 0; SymIdx != Symbols.size(); SymIdx++) {
7554 while (Symbols.size() > NextSymIdx) {
tools/llvm-objdump/llvm-objdump.cpp 644 if (LineInfo.Line > LineBuffer->second.size()) {
1278 for (unsigned SI = 0, SE = Symbols.size(); SI != SE; ++SI) {
tools/llvm-pdbutil/DumpOutputStyle.cpp 1406 assert(LocalHashes.size() == GlobalHashes.size());
1406 assert(LocalHashes.size() == GlobalHashes.size());
tools/llvm-pdbutil/PrettyTypeDumper.cpp 235 Shown = Filtered.size();
tools/llvm-profdata/llvm-profdata.cpp 775 if (NV > Stats.ValueSitesHistogram.size())
806 for (unsigned I = 0; I < Stats.ValueSitesHistogram.size(); I++) {
874 assert(Func.Counts.size() > 0 && "function missing entry counter");
879 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) {
912 << " Counters: " << Func.Counts.size() << "\n";
928 for (size_t I = Start, E = Func.Counts.size(); I < E; ++I) {
tools/llvm-rc/ResourceFileWriter.cpp 695 writeSingleAccelerator(Acc, AcceleratorId == Res->Accelerators.size()));
1109 RETURN_IF_ERROR(checkNumberFits<uint16_t>(Res->Controls.size(),
1125 } Middle{ulittle16_t(Res->Controls.size()), ulittle16_t(Res->X),
1402 for (size_t Id = 0; Id < Val.Values.size(); ++Id) {
1412 Id == Val.Values.size() - 1 || Val.HasPrecedingComma[Id + 1];
tools/llvm-rc/ResourceScriptParser.cpp 744 bool HadComma = Values.size() > 0 && consumeOptionalType(Kind::Comma);
tools/llvm-rc/ResourceScriptStmt.cpp 180 size_t NumValues = Values.size();
tools/llvm-rc/llvm-rc.cpp 105 if (InArgsInfo.size() != 1) {
174 if (OutArgsInfo.size() != 1)
tools/llvm-readobj/ELFDumper.cpp 2893 << "] contains " << G.Members.size() << " sections:\n"
3011 Entries = AndroidRelas.size();
3020 Entries = RelrRelas.size();
tools/llvm-reduce/deltas/Delta.cpp 119 for (int I = Chunks.size() - 1; I >= 0; --I) {
tools/llvm-reduce/deltas/ReduceArguments.cpp 53 if (I < (int)ChunksToKeep.size()) {
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp 36 if (ChunkSucessors.size() == Term->getNumSuccessors())
56 IndirectBrInst::Create(Address, ChunkSucessors.size(), &BB);
90 if (I < (int)ChunksToKeep.size()) {
tools/llvm-reduce/deltas/ReduceFunctions.cpp 30 if (I < (int)ChunksToKeep.size()) {
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp 26 if (GV.hasInitializer() && I < (int)ChunksToKeep.size()) {
tools/llvm-reduce/deltas/ReduceInstructions.cpp 28 if (I < (int)ChunksToKeep.size()) {
tools/llvm-reduce/deltas/ReduceMetadata.cpp 32 if (I < (int)ChunksToKeep.size()) {
87 if (I < (int)ChunksToKeep.size()) {
tools/llvm-rtdyld/llvm-rtdyld.cpp 576 Result = Main(Argv.size() - 1, Argv.data());
tools/llvm-stress/llvm-stress.cpp 205 assert(PT->size());
206 return PT->at(getRandom() % PT->size());
225 for (unsigned i=0; i<PT->size(); ++i) {
226 Value *V = PT->at((index + i) % PT->size());
258 for (unsigned i=0; i<PT->size(); ++i) {
259 Value *V = PT->at((index + i) % PT->size());
269 for (unsigned i=0; i<PT->size(); ++i) {
270 Value *V = PT->at((index + i) % PT->size());
323 return ScalarTypes[getRandom() % ScalarTypes.size()];
700 for (unsigned i = 0; i < SizeCL / Modifiers.size(); ++i)
tools/llvm-xray/xray-account.cpp 243 R.Count = Timings.size();
245 auto MedianOff = Timings.size() / 2;
249 auto Pct90Off = std::floor(Timings.size() * 0.9);
253 auto Pct99Off = std::floor(Timings.size() * 0.99);
278 Results.emplace_back(FuncId, Timings.size(), getStats(Timings));
326 std::min(AccountTop.getValue(), static_cast<int>(Results.size()));
459 auto Level = ThreadStack.second.size();
tools/lto/lto.cpp 511 return unwrap(cg)->getProducedBinaries().size();
515 assert(index < unwrap(cg)->getProducedBinaries().size() && "Index overflow");
522 return unwrap(cg)->getProducedBinaryFiles().size();
526 assert(index < unwrap(cg)->getProducedBinaryFiles().size() &&
547 cl::ParseCommandLineOptions(CodegenArgv.size(), CodegenArgv.data());
tools/obj2yaml/dwarf2yaml.cpp 175 NewValue.Value = NewValue.BlockData.size();
tools/opt/PrintSCC.cpp 82 if (nextSCC.size() == 1 && SCCI.hasLoop())
104 if (nextSCC.size() == 1 && SCCI.hasLoop())
tools/polly/lib/Analysis/ScopBuilder.cpp 1704 if (Sizes.size() == 1)
tools/polly/lib/Analysis/ScopInfo.cpp 1913 getIslCtx(), ParameterIds.size() + FortranIDs.size());
tools/polly/lib/CodeGen/BlockGenerators.cpp 1289 int VectorBlockGenerator::getVectorWidth() { return VLTS.size(); }
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 393 std::vector<LoopToScevMapT> VLTS(IVS.size());
tools/polly/lib/CodeGen/PerfMonitor.cpp 53 ArrayType *Ty = ArrayType::get(ST, V.size());
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp 187 auto T = ArrayType::get(Builder.getInt32Ty(), ToPrint.size() * 2);
tools/sancov/sancov.cpp 981 CoverageStats Stats = {Coverage.Points.size(), Coverage.CoveredIds.size(),
1022 for (size_t I = 0; I < Coverages.size(); ++I) {
1025 if (Coverages.size() > 1) {
1041 if (Coverages.size() == 1) {
tools/verify-uselistorder/verify-uselistorder.cpp 244 IDs[V] = Values.size();
249 dbgs() << "value-mapping (size = " << VM.Values.size() << "):\n";
250 for (unsigned I = 0, E = VM.Values.size(); I != E; ++I) {
280 dbgs() << " - fail: map size: " << L.Values.size()
281 << " != " << R.Values.size() << "\n";
291 if (LM.Values.size() != RM.Values.size()) {
291 if (LM.Values.size() != RM.Values.size()) {
309 for (unsigned I = 0, E = LM.Values.size(); I != E; ++I) {
unittests/ADT/FallibleIteratorTest.cpp 51 assert(Idx != C.size() && "Walking off end of (mock) collection");
unittests/ADT/HashingTest.cpp 176 for (unsigned Idx = 1, Size = all_one_c.size(); Idx < Size; ++Idx) {
184 for (unsigned Idx = 1, Size = all_zero_c.size(); Idx < Size; ++Idx) {
192 for (unsigned Idx = 1, Size = all_one_int.size(); Idx < Size; ++Idx) {
200 for (unsigned Idx = 1, Size = all_zero_int.size(); Idx < Size; ++Idx) {
unittests/ADT/IteratorTest.cpp 346 EXPECT_EQ(iters, expected.size());
360 EXPECT_EQ(iters, expected.size());
unittests/ADT/SCCIteratorTest.cpp 56 for (unsigned i = 0, e = SCC.size(); i != e; ++i)
unittests/ADT/STLExtrasTest.cpp 52 ASSERT_EQ(3u, CharResults.size());
64 ASSERT_EQ(3u, IntResults.size());
102 ASSERT_EQ(3u, Results.size());
120 ASSERT_EQ(3u, Results.size());
269 for (size_t I = 0; I < v.size(); ++I) {
321 EXPECT_EQ(4u, V.size());
unittests/ADT/StringExtrasTest.cpp 69 OddBytes.size());
77 EvenBytes.size());
unittests/Analysis/DomTreeUpdaterTest.cpp 384 ASSERT_EQ(BasicBlocks.size(), static_cast<size_t>(2));
426 ASSERT_EQ(BasicBlocks.size(), static_cast<size_t>(2));
428 ASSERT_EQ(BasicBlocks.size(), static_cast<size_t>(0));
unittests/Analysis/LazyCallGraphTest.cpp 328 EXPECT_EQ(3u, Nodes.size());
344 EXPECT_EQ(3u, Nodes.size());
360 EXPECT_EQ(3u, Nodes.size());
378 EXPECT_EQ(3u, Nodes.size());
482 EXPECT_EQ(3u, Nodes.size());
492 EXPECT_EQ(3u, Nodes.size());
502 EXPECT_EQ(3u, Nodes.size());
512 EXPECT_EQ(3u, Nodes.size());
unittests/AsmParser/AsmParserTest.cpp 58 ASSERT_EQ(Mapping.GlobalValues.size(), 1u);
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp 77 assert(Indices.size() == RawRecords.size());
77 assert(Indices.size() == RawRecords.size());
78 assert(Indices.size() == VisitedRecords.size());
78 assert(Indices.size() == VisitedRecords.size());
79 return Indices.size();
207 GlobalState->TypeVector.size(),
239 GlobalState->TypeVector.size(),
268 GlobalState->TypeVector.size(),
298 GlobalState->TypeVector.size(),
328 GlobalState->TypeVector.size(),
388 TIO.size() * sizeof(TypeIndexOffset));
unittests/DebugInfo/CodeView/TypeIndexDiscoveryTest.cpp 61 ASSERT_EQ(1u, Records.size());
74 ASSERT_EQ(sizeof...(T), Symbols.size());
132 Refs.resize(Symbols.size());
133 for (uint32_t I = 0; I < Symbols.size(); ++I)
unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp 197 ASSERT_EQ(Prologue.IncludeDirectories.size(), 1u);
200 ASSERT_EQ(Prologue.FileNames.size(), 1u);
264 EXPECT_EQ(Expected->Sequences.size(), 1u);
275 EXPECT_EQ(Expected2->Sequences.size(), 2u);
479 EXPECT_EQ((*ExpectedLineTable)->Rows.size(), 6u);
481 EXPECT_EQ((*ExpectedLineTable)->Sequences.size(), 1u);
496 EXPECT_EQ(Parsed.Sequences.size(), 1u);
503 EXPECT_EQ(Parsed2.Sequences.size(), 1u);
unittests/DebugInfo/DWARF/DwarfGenerator.cpp 339 Asm.EmitULEB128(Prologue.IncludeDirectories.size());
348 Asm.EmitULEB128(Prologue.FileNames.size());
unittests/DebugInfo/GSYM/GSYMTest.cpp 419 ASSERT_EQ(InlineInfos->size(), 1u);
423 ASSERT_EQ(InlineInfos->size(), 1u);
430 ASSERT_EQ(InlineInfos->size(), 2u);
435 ASSERT_EQ(InlineInfos->size(), 2u);
443 ASSERT_EQ(InlineInfos->size(), 2u);
448 ASSERT_EQ(InlineInfos->size(), 2u);
unittests/DebugInfo/MSF/MSFBuilderTest.cpp 88 uint32_t NumBlocks = msf::getMinimumBlockCount() + Blocks.size() + 10;
93 EXPECT_THAT_EXPECTED(Msf.addStream(Blocks.size() * 4096, Blocks),
190 EXPECT_EQ(1U, OldStreamBlocks.size());
195 EXPECT_EQ(2U, NewStreamBlocks.size());
211 EXPECT_EQ(1U, OldStreamBlocks.size());
216 EXPECT_EQ(1U, NewStreamBlocks.size());
232 EXPECT_EQ(2U, OldStreamBlocks.size());
237 EXPECT_EQ(1U, NewStreamBlocks.size());
299 EXPECT_EQ(3U, L.StreamMap.size());
unittests/DebugInfo/MSF/MSFCommonTest.cpp 107 EXPECT_EQ(1u, SL.Blocks.size());
112 EXPECT_EQ(1u, SL.Blocks.size());
119 EXPECT_EQ(2u, SL.Blocks.size());
125 EXPECT_EQ(2u, SL.Blocks.size());
135 EXPECT_EQ(9u, SL.Blocks.size());
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp 35 uint32_t block_count() const { return Blocks.size(); }
81 EXPECT_EQ(F.layout().Blocks.size(), S->getNumBlocks());
522 EXPECT_EQ(1u, FpmStream->getStreamLayout().Blocks.size());
531 ::memset(MsfBuffer.data(), 0, MsfBuffer.size());
537 EXPECT_EQ(1u, FpmStream->getStreamLayout().Blocks.size());
unittests/DebugInfo/PDB/HashTableTest.cpp 153 EXPECT_EQ(Buffer.size(), Writer.getOffset());
159 EXPECT_EQ(Buffer.size(), Reader.getOffset());
172 for (uint32_t I = 0; I < Streams.size(); ++I)
182 EXPECT_EQ(Streams.size(), NSM.size());
227 if (N >= Buffer.size())
234 uint32_t N = Buffer.size();
257 EXPECT_EQ(Buffer.size(), Writer.getOffset());
263 EXPECT_EQ(Buffer.size(), Reader.getOffset());
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp 289 EXPECT_EQ(UnresolvedExternals.size(), 2u);
unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp 140 EXPECT_EQ(RPCObjContents.size(), ObjContents.size())
unittests/FuzzMutate/ReservoirSamplerTest.cpp 37 std::vector<int> Counts(Items.size(), 0);
41 int N = Items.size() * 5 * 100;
49 double Ps = 1.0 / Items.size();
55 assert(Items.size() == 10 && "Our chi-squared values assume 10 items");
unittests/IR/CFGBuilder.cpp 130 if (UpdateIdx == Updates.size())
136 if (UpdateIdx == Updates.size())
191 const size_t NumUpdates = Updates.size();
220 const size_t NumUpdates = Updates.size();
256 const size_t NumUpdates = Updates.size();
unittests/IR/DominatorTreeBatchUpdatesTest.cpp 37 Res.reserve(In.size());
unittests/LineEditor/LineEditor.cpp 69 ASSERT_EQ(2u, CA.Completions.size());
unittests/Object/MinidumpTest.cpp 284 EXPECT_THAT_EXPECTED(File.getString(ManyStrings.size() - 2),
unittests/Object/SymbolSizeTest.cpp 29 for (unsigned I = 0, N = Syms.size(); I < N - 1; ++I) {
unittests/ObjectYAML/YAML2ObjTest.cpp 65 ASSERT_TRUE(Errors.size() == 2);
78 ASSERT_TRUE(Errors.size() == 2);
unittests/Option/OptionParsingTest.cpp 190 EXPECT_EQ(0U, AL.getAllArgValues(OPT_Slurp).size());
203 EXPECT_EQ(3U, AL.getAllArgValues(OPT_Slurp).size());
217 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined).size(), 0U);
228 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined).size(), 1U);
240 EXPECT_EQ(3U, AL.getAllArgValues(OPT_SlurpJoined).size());
254 EXPECT_EQ(3U, AL.getAllArgValues(OPT_SlurpJoined).size());
269 EXPECT_EQ(1U, AL.getAllArgValues(OPT_B).size());
unittests/Passes/PluginsTest.cpp 32 const char *Argv0 = Argvs.size() > 0 ? Argvs[0].c_str() : "PluginsTests";
unittests/ProfileData/CoverageMappingTest.cpp 213 OutputFunctions.resize(InputFunctions.size());
214 for (unsigned I = 0; I < InputFunctions.size(); ++I) {
267 ASSERT_EQ(1u, InputFunctions.size());
268 ASSERT_EQ(1u, OutputFunctions.size());
273 ASSERT_EQ(N, Output.Regions.size());
294 ASSERT_EQ(1u, OutputFunctions.size());
297 ASSERT_EQ(N, Output.Regions.size());
298 ASSERT_EQ(N, Output.Filenames.size());
355 ASSERT_EQ(2U, Segments.size());
383 ASSERT_EQ(2U, Segments.size());
401 ASSERT_EQ(3U, Segments.size());
457 ASSERT_EQ(8U, Segments.size());
485 ASSERT_EQ(7U, Segments.size());
510 ASSERT_EQ(5U, Segments.size());
535 ASSERT_EQ(5U, Segments.size());
562 ASSERT_EQ(1U, Segments.size());
585 ASSERT_EQ(10U, Segments.size());
616 ASSERT_EQ(8U, Segments.size());
635 ASSERT_EQ(1u, OutputFunctions.size());
655 ASSERT_EQ(7U, Segments.size());
695 ASSERT_EQ(2U, Segments.size());
708 ASSERT_EQ(3U, Segments.size());
725 ASSERT_EQ(4U, Segments.size());
743 ASSERT_EQ(4U, Segments.size());
765 ASSERT_EQ(4U, Segments.size());
787 ASSERT_EQ(4U, Segments.size());
804 ASSERT_EQ(1U, Names.size());
818 ASSERT_EQ(1U, Names.size());
853 ASSERT_EQ(2U, Segments.size());
unittests/ProfileData/InstrProfTest.cpp 82 ASSERT_EQ(4U, I->Counts.size());
98 ASSERT_EQ(2U, R->Counts.size());
104 ASSERT_EQ(2U, R->Counts.size());
124 ASSERT_EQ(2U, Counts.size());
130 ASSERT_EQ(2U, Counts.size());
214 ASSERT_EQ(1U, R->Counts.size());
219 ASSERT_EQ(2U, R->Counts.size());
816 ASSERT_EQ(2U, Counts.size());
822 ASSERT_EQ(2U, Counts.size());
1007 ASSERT_EQ(4u, Counts.size());
1017 ASSERT_EQ(3u, Counts.size());
unittests/Support/AlignmentTest.cpp 234 for (size_t I = 1; I < ValidAlignments.size(); ++I) {
unittests/Support/BinaryStreamTest.cpp 134 BrokenInputData.resize(InputData.size());
136 uint32_t PartitionIndex = alignDown(InputData.size() / 2, Align);
137 uint32_t RightBytes = InputData.size() - PartitionIndex;
204 ASSERT_EQ(InputData.size(), Stream.Input->getLength());
224 ASSERT_EQ(InputData.size(), Ref.getLength());
324 ASSERT_EQ(InputData.size(), Original.getLength());
326 EXPECT_THAT_ERROR(Original.readBytes(0, InputData.size(), Result),
360 initializeOutput(InputData.size(), 1);
364 ASSERT_EQ(InputData.size(), Stream.Input->getLength());
418 Ints.size() * sizeof(uint32_t));
423 ASSERT_EQ(InputData.size(), Stream.Input->getLength());
440 Pairs.size() * sizeof(Pairs[0]));
445 ASSERT_EQ(InputData.size(), Stream.Input->getLength());
517 EXPECT_EQ(Bytes.size(), Reader.bytesRemaining());
570 Ints.size() * sizeof(int));
576 ASSERT_THAT_ERROR(Reader.readArray(IntsRef, Ints.size()), Succeeded());
582 ASSERT_THAT_ERROR(Reader.readArray(FixedIntsRef, Ints.size()), Succeeded());
593 initializeOutput(Enums.size() * sizeof(MyEnum), alignof(MyEnum));
604 for (size_t I = 0; I < Enums.size(); ++I) {
626 initializeOutput(10 * TestValues.size(), 1);
638 Results.resize(TestValues.size());
639 for (unsigned I = 0; I != TestValues.size(); ++I)
642 for (unsigned I = 0; I != TestValues.size(); ++I)
663 initializeOutput(10 * TestValues.size(), 1);
675 Results.resize(TestValues.size());
676 for (unsigned I = 0; I != TestValues.size(); ++I)
679 for (unsigned I = 0; I != TestValues.size(); ++I)
788 SourceInts.size() * sizeof(int));
799 ASSERT_THAT_ERROR(Reader.readArray(Ints, SourceInts.size()), Succeeded());
803 ASSERT_THAT_ERROR(ReaderBacker.readArray(Ints2, SourceInts.size()),
unittests/Support/ConvertUTFTest.cpp 159 Decoded.data() + Decoded.size(), lenientConversion);
176 Decoded.data() + Decoded.size(), lenientConversion);
unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp 25 Argvs.size() > 0 ? Argvs[0].c_str() : "DynamicLibraryTests";
162 EXPECT_EQ(Order.size(), 2UL);
unittests/Support/FormatVariadicTest.cpp 40 EXPECT_EQ(0U, Replacements.size());
46 ASSERT_EQ(1U, Replacements.size());
54 ASSERT_EQ(1u, Replacements.size());
60 ASSERT_EQ(1u, Replacements.size());
68 ASSERT_EQ(1u, Replacements.size());
75 ASSERT_EQ(1u, Replacements.size());
84 ASSERT_EQ(1u, Replacements.size());
93 ASSERT_EQ(1u, Replacements.size());
102 ASSERT_EQ(1u, Replacements.size());
111 ASSERT_EQ(1u, Replacements.size());
120 ASSERT_EQ(1u, Replacements.size());
129 ASSERT_EQ(1u, Replacements.size());
139 ASSERT_EQ(1u, Replacements.size());
149 ASSERT_EQ(1u, Replacements.size());
160 ASSERT_EQ(1u, Replacements.size());
170 ASSERT_EQ(1u, Replacements.size());
180 ASSERT_EQ(1u, Replacements.size());
190 ASSERT_EQ(1u, Replacements.size());
203 ASSERT_EQ(1u, Replacements.size());
211 ASSERT_EQ(1u, Replacements.size());
219 ASSERT_EQ(1u, Replacements.size());
231 ASSERT_EQ(5u, Replacements.size());
unittests/Support/Path.cpp 1462 int Result = ::read(FD, Buffer.data(), Buffer.size());
1465 ASSERT_EQ(Data, StringRef(Buffer.data(), Buffer.size()));
unittests/Support/TarWriterTest.cpp 71 EXPECT_TRUE(Buf.size() >= sizeof(UstarHeader));
113 EXPECT_TRUE(Buf.size() >= 1024);
unittests/Support/TargetParserTest.cpp 599 EXPECT_TRUE(Extensions.size() == Features.size());
606 EXPECT_TRUE(Extensions.size() == Features.size());
1094 EXPECT_TRUE(!Features.size());
1097 EXPECT_TRUE(Extensions.size() == Features.size());
1097 EXPECT_TRUE(Extensions.size() == Features.size());
unittests/Support/VirtualFileSystemTest.cpp 620 EXPECT_EQ(4U, Contents.size());
669 EXPECT_EQ(7U, Contents.size());
695 EXPECT_EQ(4U, Contents.size());
unittests/Support/YAMLIOTest.cpp 116 EXPECT_EQ(seq.size(), 2UL);
135 EXPECT_EQ(cont.fbs.size(), 2UL);
148 EXPECT_EQ(cont.fbs.size(), 0UL);
157 EXPECT_EQ(cont.fbs.size(), 0UL);
166 EXPECT_EQ(cont.fbs.size(), 0UL);
175 EXPECT_EQ(cont.fbs.size(), 0UL);
190 EXPECT_EQ(cont.fbs.size(), 0UL);
199 EXPECT_EQ(cont.fbs.size(), 0UL);
230 EXPECT_EQ(seq2.size(), 2UL);
1181 EXPECT_EQ(documents2.size(), size_t(1));
1324 EXPECT_EQ(map2.strings.size(), 2UL);
1327 EXPECT_EQ(map2.single.size(), 1UL);
1329 EXPECT_EQ(map2.numbers.size(), 3UL);
1371 EXPECT_EQ(map2.sequenceOfNumbers.size(), 3UL);
1372 EXPECT_EQ(map2.sequenceOfNumbers[0].size(), 1UL);
1374 EXPECT_EQ(map2.sequenceOfNumbers[1].size(), 3UL);
1438 EXPECT_EQ(seq.size(), 2UL);
1465 EXPECT_EQ(seq2.size(), 3UL);
1560 EXPECT_EQ(seq.size(), 2UL);
1590 EXPECT_EQ(seq2.size(), 5UL);
1674 EXPECT_EQ(docList2.size(), 2UL);
1732 EXPECT_EQ(docList.size(), 2UL);
1762 EXPECT_EQ(docList2.size(), 2UL);
1884 EXPECT_EQ(doc2.seq.size(), 3UL);
2331 EXPECT_EQ(4UL, Seq2.Tests.size());
2921 static size_t size(IO &IO, Seq &A) { return A.size(); }
2924 if (Index >= A.size())
2966 ASSERT_EQ(seq->size(), 2u);
unittests/TableGen/CodeExpanderTest.cpp 38 EXPECT_EQ(Received.size(), Expected.size());
38 EXPECT_EQ(Received.size(), Expected.size());
39 for (unsigned i = 0; i < Received.size() && i < Expected.size(); ++i) {
39 for (unsigned i = 0; i < Received.size() && i < Expected.size(); ++i) {
unittests/TextAPI/ELFYAMLTest.cpp 50 EXPECT_EQ(Stub->NeededLibs.size(), 3u);
unittests/TextAPI/TextStubV1Tests.cpp 107 EXPECT_EQ(1U, File->allowableClients().size());
109 EXPECT_EQ(1U, File->reexportedLibraries().size());
122 EXPECT_EQ(sizeof(TBDv1Symbols) / sizeof(ExportedSymbol), Exports.size());
158 EXPECT_EQ(0U, File->allowableClients().size());
159 EXPECT_EQ(0U, File->reexportedLibraries().size());
unittests/TextAPI/TextStubV2Tests.cpp 109 EXPECT_EQ(1U, File->allowableClients().size());
111 EXPECT_EQ(1U, File->reexportedLibraries().size());
124 EXPECT_EQ(sizeof(TBDv2Symbols) / sizeof(ExportedSymbol), Exports.size());
178 EXPECT_EQ(0U, File->allowableClients().size());
179 EXPECT_EQ(0U, File->reexportedLibraries().size());
unittests/TextAPI/TextStubV3Tests.cpp 118 EXPECT_EQ(1U, File->allowableClients().size());
120 EXPECT_EQ(1U, File->reexportedLibraries().size());
133 EXPECT_EQ(sizeof(TBDv3Symbols) / sizeof(ExportedSymbol), Exports.size());
unittests/TextAPI/TextStubV4Tests.cpp 139 EXPECT_EQ(1U, File->allowableClients().size());
141 EXPECT_EQ(1U, File->reexportedLibraries().size());
161 Exports.size());
163 Reexports.size());
165 Undefineds.size());
unittests/Transforms/Utils/CloningTest.cpp 435 EXPECT_EQ(NewLoop->getSubLoops().size(), 1u);
unittests/XRay/FDRRecordsTest.cpp 71 ASSERT_THAT(T1Blocks->second.size(), Eq(2u));
74 ASSERT_THAT(T2Blocks->second.size(), Eq(1u));
unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp 112 ASSERT_EQ(FromDiskVector.size(), size_t{1});
usr/include/c++/7.4.0/bits/random.h 5983 { return _M_v.size(); }
usr/include/c++/7.4.0/bits/random.tcc 2646 if (_M_prob.size() < 2)
2658 _M_cp.reserve(_M_prob.size());
2662 _M_cp[_M_cp.size() - 1] = 1.0;
2749 __os << __prob.size();
2811 _M_cp.reserve(_M_den.size());
2816 _M_cp[_M_cp.size() - 1] = 1.0;
2818 for (size_t __k = 0; __k < _M_den.size(); ++__k)
3050 _M_cp[_M_cp.size() - 1] = 1.0;
3260 const size_t __s = _M_v.size();
usr/include/c++/7.4.0/bits/regex.h 265 __fctyp.tolower(__s.data(), __s.data() + __s.size());
266 return this->transform(__s.data(), __s.data() + __s.size());
1665 { return _Base_type::empty() ? 0 : _Base_type::size() - 3; }
1922 { return _Base_type::operator[](_Base_type::size() - 3); }
1934 { return _Base_type::operator[](_Base_type::size() - 2); }
1942 { return _Base_type::operator[](_Base_type::size() - 1); }
usr/include/c++/7.4.0/bits/regex.tcc 613 else if (_M_n + 1 < _M_subs.size())
usr/include/c++/7.4.0/bits/regex_automaton.h 330 if (this->size() > _GLIBCXX_REGEX_STATE_LIMIT)
336 return this->size() - 1;
usr/include/c++/7.4.0/bits/regex_executor.h 79 _M_rep_count(_M_nfa.size()),
80 _M_states(_M_nfa._M_start(), _M_nfa.size()),
usr/include/c++/7.4.0/bits/regex_executor.tcc 125 std::fill_n(_M_states._M_visited_states.get(), _M_nfa.size(), false);
158 for (size_t __i = 0; __i < __what.size(); __i++)
usr/include/c++/7.4.0/bits/stl_queue.h 573 { return c.size(); }
usr/include/c++/7.4.0/bits/stl_stack.h 191 { return c.size(); }
usr/include/c++/7.4.0/bits/stl_vector.h 327 : _Base(__x.size(),
691 if (__new_size > size())
692 _M_default_append(__new_size - size());
693 else if (__new_size < size())
711 if (__new_size > size())
712 _M_fill_insert(end(), __new_size - size(), __x);
713 else if (__new_size < size())
824 if (__n >= this->size())
828 __n, this->size());
1504 if (max_size() - size() < __n)
1507 const size_type __len = size() + std::max(size(), __n);
1507 const size_type __len = size() + std::max(size(), __n);
1508 return (__len < size() || __len > max_size()) ? max_size() : __len;
1602 { return (__x.size() == __y.size()
1602 { return (__x.size() == __y.size()
usr/include/c++/7.4.0/bits/vector.tcc 72 const size_type __old_size = size();
203 const size_type __xlen = __x.size();
216 else if (size() >= __xlen)
223 std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(),
225 std::__uninitialized_copy_a(__x._M_impl._M_start + size(),
245 else if (__n > size())
250 __n - size(), __val,
296 else if (size() >= __len)
301 std::advance(__mid, size());
570 const size_type __size = this->size();
607 if (capacity() == size())
utils/PerfectShuffle/PerfectShuffle.cpp 302 for (unsigned opnum = 0, e = TheOperators.size(); opnum != e; ++opnum) {
utils/TableGen/AsmMatcherEmitter.cpp 1535 for (unsigned i = 0, e = AllInstAliases.size(); i != e; ++i) {
1739 for (unsigned i = 0, e = CGA.ResultOperands.size(); i != e; ++i)
1821 unsigned LastOpNo = CGA.ResultInstOperandIndex.size();
2309 for (unsigned Row = 0, ERow = ConversionTable.size(); Row != ERow; ++Row) {
2310 assert(ConversionTable[Row].size() % 2 == 0 && "bad conversion row!");
2313 for (unsigned i = 0, e = ConversionTable[Row].size(); i != e; i += 2) {
2344 return ConversionTable.size();
2546 if (SuperClasses.size() == 1) {
2703 for (unsigned i = 0, e = ReqFeatures.size(); i != e; ++i) {
2749 for (unsigned i = 0, e = ToVec.size(); i != e; ++i) {
2873 << Info.OperandMatchInfo.size() << "] = {\n";
3346 if (A.size() < B.size())
3346 if (A.size() < B.size())
3348 if (A.size() > B.size())
3348 if (A.size() > B.size())
3362 << "enum : " << getMinimalTypeForRange(FeatureBitsets.size()) << " {\n"
3402 OS << " " << getMinimalTypeForRange(FeatureBitsets.size())
3899 MaxMnemonicIndex, FeatureBitsets.size(),
utils/TableGen/AsmWriterEmitter.cpp 89 for (unsigned i = OpsToPrint.size(); i != 0; --i)
109 for (unsigned i = Insts.size(); i != 0; --i) {
129 for (unsigned i = 0, e = FirstInst.Operands.size(); i != e; ++i) {
167 InstrsForCase.resize(UniqueOperandCommands.size());
168 InstOpsUsed.assign(UniqueOperandCommands.size(), 0);
170 for (size_t i = 0, e = Instructions.size(); i != e; ++i) {
199 for (size_t CommandIdx = 0, e = UniqueOperandCommands.size();
209 if (FirstInst.Operands.size() == Op)
217 return OtherInst.Operands.size() == Op ||
233 for (unsigned i = 0, e = InstrsForCase.size(); i != e; ++i) {
349 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size());
359 for (size_t i = 0, e = InstIdxs.size(); i != e; ++i) {
367 assert(NumOps <= Inst.Operands.size() &&
429 for (unsigned i = 0, e = TableDrivenOperandPrinters.size(); i != e; ++i) {
434 unsigned NumBits = Log2_32_Ceil(Commands.size());
439 << " bits for " << Commands.size() << " unique commands.\n";
441 if (Commands.size() == 2) {
450 } else if (Commands.size() == 1) {
460 for (unsigned j = 0, e = Commands.size(); j != e; ++j) {
518 for (e = AltNameList.size();
527 if (AltNames.size() <= Idx)
558 bool hasAltNames = AltNameIndices.size() > 1;
723 if (Conds.size() != RHS.Conds.size())
723 if (Conds.size() != RHS.Conds.size())
804 unsigned LastOpNo = CGA.ResultInstOperandIndex.size();
880 if (static_cast<unsigned>(PrintMethodIdx) == PrintMethods.size())
912 Entry = MCOpPredicates.size();
1099 for (unsigned i = 0; i < PrintMethods.size(); ++i) {
1119 for (unsigned i = 0; i < MCOpPredicates.size(); ++i) {
utils/TableGen/AsmWriterInst.cpp 196 if (Operands.size() != Other.Operands.size()) return ~1;
196 if (Operands.size() != Other.Operands.size()) return ~1;
199 for (unsigned i = 0, e = Operands.size(); i != e; ++i) {
utils/TableGen/CodeEmitterGen.cpp 505 for (int i = 0, N = InstList.size(); i < N; i++) {
562 if (A.size() < B.size())
562 if (A.size() < B.size())
564 if (A.size() > B.size())
564 if (A.size() > B.size())
579 << "enum : " << getMinimalTypeForRange(FeatureBitsets.size()) << " {\n"
609 << " static " << getMinimalTypeForRange(FeatureBitsets.size())
utils/TableGen/CodeGenDAGPatterns.cpp 1650 for (unsigned i = 0, e = Types.size(); i != e; ++i)
1749 return CDP.getIntrinsic(Operator).IS.RetVTs.size();
1820 for (unsigned i = 0, e = Types.size(); i != e; ++i) {
1897 CChildren.reserve(Children.size());
1992 Idxs.resize(ChildAlternatives.size());
1997 for (unsigned i = 0, e = ChildAlternatives.size(); i != e; ++i)
2019 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) {
2020 if (++Idxs[IdxsIdx] == ChildAlternatives[IdxsIdx].size())
2036 if (Frag->getNumArgs() != Children.size()) {
2340 for (unsigned i = 0, e = Types.size(); i != e; ++i)
2348 assert(Types.size() == 1 && "Invalid IntInit");
2386 unsigned NumRetVTs = Int->IS.RetVTs.size();
2387 unsigned NumParamVTs = Int->IS.ParamVTs.size();
2847 for (unsigned i = 0; i < Children.size(); ++i) {
2991 for (unsigned i = 1, e = Args.size(); i != e; ++i)
2997 if (Trees.size() > 1)
3005 if (Trees.size() > 1)
3198 for (unsigned i = 0, e = DefaultOps.size(); i != e; ++i) {
4366 Idxs.resize(ChildVariants.size());
4380 for (unsigned i = 0, e = ChildVariants.size(); i != e; ++i)
4409 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) {
4410 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size())
4481 if (MaximalChildren.size() == 3) {
4591 const unsigned NumOriginalPatterns = PatternsToMatch.size();
4612 if (Variants.size() == 1) // No additional variants for this pattern.
4649 for (unsigned v = 0, e = Variants.size(); v != e; ++v) {
4658 for (unsigned p = 0, e = PatternsToMatch.size(); p != e; ++p) {
utils/TableGen/CodeGenDAGPatterns.h 698 unsigned getNumTypes() const { return Types.size(); }
719 unsigned getNumResults() const { return ResultPerm.size(); }
726 unsigned getNumChildren() const { return Children.size(); }
735 for (unsigned i = 0, e = Children.size(); i != e; ++i)
917 unsigned getNumTrees() const { return Trees.size(); }
921 assert(Trees.size() == 1 && "Doesn't have exactly one pattern!");
936 unsigned getNumArgs() const { return Args.size(); }
938 assert(i < Args.size() && "Argument reference out of range!");
952 for (unsigned i = 0, e = Copy.size(); i != e; ++i)
1031 unsigned getNumResults() const { return Results.size(); }
1032 unsigned getNumOperands() const { return Operands.size(); }
1033 unsigned getNumImpResults() const { return ImpResults.size(); }
1037 assert(RN < Results.size());
1042 assert(ON < Operands.size());
1047 assert(RN < ImpResults.size());
1327 for (unsigned i = 0, e = TypeConstraints.size(); i != e; ++i)
utils/TableGen/CodeGenHwModes.cpp 34 if (Modes.size() != Objects.size()) {
34 if (Modes.size() != Objects.size()) {
40 for (unsigned i = 0, e = Modes.size(); i != e; ++i) {
67 unsigned NewId = Modes.size();
utils/TableGen/CodeGenHwModes.h 52 unsigned getNumModeIds() const { return Modes.size()+1; }
utils/TableGen/CodeGenInstruction.cpp 165 for (unsigned i = 0, e = OperandList.size(); i != e; ++i)
454 if (RegVTs.size() == 1 && RegVTs[0].isSimple())
utils/TableGen/CodeGenInstruction.h 128 for (unsigned j = 0, e = Constraints.size(); j != e; ++j) {
156 unsigned size() const { return OperandList.size(); }
196 assert(i < OperandList.size() && "Invalid flat operand #");
utils/TableGen/CodeGenIntrinsics.h 183 size_t size() const { return Intrinsics.size(); }
utils/TableGen/CodeGenMapTable.cpp 293 unsigned NumOfCols = ValueCols.size();
331 for (unsigned i = 0, e = RelatedInstrVec.size(); i < e; i++) {
376 unsigned NumCol = ValueCols.size();
453 if (ValueCols.size() > 1) {
454 for (unsigned i = 0, e = ValueCols.size(); i < e; i++) {
490 if (ValueCols.size() > 1) {
544 for (unsigned i = 0; i < FieldValues.size() - 1; i++) {
546 for (unsigned j = i+1; j < FieldValues.size(); j++) {
556 for (unsigned i = 0, endFV = FieldValues.size(); i < endFV; i++) {
utils/TableGen/CodeGenRegisters.cpp 82 if (Comps.size() != 2)
95 if (Parts.size() < 2)
172 if (SRIs.size() != SRs.size())
172 if (SRIs.size() != SRs.size())
176 for (unsigned i = 0, e = SRIs.size(); i != e; ++i) {
482 for (unsigned i = 0, e = Leads.size(); i != e; ++i) {
620 unsigned Dim = Indices.size();
662 if (RegNames.size() <= n)
748 for (unsigned i = 0, e = TypeList.size(); i != e; ++i) {
765 for (unsigned i = 0, e = Elements->size(); i != e; ++i) {
854 Orders.resize(Super.Orders.size());
855 for (unsigned i = 0, ie = Super.Orders.size(); i != ie; ++i)
922 if (A->getMembers().size() > B->getMembers().size())
922 if (A->getMembers().size() > B->getMembers().size())
924 if (A->getMembers().size() < B->getMembers().size())
924 if (A->getMembers().size() < B->getMembers().size())
995 return A->getMembers().size() > B->getMembers().size();
995 return A->getMembers().size() > B->getMembers().size();
1054 if (SuperRegRC->getMembers().size() >= SubRegRC->getMembers().size())
1054 if (SuperRegRC->getMembers().size() >= SubRegRC->getMembers().size())
1107 for (unsigned i = 0, e = SRIs.size(); i != e; ++i)
1117 for (unsigned i = 0, e = Regs.size(); i != e; ++i)
1831 for (unsigned SubIdx = 0, EndIdx = RegUnitSets.size();
1842 && (SubSet.Units.size() + 3 > SuperSet.Units.size())
1842 && (SubSet.Units.size() + 3 > SuperSet.Units.size())
1860 std::vector<RegUnitSet> PrunedUnitSets(SuperSetIDs.size());
1861 for (unsigned i = 0, e = SuperSetIDs.size(); i != e; ++i) {
1886 RegUnitSets.resize(RegUnitSets.size() + 1);
1900 USEnd = RegUnitSets.size();
1912 USEnd = RegUnitSets.size();
1921 unsigned NumRegUnitSubSets = RegUnitSets.size();
1922 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) {
1941 RegUnitSets.resize(RegUnitSets.size() + 1);
1958 LLVM_DEBUG(dbgs() << "UnitSet " << RegUnitSets.size() - 1 << " "
1971 dbgs() << "\n"; for (unsigned USIdx = 0, USEnd = RegUnitSets.size();
2001 for (unsigned USIdx = 0, USEnd = RegUnitSets.size();
2019 for (unsigned i = 0, e = RegUnitSets.size(); i != e; ++i) {
2026 for (unsigned e = RegClassUnitSets.size();
2033 if (RCUnitSetsIdx == RegClassUnitSets.size()) {
2105 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx)
2109 RegUnitSetOrder.reserve(RegUnitSets.size());
2110 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx)
2114 return getRegPressureSet(ID1).Units.size() <
2115 getRegPressureSet(ID2).Units.size();
2117 for (unsigned Idx = 0, EndIdx = RegUnitSets.size(); Idx != EndIdx; ++Idx) {
2200 if (I->second.size() == RC->getMembers().size()) {
2200 if (I->second.size() == RC->getMembers().size()) {
2267 if (SubSetVec.size() == SSPairs.size()) {
2401 for (unsigned j = 0, e = SR.size(); j != e; ++j) {
utils/TableGen/CodeGenRegisters.h 431 unsigned getNumOrders() const { return Orders.size(); }
746 unsigned getNumRegPressureSets() const { return RegUnitSets.size(); }
757 return RegClassUnitSets.size();
utils/TableGen/CodeGenSchedule.cpp 309 Opcode2Index[Opcode] = OpcodeMappings.size();
322 OpcodeMasks.resize(OpcodeMappings.size());
411 Decl2Index[Decl] = STIPredicates.size();
446 llvm::StringMap<const Record *> TIIPredicates(MCPredicates.size());
528 ProcModels.reserve(ProcRecords.size()+1);
546 if (!ProcModelMap.insert(std::make_pair(ModelKey, ProcModels.size())).second)
552 ProcModels.emplace_back(ProcModels.size(), Name, ModelKey, ItinsDef);
558 ProcModels.emplace_back(ProcModels.size(), Name,
665 SchedWrites.emplace_back(SchedWrites.size(), SWDef);
670 SchedReads.emplace_back(SchedReads.size(), SRDef);
691 for (unsigned WIdx = 0, WEnd = SchedWrites.size(); WIdx != WEnd; ++WIdx) {
695 } for (unsigned RIdx = 0, REnd = SchedReads.size(); RIdx != REnd;
856 unsigned RWIdx = RWVec.size();
892 NumInstrSchedClasses = SchedClasses.size();
1028 Idx = SchedClasses.size();
1104 unsigned SCIdx = SchedClasses.size();
1187 for (unsigned i = 1, N = ProcModel.ItinDefList.size(); i < N; ++i) {
1230 for (unsigned Idx = 0; Idx != SchedClasses.size(); ++Idx) {
1241 assert(SchedClasses.size() < (NumInstrSchedClasses*6) &&
1249 for (unsigned PIdx = 0, PEnd = ProcModels.size(); PIdx != PEnd; ++PIdx) {
1271 for (unsigned I = 0, E = SchedClasses[SCIdx].InstRWs.size(); I != E; ++I) {
1272 assert(SchedClasses[SCIdx].InstRWs.size() == E && "InstrRWs was mutated!");
1493 Variant.TransVecIdx = TransVec.size();
1535 RWSequences.insert(RWSequences.end(), SelectedRWs.size() - 1,
1583 for (unsigned TransIdx = StartIdx, TransEnd = TransVec.size();
1617 unsigned StartIdx = TransVec.size();
1739 for (unsigned i = 0, e = PM.ProcResourceDefs.size(); i < e; ++i) {
1758 for (unsigned i = 0, e = PM.ProcResourceDefs.size(); i < e; ++i) {
1812 for (unsigned I = 0, E = RegisterClasses.size(); I < E; ++I) {
1813 int Cost = RegisterCosts.size() > I ? RegisterCosts[I] : 1;
1988 for (unsigned PIdx = 0, PEnd = ProcModels.size(); PIdx != PEnd; ++PIdx) {
2181 for (unsigned i = 0, N = Writes.size(); i < N; ++i) {
2189 for (unsigned i = 0, N = Reads.size(); i < N; ++i) {
utils/TableGen/CodeGenSchedule.h 77 assert(Sequence.size() > 1 && "implied sequence needs >1 RWs");
506 assert(Idx < SchedWrites.size() && "bad SchedWrite index");
512 assert(Idx < SchedReads.size() && "bad SchedRead index");
537 assert(Idx < SchedClasses.size() && "bad SchedClass index");
541 assert(Idx < SchedClasses.size() && "bad SchedClass index");
utils/TableGen/CodeGenTarget.cpp 220 if (Targets.size() == 0)
222 if (Targets.size() != 1)
257 if (AsmParserNum >= LI.size())
269 if (i >= LI.size())
281 return LI.size();
288 if (AsmWriterNum >= LI.size())
334 if (A->getMembers().size() > B->getMembers().size())
334 if (A->getMembers().size() > B->getMembers().size())
337 if (A->getMembers().size() < B->getMembers().size())
337 if (A->getMembers().size() < B->getMembers().size())
401 if (Insts.size() <= 2)
405 for (unsigned i = 0, e = Insts.size(); i != e; ++i)
441 unsigned EndOfPredefines = InstrsByEnum.size();
454 assert(InstrsByEnum.size() == Insts.size() && "Missing predefined instr");
546 for (unsigned i = 0, e = PropList.size(); i != e; ++i)
581 Intrinsics.reserve(Defs.size());
583 for (unsigned I = 0, e = Defs.size(); I != e; ++I) {
594 for (size_t I = 0, E = Intrinsics.size(); I < E; ++I)
599 Targets.back().Count = Intrinsics.size() - Targets.back().Offset;
688 assert(MatchTy < OverloadedVTs.size() &&
719 if (MatchTy >= OverloadedVTs.size()) {
818 if (ParamIdx >= IS.ParamVTs.size())
utils/TableGen/DAGISelEmitter.cpp 166 for (unsigned i = 0, e = Patterns.size(); i != e; ++i) {
utils/TableGen/DAGISelMatcherEmitter.cpp 76 return VecIncludeStrings.size() - 1;
111 Entry = NodePredicatesWithOperands.size();
114 Entry = NodePredicates.size();
135 Entry = PatternPredicates.size();
143 Entry = ComplexPatterns.size();
152 Entry = NodeXForms.size();
247 assert(VecPatterns.size() == VecIncludeStrings.size() &&
842 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
867 for (unsigned i = 0, e = PatternPredicates.size(); i != e; ++i)
896 for (unsigned i = 0, e = ComplexPatterns.size(); i != e; ++i) {
951 for (unsigned i = 0, e = NodeXForms.size(); i != e; ++i) {
980 if (unsigned(M->getKind()) >= OpcodeFreq.size())
1054 for (unsigned i = 0, e = OpcodeFreq.size(); i != e; ++i) {
utils/TableGen/DAGISelMatcherGen.cpp 535 for (unsigned i = 0, e = N->getPredicateCalls().size(); i != e; ++i) {
566 if (Variant >= OpNodes.size()) return true;
820 for (unsigned i = 0, e = DefaultOp.DefaultOps.size(); i != e; ++i)
utils/TableGen/DFAEmitter.cpp 278 LLVM_DEBUG(dbgs() << " Each state has " << Transitions.size()
375 if (AT.size() > 1)
384 if (AT.size() > 1)
utils/TableGen/DFAPacketizerEmitter.cpp 76 assert((InsnClass.size() <= DFA_MAX_RESTERMS) &&
175 for (unsigned i = 0; i < InsnClass.size(); ++i) {
209 LLVM_DEBUG(dbgs() << " (" << ProcItinList.size() << " itineraries)\n");
213 for (unsigned i = 0, N = ProcItinList.size(); i < N; ++i) {
217 LLVM_DEBUG(dbgs() << " FU:" << i << " (" << FUs.size() << " FUs) "
221 unsigned numFUs = FUs.size();
251 LLVM_DEBUG(dbgs() << " (" << ComboFuncList.size() << " sets)\n");
254 for (unsigned i = 0, N = ComboFuncList.size(); i < N; ++i) {
258 LLVM_DEBUG(dbgs() << " CFD:" << i << " (" << FUs.size() << " combo FUs) "
262 for (unsigned j = 0, N = FUs.size(); j < N; ++j) {
274 for (unsigned k = 0, M = FuncList.size(); k < M; ++k) {
303 unsigned NStages = StageList.size();
318 LLVM_DEBUG(dbgs() << " stage:" << i << " [" << UnitList.size()
324 for (unsigned j = 0, M = UnitList.size(); j < M; ++j) {
367 unsigned M = ItinDataList.size();
439 for (unsigned i = 0, N = ProcItinList.size(); i < N; i++) {
451 Records.getAllDerivedDefinitions("InstrItinClass").size();
518 for (unsigned i = 0; i < allInsnClasses.size(); i++) {
utils/TableGen/ExegesisEmitter.cpp 100 if (Targets.size() == 0)
102 if (Targets.size() != 1)
115 Def.getValueAsListOfDefs("IssueCounters").size();
utils/TableGen/FastISelEmitter.cpp 66 Entry = PredsByName.size();
72 assert(i < PredsByName.size());
217 if (Op->getPredicateCalls().size() > 1 ||
310 assert(PR.size() == Operands.size());
661 for (unsigned i = 0; i < Memo.PhysRegs.size(); ++i) {
838 for (unsigned i = 0, e = MI->second.size(); i != e; ++i) {
utils/TableGen/FixedLenDecoderEmitter.cpp 77 unsigned numFields() const { return Fields.size(); }
561 for (unsigned i = 0, e = Owner->Opcodes.size(); i != e; ++i) {
584 assert((FilteredInstructions.size() + VariableInstructions.size() > 0)
685 resolveTableFixups(Table, CurScope, Table.size());
696 PrevFilter = Table.size();
712 uint32_t NumToSkip = Table.size() - PrevFilter - 3;
721 assert(TableInfo.FixupStack.size() > 1 && "fixup stack underflow!");
1100 assert(StartBits.size() == Num && EndBits.size() == Num &&
1100 assert(StartBits.size() == Num && EndBits.size() == Num &&
1101 FieldVals.size() == Num);
1283 TableInfo.FixupStack.back().push_back(TableInfo.Table.size());
1362 unsigned Size = StartBits.size();
1379 TableInfo.FixupStack.back().push_back(TableInfo.Table.size());
1423 TableInfo.FixupStack.back().push_back(TableInfo.Table.size());
1443 TableInfo.Table.size());
1475 unsigned numInstructions = Opcodes.size();
1488 for (unsigned i = 0; i < Opcodes.size(); ++i) {
1682 for (unsigned i = 0, e = Filters.size(); i != e; ++i) {
1704 unsigned Num = Opcodes.size();
1730 if (Opcodes.size() == 1) {
1756 for (unsigned i = 0; i < Opcodes.size(); ++i) {
1860 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
1868 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
2394 IndexOfInstruction[NumberedInstruction->TheDef] = NumberedEncodings.size();
2412 IndexOfInstruction[NumberedInstruction->TheDef] = NumberedEncodings.size();
2442 for (unsigned i = 0; i < NumberedEncodings.size(); ++i) {
2479 NumberedEncodings.data(), NumberedEncodings.size());
2493 assert(TableInfo.FixupStack.size() == 1 && "fixup stack phasing error!");
2496 TableInfo.Table.size());
utils/TableGen/GICombinerEmitter.cpp 83 size_t getNumRoots() const { return Roots.size(); }
222 Cases.reserve(Rules.size());
utils/TableGen/GlobalISelEmitter.cpp 722 size_t size() const { return Matchers.size(); }
774 size_t size() const { return Matchers.size(); }
2107 unsigned getNumOperands() const { return Operands.size(); }
2142 if (Operands.size() > B.Operands.size())
2142 if (Operands.size() > B.Operands.size())
2144 if (Operands.size() < B.Operands.size())
2144 if (Operands.size() < B.Operands.size())
2770 if (OperandRenderers.size() != Insn->getNumOperands())
3063 assert(Matchers.size() == 1 && "Cannot handle multi-root matchers yet");
3157 if (Matchers.size() > B.Matchers.size())
3157 if (Matchers.size() > B.Matchers.size())
3159 if (Matchers.size() < B.Matchers.size())
3159 if (Matchers.size() < B.Matchers.size())
3471 if (Src->getExtTypes().size() > 1)
4618 if (DstI.Operands.NumDefs != Src->getExtTypes().size())
4620 to_string(Src->getExtTypes().size()) + " def(s) vs " +
4740 assert(Src->getExtTypes().size() == 1 &&
4756 assert(Src->getExtTypes().size() == 1 &&
4778 assert(Src->getExtTypes().size() == 1 &&
5151 OS << "const static size_t NumTypeObjects = " << TypeObjects.size() << ";\n"
5167 if (A.size() < B.size())
5167 if (A.size() < B.size())
5169 if (A.size() > B.size())
5169 if (A.size() > B.size())
5450 for (unsigned I = 1, E = Matchers.size(); I < E; ++I)
5455 for (unsigned I = 1, E = Matchers.size(); I < E; ++I)
5535 assert(Values.size() == Matchers.size() && "Broken SwitchMatcher");
5571 assert(Values.size() == Matchers.size() && "Broken SwitchMatcher");
utils/TableGen/InfoByHwMode.cpp 94 for (unsigned i = 0, e = Pairs.size(); i != e; ++i) {
186 for (unsigned i = 0, e = Pairs.size(); i != e; ++i) {
utils/TableGen/InstrInfoEmitter.cpp 136 for (unsigned j = 0, e = OperandList.size(); j != e; ++j) {
393 for (int I = 0, E = OperandOffsets.size(); I != E; ++I)
398 OperandOffsets.push_back(OperandRecords.size());
401 for (int I = 0, E = OperandRecords.size(), CurOffset = 1; I != E; ++I) {
utils/TableGen/IntrinsicEmitter.cpp 272 assert(Number < ArgCodes.size() && "Invalid matching number!");
325 assert(NextArgCode < ArgCodes.size() && ArgCodes[NextArgCode] == Tmp &&
403 unsigned OriginalIdx = ArgCodes.size() - NumInserted;
406 Mapping[OriginalIdx] = ArgCodes.size();
425 for (unsigned i = 0, e = Int.IS.RetVTs.size(); i != e; ++i)
429 for (unsigned i = 0, e = Int.IS.ParamTypeDefs.size(); i != e; ++i)
435 else if (Int.IS.RetVTs.size() == 1 &&
439 switch (Int.IS.RetVTs.size()) {
451 for (unsigned i = 0, e = Int.IS.RetVTs.size(); i != e; ++i)
456 for (unsigned i = 0, e = Int.IS.ParamTypeDefs.size(); i != e; ++i)
483 if (TypeSig.size() <= 8) {
486 for (unsigned i = 0, e = TypeSig.size(); i != e; ++i) {
517 for (unsigned i = 0, e = FixedEncodings.size(); i != e; ++i) {
606 std::max(maxArgAttrs, unsigned(intrinsic.ArgumentAttributes.size()));
645 unsigned ai = 0, ae = intrinsic.ArgumentAttributes.size();
utils/TableGen/OptParserEmitter.cpp 124 for (unsigned i = 0, e = Opts.size(); i != e; ++i) {
161 for (unsigned i = 0, e = Groups.size(); i != e; ++i) {
207 for (unsigned i = 0, e = Opts.size(); i != e; ++i) {
248 if (AliasArgs.size() == 0) {
252 for (size_t i = 0, e = AliasArgs.size(); i != e; ++i)
305 for (unsigned I = 0, E = Opts.size(); I != E; ++I) {
utils/TableGen/PredicateExpander.cpp 122 if (Opcodes.size() == 1) {
159 if (Sequence.size() == 1)
utils/TableGen/PseudoLoweringEmitter.cpp 287 for (unsigned i = 0, e = Insts.size(); i != e; ++i)
utils/TableGen/RISCVCompressInstEmitter.cpp 494 Entry = MCOpPredicates.size();
750 for (unsigned i = 0; i < MCOpPredicates.size(); ++i) {
785 for (unsigned i = 0, e = Insts.size(); i != e; ++i)
utils/TableGen/RegisterBankEmitter.cpp 279 if (Targets.size() != 1)
utils/TableGen/RegisterInfoEmitter.cpp 157 if (RegAltNameIndices.size() > 1) {
162 for (unsigned i = 0, e = RegAltNameIndices.size(); i != e; ++i)
164 OS << " NUM_TARGET_REG_ALT_NAMES = " << RegAltNameIndices.size() << "\n";
380 maxLength = std::max((size_t)maxLength, RegNums.size());
392 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i)
513 Reg->getValueAsListOfInts("DwarfNumbers").size());
1536 for (unsigned i = 0, e = CSRSets.size(); i != e; ++i) {
1544 for (unsigned r = 0, re = Regs->size(); r != re; ++r)
1633 OS << " }\n\tNumRegs: " << RC.getMembers().size() << '\n';
utils/TableGen/SearchableTableEmitter.cpp 322 Entries.reserve(Table.Entries.size());
323 for (unsigned i = 0; i < Table.Entries.size(); ++i)
332 IndexRowsStorage.reserve(Entries.size());
500 for (unsigned i = 0; i < Table.Entries.size(); ++i) {
591 for (size_t i = 0; i < Enum.Entries.size(); ++i)
utils/TableGen/SequenceToOffsetTable.h 59 return A.size() <= B.size() && std::equal(A.rbegin(), A.rend(), B.rbegin());
59 return A.size() <= B.size() && std::equal(A.rbegin(), A.rend(), B.rbegin());
98 Entries += I->first.size() + 1;
108 return I->second + (I->first.size() - Seq.size());
108 return I->second + (I->first.size() - Seq.size());
utils/TableGen/SubtargetEmitter.cpp 149 unsigned N = DefList.size();
183 for (unsigned j = 0, M = FeatureList.size(); j < M; ++j) {
219 for (unsigned i = 0, N = FeatureList.size(); i < N; ++i) {
286 return ProcessorList.size();
302 unsigned N = NStages = StageList.size();
315 for (unsigned j = 0, M = UnitList.size(); j < M;) {
345 unsigned N = NOperandCycles = OperandCycleList.size();
360 unsigned N = BypassList.size();
398 for (unsigned j = 0, FUN = FUs.size(); j < FUN; ++j)
410 for (unsigned j = 0, BPN = BPs.size(); j < BPN; ++j)
440 ProcItinLists.resize(ProcItinLists.size()+1);
451 assert(ProcModel.ItinDefList.size() == ItinList.size() && "bad Itins");
451 assert(ProcModel.ItinDefList.size() == ItinList.size() && "bad Itins");
453 for (unsigned SchedClassIdx = 0, SchedClassEnd = ItinList.size();
585 for (unsigned j = 0, M = ItinList.size(); j < M; ++j) {
625 for (unsigned i = 0, e = ProcModel.ProcResourceDefs.size(); i < e; ++i) {
714 unsigned NumCostEntries = RD.Costs.size();
764 EmitRegisterFileInfo(ProcModel, ProcModel.RegisterFiles.size(),
784 for (unsigned i = 0, e = ProcModel.ProcResourceDefs.size(); i < e; ++i) {
938 assert(PRVec.size() == Cycles.size() && "failed precondition");
938 assert(PRVec.size() == Cycles.size() && "failed precondition");
939 for (unsigned i = 0, e = PRVec.size(); i != e; ++i) {
984 SchedTables.ProcSchedClasses.resize(SchedTables.ProcSchedClasses.size() + 1);
993 SCTab.resize(SCTab.size() + 1);
1111 Cycles.resize(PRVec.size(), 1);
1112 } else if (Cycles.size() != PRVec.size()) {
1112 } else if (Cycles.size() != PRVec.size()) {
1118 .concat(Twine(PRVec.size()))
1120 .concat(Twine(Cycles.size())));
1125 for (unsigned PRIdx = 0, PREnd = PRVec.size();
1135 unsigned WPRIdx = 0, WPREnd = WriteProcResources.size();
1151 for (unsigned UseIdx = 0, EndIdx = Reads.size();
1192 SCDesc.NumWriteProcResEntries = WriteProcResources.size();
1200 SCDesc.WriteProcResIdx = SchedTables.WriteProcResources.size();
1205 SCDesc.NumWriteLatencyEntries = WriteLatencies.size();
1213 for (unsigned i = 0, e = WriteLatencies.size(); i < e; ++i)
1220 SCDesc.WriteLatencyIdx = SchedTables.WriteLatencies.size();
1228 SCDesc.NumReadAdvanceEntries = ReadAdvanceEntries.size();
1236 SCDesc.ReadAdvanceIdx = SchedTables.ReadAdvanceEntries.size();
1251 for (unsigned WPRIdx = 1, WPREnd = SchedTables.WriteProcResources.size();
1267 for (unsigned WLIdx = 1, WLEnd = SchedTables.WriteLatencies.size();
1283 for (unsigned RAIdx = 1, RAEnd = SchedTables.ReadAdvanceEntries.size();
1317 for (unsigned SCIdx = 1, SCEnd = SCTab.size(); SCIdx != SCEnd; ++SCIdx) {
1377 << " " << PM.ProcResourceDefs.size()+1 << ",\n"
1458 T.PredTerm.size() - count_if(T.PredTerm, IsTruePredicate);
utils/TableGen/SubtargetFeatureInfo.cpp 46 Pred, SubtargetFeatureInfo(Pred, SubtargetFeatures.size()));
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp 111 OS << CGI.Operands.OperandList.size() << ", ";
120 size_t OperandStart = OperandTable.size();
121 if (CurOperandList.size() <= OperandTable.size()) {
121 if (CurOperandList.size() <= OperandTable.size()) {
122 for (size_t J = 0; J <= OperandTable.size() - CurOperandList.size();
122 for (size_t J = 0; J <= OperandTable.size() - CurOperandList.size();
125 for (; K < CurOperandList.size(); ++K) {
128 if (K == CurOperandList.size()) {
135 if (OperandStart == OperandTable.size()) {
utils/TableGen/X86DisassemblerTables.cpp 717 ModRMTableNum += ModRMDecision.size();
824 unsigned NumInstructions = InstructionSpecifiers.size();
861 o << INSTRUCTIONS_STR "[" << InstructionSpecifiers.size() << "] = {\n";
1027 ModRMTableNum += EmptyTable.size();
utils/TableGen/X86DisassemblerTables.h 268 if (uid >= InstructionSpecifiers.size())
utils/TableGen/X86RecognizableInstr.cpp 111 for (unsigned i = 0, e = Predicates.size(); i != e; ++i) {
404 unsigned numOperands = OperandList.size();
utils/benchmark/include/benchmark/benchmark.h 578 assert(range_.size() > pos);
utils/benchmark/src/benchmark.cc 206 for (std::size_t ti = 0; ti < pool.size(); ++ti) {
547 return benchmarks.size();
utils/benchmark/src/benchmark_register.cc 98 size_t index = families_.size();
142 const size_t family_size = family->args_.size() * thread_counts->size();
142 const size_t family_size = family->args_.size() * thread_counts->size();
177 if (arg_i < family->arg_names_.size()) {
280 CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(ranges.size()));
281 std::vector<std::vector<int64_t>> arglists(ranges.size());
283 for (std::size_t i = 0; i < ranges.size(); i++) {
286 total *= arglists[i].size();
289 std::vector<std::size_t> ctr(arglists.size(), 0);
293 tmp.reserve(arglists.size());
295 for (std::size_t j = 0; j < arglists.size(); j++) {
301 for (std::size_t j = 0; j < arglists.size(); j++) {
302 if (ctr[j] + 1 < arglists[j].size()) {
319 CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(names.size()));
335 CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(args.size()));
444 return static_cast<int>(arg_names_.size());
446 return static_cast<int>(args_.front().size());
utils/benchmark/src/complexity.cc 85 for (size_t i = 0; i < n.size(); ++i) {
101 for (size_t i = 0; i < n.size(); ++i) {
107 double mean = sigma_time / n.size();
108 result.rms = sqrt(rms / n.size()) / mean;
122 CHECK_EQ(n.size(), time.size());
122 CHECK_EQ(n.size(), time.size());
123 CHECK_GE(n.size(), 2); // Do not compute fitting curve is less than two
157 if (reports.size() < 2) return results;
utils/benchmark/src/csv_reporter.cc 95 Out << std::string(elements.size() - 3, ',');
utils/benchmark/src/json_reporter.cc 97 for (size_t i = 0; i < info.caches.size(); ++i) {
109 if (i != info.caches.size() - 1) out << ",";
utils/benchmark/src/reporter.cc 47 if (info.caches.size() != 0) {
utils/benchmark/src/statistics.cc 34 return StatisticsSum(v) * (1.0 / v.size());
38 if (v.size() < 3) return StatisticsMean(v);
41 auto center = copy.begin() + v.size() / 2;
47 if(v.size() % 2 == 1)
49 auto center2 = copy.begin() + v.size() / 2 - 1;
71 if (v.size() == 1)
74 const double avg_squares = SumSquares(v) * (1.0 / v.size());
75 return Sqrt(v.size() / (v.size() - 1.0) * (avg_squares - Sqr(mean)));
75 return Sqrt(v.size() / (v.size() - 1.0) * (avg_squares - Sqr(mean)));
87 if (reports.size() - error_count < 2) {
98 real_accumulated_time_stat.reserve(reports.size());
99 cpu_accumulated_time_stat.reserve(reports.size());
100 bytes_per_second_stat.reserve(reports.size());
101 items_per_second_stat.reserve(reports.size());
118 it->second.s.reserve(reports.size());
144 for (std::size_t i = 1; i < reports.size(); i++) {
utils/unittest/googlemock/include/gmock/gmock-matchers.h 2432 SizeType size = container.size();
2739 *os << "contains " << rhs_.size()
2746 *os << "doesn't contain exactly " << rhs_.size()
2757 const size_t actual_size = lhs_stl_container.size();
2758 if (actual_size != rhs_.size()) {
3254 size_t count() const { return matchers_.size(); }
3399 if (actual_count != matchers_.size()) {
3429 for (size_t irhs = 0; irhs != matchers_.size(); ++irhs) {
3434 MatchMatrix matrix(num_elements, matchers_.size());
3437 for (size_t irhs = 0; irhs != matchers_.size(); ++irhs) {
utils/unittest/googlemock/include/gmock/gmock-more-matchers.h 54 *result_listener << "whose size is " << arg.size();
utils/unittest/googlemock/include/gmock/gmock-spec-builders.h 1004 set_cardinality(Exactly(static_cast<int>(untyped_actions_.size())));
1025 set_cardinality(AtLeast(static_cast<int>(untyped_actions_.size())));
1163 const int action_count = static_cast<int>(untyped_actions_.size());
1751 const int count = static_cast<int>(untyped_expectations_.size());
utils/unittest/googlemock/src/gmock-matchers.cc 106 switch (fields.size()) {
113 for (size_t i = 1; i < fields.size(); i++) {
131 if (param_values.size() >= 1)
232 for (size_t ilhs = 0; ilhs < left_.size(); ++ilhs) {
332 size_t max_flow = matches.size();
346 if (matches.size() > 1) {
349 for (size_t mi = 0; mi < matches.size(); ++mi) {
401 if (matcher_describers_.size() == 1) {
406 *os << "has " << Elements(matcher_describers_.size())
409 for (size_t i = 0; i != matcher_describers_.size(); ++i) {
422 if (matcher_describers_.size() == 1) {
428 *os << "doesn't have " << Elements(matcher_describers_.size())
431 for (size_t i = 0; i != matcher_describers_.size(); ++i) {
463 for (size_t mi = 0; mi < matcher_matched.size(); ++mi) {
482 for (size_t ei = 0; ei < element_matched.size(); ++ei) {
utils/unittest/googlemock/src/gmock-spec-builders.cc 192 const int action_count = static_cast<int>(untyped_actions_.size());
341 if (untyped_expectations_.size() == 0) {
utils/unittest/googletest/src/gtest-death-test.cc 1325 if (fields.size() != 4
utils/unittest/googletest/src/gtest-internal-inl.h 304 return (i < 0 || i >= static_cast<int>(v.size())) ? default_value : v[i];
314 const int size = static_cast<int>(v->size());
334 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
utils/unittest/googletest/src/gtest-test-part.cc 84 return static_cast<int>(array_.size());
utils/unittest/googletest/src/gtest.cc 330 static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
338 for (size_t i = 0; i < case_list.size(); i++) {
741 return static_cast<int>(test_cases_.size());
1031 left.size() + 1, std::vector<double>(right.size() + 1));
1031 left.size() + 1, std::vector<double>(right.size() + 1));
1033 left.size() + 1, std::vector<EditType>(right.size() + 1));
1033 left.size() + 1, std::vector<EditType>(right.size() + 1));
1036 for (size_t l_i = 0; l_i < costs.size(); ++l_i) {
1041 for (size_t r_i = 1; r_i < costs[0].size(); ++r_i) {
1046 for (size_t l_i = 0; l_i < left.size(); ++l_i) {
1047 for (size_t r_i = 0; r_i < right.size(); ++r_i) {
1075 for (size_t l_i = left.size(), r_i = right.size(); l_i > 0 || r_i > 0;) {
1075 for (size_t l_i = left.size(), r_i = right.size(); l_i > 0 || r_i > 0;) {
1110 for (size_t i = 0; i < left.size(); ++i) {
1113 for (size_t i = 0; i < right.size(); ++i) {
1210 while (edit_i < edits.size()) {
1212 while (edit_i < edits.size() && edits[edit_i] == kMatch) {
1228 for (; edit_i < edits.size(); ++edit_i) {
1336 if (lhs_lines.size() > 1 || rhs_lines.size() > 1) {
1336 if (lhs_lines.size() > 1 || rhs_lines.size() > 1) {
2129 for (size_t i = 0; i < words.size(); ++i) {
2130 if (i > 0 && words.size() > 2) {
2133 if (i == words.size() - 1) {
2201 return static_cast<int>(test_part_results_.size());
2206 return static_cast<int>(test_properties_.size());
2708 return static_cast<int>(test_info_list_.size());
2755 test_indices_.push_back(static_cast<int>(test_indices_.size()));
2799 for (size_t i = 0; i < test_indices_.size(); i++) {
3282 for (size_t i = 0; i < listeners_.size(); ++i) {
3331 for (size_t i = 0; i < listeners_.size(); i++) {
3340 for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) {
4118 if (impl_->gtest_trace_stack().size() > 0) {
4121 for (int i = static_cast<int>(impl_->gtest_trace_stack().size());
4533 test_case_indices_.push_back(static_cast<int>(test_case_indices_.size()));
4801 for (size_t i = 0; i < test_cases_.size(); i++) {
4806 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4869 for (size_t i = 0; i < test_cases_.size(); i++) {
4873 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4945 static_cast<int>(test_cases_.size()), &test_case_indices_);
4948 for (size_t i = 0; i < test_cases_.size(); i++) {
4955 for (size_t i = 0; i < test_cases_.size(); i++) {
5266 for (size_t i = 0; i < lines.size(); ++i) {