reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/MapVector.h
  180     size_t Index = Next - Vector.begin();
  221       Map[O->first] = O - Vector.begin();
include/llvm/ADT/PriorityWorklist.h
  201         M[*I] = I - V.begin();
include/llvm/ADT/STLExtras.h
 1065   auto NElts = End - Start;
 1082   auto NElts = End - Start;
include/llvm/ADT/iterator.h
  244     return I - RHS.I;
include/llvm/Analysis/BlockFrequencyInfoImpl.h
  866   size_t getIndex(const rpot_iterator &I) const { return I - rpot_begin(); }
include/llvm/Analysis/LoopInfo.h
  389     SubLoops.erase(SubLoops.begin() + (I - begin()));
  953     TopLevelLoops.erase(TopLevelLoops.begin() + (I - begin()));
include/llvm/Analysis/RegionInfoImpl.h
  444   children.erase(children.begin() + (I - begin()));
  654       BlockTraits::child_end(entry) - BlockTraits::child_begin(entry);
include/llvm/CodeGen/MachineScheduler.h
  566     unsigned idx = I - Queue.begin();
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  571   int VecIdx = It - Vec.begin() - 1;
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10051   unsigned Size = W.LastCluster - W.FirstCluster + 1;
10297   assert(W.LastCluster - W.FirstCluster + 1 >= 2 && "Too small to split!");
10326     unsigned NumLeft = LastLeft - W.FirstCluster + 1;
10327     unsigned NumRight = W.LastCluster - FirstRight + 1;
10569     unsigned NumClusters = W.LastCluster - W.FirstCluster + 1;
lib/CodeGen/StackMaps.cpp
  336       Loc.Offset = Result.first - ConstPool.begin();
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  930   return RowPos - Rows.begin();
lib/MC/MCCodeView.cpp
  355     unsigned EntryCount = FileSegEnd - I;
lib/Support/SourceMgr.cpp
  100   return llvm::lower_bound(*Offsets, PtrOffset) - Offsets->begin() + 1;
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
  383         unsigned Index = It - Lits.begin();
lib/Target/Hexagon/RDFRegisters.h
   49         return F - Map.begin() + 1;
   57       return F - Map.begin() + 1;
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  911         size_t N = i - FnsToInstrument.begin(),
  912                Count = e - FnsToInstrument.begin();
lib/Transforms/Utils/LowerSwitch.cpp
  254   unsigned Size = End - Begin;
tools/clang/lib/AST/CommentBriefParser.cpp
   43   S.resize(O - S.begin());
tools/clang/lib/Lex/PreprocessingRecord.cpp
  238   return First - PreprocessedEntities.begin();
  248   return I - PreprocessedEntities.begin();
  299       return getPPEntityID(insertI - PreprocessedEntities.begin(),
  309   return getPPEntityID(insertI - PreprocessedEntities.begin(),
tools/clang/tools/extra/clang-move/Move.cpp
  419     auto RemainingSize = CurrentNamespaces.end() - CurrentIt;
tools/lld/COFF/ICF.cpp
  113     size_t mid = bound - chunks.begin();
tools/lld/ELF/ICF.cpp
  217     size_t mid = bound - sections.begin();
tools/lld/ELF/SyntheticSections.cpp
 1763     if (j - i < 3 || (config->isRela && i->r_addend != 0))
 2036   size_t numLocals = e - symbols.begin();
 2381   nBuckets = std::max<size_t>((v.end() - mid) / 4, 1);
 2613                                          }) -
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  554                                   : personality - personalities.begin() + 1;
tools/lldb/source/Plugins/Process/Utility/RegisterInfoInterface.h
   53           return (d_register_infos->data() + (pos - d_register_infos->begin()));
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1789         SetThreadPc(thread_sp, iter - m_thread_ids.begin());
tools/lli/lli.cpp
  819       IdxToDylib[JITDylibs.getPosition(JDItr - JITDylibs.begin())] = JD;
  828       auto EMIdx = ExtraModules.getPosition(EMItr - ExtraModules.begin());
  838       auto EAIdx = ExtraArchives.getPosition(EAItr - ExtraArchives.begin());
tools/llvm-jitlink/llvm-jitlink.cpp
  599           JITLinkDylibs.getPosition(JLDItr - JITLinkDylibs.begin());
  622         InputFiles.getPosition(InputFileItr - InputFiles.begin());
  637       AbsoluteDefs.getPosition(AbsDefItr - AbsoluteDefs.begin());
