/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | DependencyDirectivesScanner.cpp | 89 lexToken(const char *&First, const char *const End); 92 lexIncludeFilename(const char *&First, const char *const End); 94 void skipLine(const char *&First, const char *const End); 95 void skipDirective(StringRef Name, const char *&First, const char *const End); 107 tryLexIdentifierOrSkipLine(const char *&First, const char *const End); 111 const char *const End); 120 const char *const End); 128 const char *const End); 136 tryLexStringLiteralOrSkipLine(const char *&First, const char *const End); 138 [[nodiscard]] bool scanImpl(const char *First, const char *const End); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SafeStackLayout.cpp | 30 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End in print() 55 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 57 unsigned End = Start + Obj.Size; in layoutObject() local 58 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 59 ObjectOffsets[Obj.Handle] = End; in layoutObject() 68 unsigned End = Start + Obj.Size; in layoutObject() local 69 LLVM_DEBUG(dbgs() << " First candidate: " << Start << " .. " << End << "\n"); in layoutObject() 71 LLVM_DEBUG(dbgs() << " Examining region: " << R.Start << " .. " << R.End in layoutObject() 73 assert(End >= R.Start); in layoutObject() 74 if (Start >= R.End) { in layoutObject() [all …]
|
H A D | LiveRangeCalc.cpp | 69 SlotIndex Start, End; in updateFromLiveIns() local 70 std::tie(Start, End) = Indexes->getMBBRange(MBB); in updateFromLiveIns() 74 End = I.Kill; in updateFromLiveIns() 82 Updater.add(Start, End, I.Value); in updateFromLiveIns() 153 SlotIndex Begin, End; in isDefOnEntry() local 154 std::tie(Begin, End) = Indexes->getMBBRange(&B); in isDefOnEntry() 155 // Treat End as not belonging to B. in isDefOnEntry() 156 // If LR has a segment S that starts at the next block, i.e. [End, ...), in isDefOnEntry() 159 LiveRange::iterator UB = upper_bound(LR, End.getPrevSlot()); in isDefOnEntry() 167 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry() 242 SlotIndex Start, End; findReachingDefs() local 283 SlotIndex Start, End; findReachingDefs() local 396 SlotIndex Start, End; updateSSA() local [all...] |
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | path_parser.h | 77 auto End = getAfterBack(); in peek() local 78 return TkEnd == End ? nullptr : TkEnd; in peek() 82 const PosPtr End = getAfterBack(); in increment() local 84 if (Start == End) in increment() 89 PosPtr TkEnd = consumeRootName(Start, End); in increment() 95 PosPtr TkEnd = consumeAllSeparators(Start, End); in increment() 99 return makeState(PS_InFilenames, Start, consumeName(Start, End)); in increment() 102 return makeState(PS_InFilenames, Start, consumeName(Start, End)); in increment() 105 PosPtr SepEnd = consumeAllSeparators(Start, End); in increment() 106 if (SepEnd != End) { in increment() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Parallel.h | 115 RandomAccessIterator End, in medianOf3() argument 117 RandomAccessIterator Mid = Start + (std::distance(Start, End) / 2); in medianOf3() 118 return Comp(*Start, *(End - 1)) in medianOf3() 119 ? (Comp(*Mid, *(End - 1)) ? (Comp(*Start, *Mid) ? Mid : Start) in medianOf3() 120 : End - 1) in medianOf3() 121 : (Comp(*Mid, *Start) ? (Comp(*(End - 1), *Mid) ? Mid : End - 1) in medianOf3() 126 void parallel_quick_sort(RandomAccessIterator Start, RandomAccessIterator End, in parallel_quick_sort() argument 129 if (std::distance(Start, End) < detail::MinParallelSize || Depth == 0) { in parallel_quick_sort() 130 llvm::sort(Start, End, Comp); in parallel_quick_sort() 135 auto Pivot = medianOf3(Start, End, Comp); in parallel_quick_sort() [all …]
|
H A D | Allocator.h | 88 End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl() 91 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 107 End = RHS.End; 114 RHS.CurPtr = RHS.End = nullptr; 134 End = CurPtr + SlabSize; in Reset() 162 if (LLVM_LIKELY(Adjustment + SizeToAllocate <= size_t(End - CurPtr) in Allocate() 202 assert(AlignedAddr + SizeToAllocate <= (uintptr_t)End && in AllocateSlow() 313 char *End = nullptr; variable 352 End = ((char *)NewSlab) + AllocatedSlabSize; in StartNewSlab() 409 auto DestroyElements = [](char *Begin, char *End) { in DestroyAll() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 70 T *End = nullptr; variable 82 destroy_range(Begin, End); in ~BumpVector() 103 iterator end() { return End; } in end() 104 const_iterator end() const { return End; } in end() 114 bool empty() const { return Begin == End; } in empty() 115 size_type size() const { return End-Begin; } in size() 118 assert(Begin + idx < End); 122 assert(Begin + idx < End); 141 --End; in pop_back() 142 End->~T(); in pop_back() [all …]
|
/freebsd/sys/contrib/dev/acpica/compiler/ |
H A D | dtio.c | 228 char *End; in DtTrim() local 244 End = String + strlen (String) - 1; in DtTrim() 248 while ((Start <= End) && ((*Start == ' ') || (*Start == '\t'))) in DtTrim() 255 while (End >= Start) in DtTrim() 257 if (*End == '\n') in DtTrim() 259 End--; in DtTrim() 263 if (*End != ' ') in DtTrim() 268 End--; in DtTrim() 277 if (*End == '\"') in DtTrim() 279 End--; in DtTrim() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | ExecutorAddress.h | 193 ExecutorAddrRange(ExecutorAddr Start, ExecutorAddr End) in ExecutorAddrRange() 194 : Start(Start), End(End) {} in ExecutorAddrRange() 196 : Start(Start), End(Start + Size) {} in ExecutorAddrRange() 198 bool empty() const { return Start == End; } in empty() 199 ExecutorAddrDiff size() const { return End - Start; } in size() 203 return LHS.Start == RHS.Start && LHS.End == RHS.End; 212 (LHS.Start == RHS.Start && LHS.End < RHS.End); 217 (LHS.Start == RHS.Start && LHS.End <= RHS.End); 222 (LHS.Start == RHS.Start && LHS.End > RHS.End); 227 (LHS.Start == RHS.Start && LHS.End >= RHS.End); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | AddressRanges.h | 25 AddressRange(uint64_t S, uint64_t E) : Start(S), End(E) { in AddressRange() 26 assert(Start <= End); in AddressRange() 29 uint64_t end() const { return End; } in end() 30 uint64_t size() const { return End - Start; } in size() 32 bool contains(uint64_t Addr) const { return Start <= Addr && Addr < End; } in contains() 34 return Start <= R.Start && R.End <= End; in contains() 37 return Start < R.End && R.Start < End; in intersects() 40 return Start == R.Start && End == R.End; 44 return std::make_pair(Start, End) < std::make_pair(R.Start, R.End); 49 uint64_t End = 0; variable [all …]
|
H A D | Sequence.h | 273 explicit iota_range(T Begin, T End, bool Inclusive) in iota_range() 274 : BeginValue(Begin), PastEndValue(End) { in iota_range() 275 assert(Begin <= End && "Begin must be less or equal to End."); in iota_range() 299 /// Iterate over an integral type from Begin up to - but not including - End. 300 /// Note: Begin and End values have to be within [INTMAX_MIN, INTMAX_MAX] for 305 auto seq(T Begin, T End) { in seq() argument 306 return iota_range<T>(Begin, End, false); in seq() 319 /// Iterate over an integral type from Begin to End inclusive. 320 /// Note: Begin and End value 315 seq_inclusive(T Begin,T End) seq_inclusive() argument 327 enum_seq(EnumT Begin,EnumT End) enum_seq() argument 342 enum_seq(EnumT Begin,EnumT End,force_iteration_on_noniterable_enum_t) enum_seq() argument 354 enum_seq_inclusive(EnumT Begin,EnumT End) enum_seq_inclusive() argument 369 enum_seq_inclusive(EnumT Begin,EnumT End,force_iteration_on_noniterable_enum_t) enum_seq_inclusive() argument [all...] |
H A D | CoalescingBitVector.h | 87 for (auto It = Intervals.begin(), End = Intervals.end(); It != End; ++It) in count() local 108 for (auto It = Other.Intervals.begin(), End = Other.Intervals.end(); in set() local 109 It != End; ++It) in set() 165 for (auto It = RHS.Intervals.begin(), End = RHS.Intervals.end(); variable 166 It != End; ++It) { 366 IndexT End) const { in half_open_range() argument 367 assert(Start < End && "Not a valid range"); in half_open_range() 369 if (StartIt == end() || *StartIt >= End) in half_open_range() 372 EndIt.advanceToLowerBound(End); in half_open_range() 378 for (auto It = Intervals.begin(), End = Intervals.end(); It != End; in print() local [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTVector.h | 39 T *End = nullptr; variable 42 void setEnd(T *P) { this->End = P; } in setEnd() 54 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector() 55 O.Begin = O.End = nullptr; in ASTVector() 70 swap(End, O.End); 78 destroy_range(Begin, End); in ~ASTVector() 99 iterator end() { return End; } in end() 100 const_iterator end() const { return End; } in end() 108 bool empty() const { return Begin == End; } in empty() 109 size_type size() const { return End-Begin; } in size() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingBuffer.c | 68 const __llvm_profile_data *End) { in __llvm_profile_get_num_data() argument 69 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_data() 76 const __llvm_profile_data *End) { in __llvm_profile_get_data_size() argument 77 return __llvm_profile_get_num_data(Begin, End) * sizeof(__llvm_profile_data); in __llvm_profile_get_data_size() 88 const VTableProfData *End) { in __llvm_profile_get_num_vtable() argument 90 intptr_t EndI = (intptr_t)End, BeginI = (intptr_t)Begin; in __llvm_profile_get_num_vtable() 96 const VTableProfData *End) { in __llvm_profile_get_vtable_section_size() argument 97 return (intptr_t)(End) - (intptr_t)(Begin); in __llvm_profile_get_vtable_section_size() 107 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End) { in __llvm_profile_get_num_counters() argument 108 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_counters() [all …]
|
H A D | InstrProfiling.h | 242 const __llvm_profile_data *End); 246 const __llvm_profile_data *End); 252 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End); 255 uint64_t __llvm_profile_get_counters_size(const char *Begin, const char *End); 259 const char *End); 262 uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End); 266 const VTableProfData *End); 270 const VTableProfData *End);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | GCNIterativeScheduler.cpp | 46 MachineBasicBlock::iterator End, in printRegion() argument 55 for (; I != End && MaxInstNum; ++I, --MaxInstNum) { in printRegion() 60 if (I != End) { in printRegion() 62 I = std::prev(End); in printRegion() 67 if (End != BB->end()) { // print boundary inst if present in printRegion() 69 if (LIS) OS << LIS->getInstructionIndex(*End) << '\t'; in printRegion() 70 OS << *End; in printRegion() 77 MachineBasicBlock::iterator End, in printLivenessInfo() argument 85 const auto BottomMI = End == BB->end() ? std::prev(End) : End; in printLivenessInfo() 95 printRegion(OS, R->Begin, R->End, LIS, 1); in printRegions() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | debug.cpp | 59 const char *End = Start; in debugTypeEnabled() local 62 if (*End == '\0' || *End == ',') { in debugTypeEnabled() 63 size_t ItemLen = End - Start; in debugTypeEnabled() 66 if (*End == '\0') in debugTypeEnabled() 68 Start = End + 1; in debugTypeEnabled() 70 ++End; in debugTypeEnabled()
|
H A D | executor_address.h | 175 ExecutorAddrRange(ExecutorAddr Start, ExecutorAddr End) in ExecutorAddrRange() 176 : Start(Start), End(End) {} in ExecutorAddrRange() 178 : Start(Start), End(Start + Size) {} in ExecutorAddrRange() 180 bool empty() const { return Start == End; } in empty() 181 ExecutorAddrDiff size() const { return End - Start; } in size() 185 return LHS.Start == RHS.Start && LHS.End == RHS.End; 191 bool contains(ExecutorAddr Addr) const { return Start <= Addr && Addr < End; } in contains() 193 return !(Other.End <= Start || End <= Other.Start); in overlaps() 203 ExecutorAddr End; member 234 Value.End); in size() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
H A D | RewriteRope.h | 65 unsigned End) in RopePiece() 66 : StrData(std::move(Str)), StartOffs(Start), EndOffs(End) {} in RopePiece() 199 void assign(const char *Start, const char *End) { in assign() argument 201 if (Start != End) in assign() 202 Chunks.insert(0, MakeRopeString(Start, End)); in assign() 205 void insert(unsigned Offset, const char *Start, const char *End) { in insert() argument 207 if (Start == End) return; in insert() 208 Chunks.insert(Offset, MakeRopeString(Start, End)); in insert() 218 RopePiece MakeRopeString(const char *Start, const char *End);
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRFinder.cpp | 49 SourceLocation End = Range.getEnd(); in visitSymbolOccurrence() local 50 if (!Start.isValid() || !Start.isFileID() || !End.isValid() || in visitSymbolOccurrence() 51 !End.isFileID() || !isPointWithin(Start, End)) in visitSymbolOccurrence() 62 bool isPointWithin(const SourceLocation Start, const SourceLocation End) { in isPointWithin() argument 64 return Point == Start || Point == End || in isPointWithin() 67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | NativeFunctionSymbol.cpp | 114 auto End = Syms.at(Sym.End); in findInlineFramesByVA() local 115 while (Start != End) { in findInlineFramesByVA() 118 for (; Start != End; ++Start) { in findInlineFramesByVA() 132 End = Syms.at(IS.End); in findInlineFramesByVA() 137 Start = Syms.at(IS.End); in findInlineFramesByVA() 138 if (Start == End) in findInlineFramesByVA()
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | WhitespaceManager.h | 252 void alignTrailingComments(unsigned Start, unsigned End, unsigned Column); 259 void alignEscapedNewlines(unsigned Start, unsigned End, unsigned Column); 266 void alignArrayInitializers(unsigned Start, unsigned End); 277 unsigned calculateCellWidth(unsigned Start, unsigned End, 282 CellDescriptions getCells(unsigned Start, unsigned End); 289 auto getNetWidth(const I &Start, const I &End, unsigned InitialSpaces) const { in getNetWidth() argument 291 for (auto PrevIter = Start; PrevIter != End; ++PrevIter) { in getNetWidth() 333 auto End = Start + Offset; in getMaximumNetWidth() local 335 std::max(MaxNetWidth, getNetWidth(Start, End, InitialSpaces)); in getMaximumNetWidth() 342 void alignToStartOfCell(unsigned Start, unsigned End);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kCollapseMOVEMPass.cpp | 42 MachineBasicBlock::iterator End; member in __anon143e10ef0111::MOVEMState 56 : Begin(nullptr), End(nullptr), Base(0), Start(INT_MIN), Stop(INT_MAX), in MOVEMState() 65 assert(End == nullptr); in setEnd() 66 End = MI; in setEnd() 82 assert(End != nullptr); in end() 83 return End; in end() 171 auto End = State.end(); in Finish() local 175 if (std::next(MI) == End) { in Finish() 181 while (MI != End) { in Finish() 189 BuildMI(MBB, End, DL, TII->get(M68k::MOVM32mp)) in Finish() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | GlobPattern.cpp | 30 uint8_t End = S[2]; in expand() 42 if (Start > End) in expand() 46 for (int C = Start; C <= End; ++C) in expand() 210 const char *const PEnd = P + Pat.size(), *const End = S + Str.size(); 212 while (S != End) { 35 uint8_t End = S[2]; expand() local 79 size_t End = S.find(']', 2); scan() local
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSection.cpp | 34 if (!End) in getEndSymbol() 35 End = Ctx.createTempSymbol("sec_end"); in getEndSymbol() 36 return End; in getEndSymbol() 39 bool MCSection::hasEnded() const { return End && End->isInSection(); } in hasEnded()
|