usr/include/c++/7.4.0/bits/basic_string.h
 1834 	  this->_M_erase(__pos, __last - __first);
 2009 	return this->replace(__i1 - begin(), __i2 - __i1, __s, __n);
 2052 	return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c);
 2110 	return this->replace(__i1 - begin(), __i2 - __i1,
 2121 	return this->replace(__i1 - begin(), __i2 - __i1,
 2132 	return this->replace(__i1 - begin(), __i2 - __i1,
 2133 			     __k1.base(), __k2 - __k1);
 2143 	return this->replace(__i1 - begin(), __i2 - __i1,
 2144 			     __k1.base(), __k2 - __k1);
usr/include/c++/7.4.0/bits/basic_string.tcc
  385 	const size_type __n1 = __i2 - __i1;
usr/include/c++/7.4.0/bits/stl_algo.h
  116 	__trip_count = (__last - __first) >> 2;
  137       switch (__last - __first)
 1347       _Distance __n = __last   - __first;
 1348       _Distance __k = __middle - __first;
 1357       _RandomAccessIterator __ret = __first + (__last - __middle);
 1883       if (__last - __first > int(_S_threshold))
 1920       _RandomAccessIterator __mid = __first + (__last - __first) / 2;
 1944       while (__last - __first > int(_S_threshold))
 1969 				std::__lg(__last - __first) * 2,
 1981       while (__last - __first > 3)
 2672       while (__last - __first >= __two_step)
 2680       __step_size = std::min(_Distance(__last - __first), __step_size);
 2693       while (__last - __first >= __chunk_size)
 2712       const _Distance __len = __last - __first;
 2737       const _Distance __len = (__last - __first + 1) / 2;
 2752 			    _Distance(__middle - __first),
 2753 			    _Distance(__last - __middle),
 2764       if (__last - __first < 15)
 2769       _RandomAccessIterator __middle = __first + (__last - __first) / 2;
 2773 				  __middle - __first,
 2774 				  __last - __middle,
 3816       const __uc_type __urange = __uc_type(__last - __first);
 3839 	  const __uc_type __swap_range = __uc_type(__i - __first) + 1;
 3854 	std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first)));
 4766 			 std::__lg(__last - __first) * 2,
usr/include/c++/7.4.0/bits/stl_algobase.h
  857 	    __diff1 = __last1 - __first1;
  859 	    __diff2 = __last2 - __first2;
usr/include/c++/7.4.0/bits/stl_heap.h
  171       std::__push_heap(__first, _DistanceType((__last - __first) - 1),
  207       std::__push_heap(__first, _DistanceType((__last - __first) - 1),
  254 			 _DistanceType(__last - __first),
  283       if (__last - __first > 1)
  315       if (__last - __first > 1)
  334       if (__last - __first < 2)
  337       const _DistanceType __len = __last - __first;
  405       while (__last - __first > 1)
usr/include/c++/7.4.0/bits/stl_iterator.h
  394     -> decltype(__y.base() - __x.base())
  395     { return __y.base() - __x.base(); }
 1196     -> decltype(__x.base() - __y.base())
 1197     { return __x.base() - __y.base(); }
usr/include/c++/7.4.0/bits/stl_iterator_base_funcs.h
  104       return __last - __first;
usr/include/c++/7.4.0/bits/stl_vector.h
 1061 	auto __offset = __position - cbegin();
 1086 	difference_type __offset = __position - cbegin();
 1131 	  difference_type __offset = __position - cbegin();
 1180       { return _M_erase(begin() + (__position - cbegin())); }
 1210 	return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg));
 1210 	return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg));
usr/include/c++/7.4.0/bits/vector.tcc
  132 	    const auto __pos = begin() + (__position - cbegin());
  143 	_M_realloc_insert(begin() + (__position - cbegin()), __x);
  172 	  _M_erase_at_end(__first.base() + (end() - __last));
  316       const auto __n = __position - cbegin();
  339 	const auto __n = __position - cbegin();
  405       const size_type __elems_before = __position - begin();
  472 	      const size_type __elems_after = end() - __position;
  504 	      const size_type __elems_before = __position - begin();
  640 		const size_type __elems_after = end() - __position;
utils/TableGen/AsmWriterEmitter.cpp
  181       size_t idx = I - UniqueOperandCommands.begin();
  879                   llvm::find(PrintMethods, PrintMethod) - PrintMethods.begin();
utils/TableGen/CodeGenRegisters.cpp
 1672       LLVM_DEBUG(dbgs() << "UberSet " << I - UberSets.begin() << " Weight "
utils/TableGen/CodeGenSchedule.cpp
 2149   return 1 + (PRPos - ProcResourceDefs.begin());
utils/TableGen/SubtargetEmitter.cpp
 1198       SCDesc.WriteProcResIdx = WPRPos - SchedTables.WriteProcResources.begin();
 1211       unsigned idx = WLPos - SchedTables.WriteLatencies.begin();
 1234       SCDesc.ReadAdvanceIdx = RAPos - SchedTables.ReadAdvanceEntries.begin();
 1302       SchedTables.ProcSchedClasses[1 + (PI - SchedModels.procModelBegin())];
 1379                      - SchedModels.schedClassBegin()) << ",\n";
utils/unittest/googletest/src/gtest.cc
 1233         if (it == edits.end() || (it - edits.begin()) - edit_i >= context) {