| /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 | 68 SlotIndex Start, End; in updateFromLiveIns() local 69 std::tie(Start, End) = Indexes->getMBBRange(MBB); in updateFromLiveIns() 73 End = I.Kill; in updateFromLiveIns() 81 Updater.add(Start, End, I.Value); in updateFromLiveIns() 152 SlotIndex Begin, End; in isDefOnEntry() local 153 std::tie(Begin, End) = Indexes->getMBBRange(&B); in isDefOnEntry() 158 LiveRange::iterator UB = upper_bound(LR, End.getPrevSlot()); in isDefOnEntry() 166 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry() 174 if (UndefOnEntry[N] || LR.isUndefIn(Undefs, Begin, End)) { in isDefOnEntry() 246 SlotIndex Start, End; in findReachingDefs() 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 | 116 RandomAccessIterator End, in medianOf3() argument 118 RandomAccessIterator Mid = Start + (std::distance(Start, End) / 2); in medianOf3() 119 return Comp(*Start, *(End - 1)) in medianOf3() 120 ? (Comp(*Mid, *(End - 1)) ? (Comp(*Start, *Mid) ? Mid : Start) in medianOf3() 121 : End - 1) in medianOf3() 122 : (Comp(*Mid, *Start) ? (Comp(*(End - 1), *Mid) ? Mid : End - 1) in medianOf3() 127 void parallel_quick_sort(RandomAccessIterator Start, RandomAccessIterator End, in parallel_quick_sort() argument 130 if (std::distance(Start, End) < detail::MinParallelSize || Depth == 0) { in parallel_quick_sort() 131 llvm::sort(Start, End, Comp); in parallel_quick_sort() 136 auto Pivot = medianOf3(Start, End, Comp); in parallel_quick_sort() [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/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 | RewriteRope.h | 66 unsigned End) in RopePiece() 67 : StrData(std::move(Str)), StartOffs(Start), EndOffs(End) {} in RopePiece() 198 void assign(const char *Start, const char *End) { in assign() argument 200 if (Start != End) in assign() 201 Chunks.insert(0, MakeRopeString(Start, End)); in assign() 204 void insert(unsigned Offset, const char *Start, const char *End) { in insert() argument 206 if (Start == End) in insert() 208 Chunks.insert(Offset, MakeRopeString(Start, End)); in insert() 219 LLVM_ABI RopePiece MakeRopeString(const char *Start, const char *End);
|
| 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 …]
|
| H A D | StmtOpenACC.h | 46 SourceLocation End) in OpenACCConstructStmt() argument 47 : Stmt(SC), Kind(K), Range(Start, End), DirectiveLoc(DirectiveLoc) {} in OpenACCConstructStmt() 91 SourceLocation End, Stmt *AssocStmt) in OpenACCAssociatedStmtConstruct() argument 92 : OpenACCConstructStmt(SC, K, Start, DirectiveLoc, End), in OpenACCAssociatedStmtConstruct() 150 SourceLocation DirectiveLoc, SourceLocation End, in OpenACCComputeConstruct() argument 154 DirectiveLoc, End, StructuredBlock) { in OpenACCComputeConstruct() 207 SourceLocation DirLoc, SourceLocation End, 259 SourceLocation DirectiveLoc, SourceLocation End, in OpenACCCombinedConstruct() argument 263 DirectiveLoc, End, StructuredBlock) { in OpenACCCombinedConstruct() 282 SourceLocation DirectiveLoc, SourceLocation End, [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | ExecutorAddress.h | 224 ExecutorAddrRange(ExecutorAddr Start, ExecutorAddr End) in ExecutorAddrRange() 225 : Start(Start), End(End) {} in ExecutorAddrRange() 227 : Start(Start), End(Start + Size) {} in ExecutorAddrRange() 230 static ExecutorAddrRange fromPtrRange(T *Start, T *End, 233 ExecutorAddr::fromPtr(End, Unwrap)}; 242 bool empty() const { return Start == End; } in empty() 243 ExecutorAddrDiff size() const { return End - Start; } in size() 247 return LHS.Start == RHS.Start && LHS.End == RHS.End; 256 (LHS.Start == RHS.Start && LHS.End < RHS.End); 261 (LHS.Start == RHS.Start && LHS.End <= RHS.End); [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 | 248 const __llvm_profile_data *End); 252 const __llvm_profile_data *End); 258 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End); 261 uint64_t __llvm_profile_get_counters_size(const char *Begin, const char *End); 265 const char *End); 268 uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End); 272 const VTableProfData *End); 276 const VTableProfData *End);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNIterativeScheduler.cpp | 47 MachineBasicBlock::iterator End, in printRegion() argument 56 for (; I != End && MaxInstNum; ++I, --MaxInstNum) { in printRegion() 61 if (I != End) { in printRegion() 63 I = std::prev(End); in printRegion() 68 if (End != BB->end()) { // print boundary inst if present in printRegion() 70 if (LIS) OS << LIS->getInstructionIndex(*End) << '\t'; in printRegion() 71 OS << *End; in printRegion() 78 MachineBasicBlock::iterator End, in printLivenessInfo() argument 86 const auto BottomMI = End == BB->end() ? std::prev(End) : End; in printLivenessInfo() 96 printRegion(OS, R->Begin, R->End, LIS, 1); in printRegions() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | StmtOpenACC.cpp | 50 SourceLocation DirLoc, SourceLocation End, in OpenACCLoopConstruct() argument 54 End, Loop), in OpenACCLoopConstruct() 120 SourceLocation DirectiveLoc, SourceLocation End, in Create() argument 127 OpenACCDataConstruct(Start, DirectiveLoc, End, Clauses, StructuredBlock); in Create() 143 SourceLocation End, ArrayRef<const OpenACCClause *> Clauses) { in Create() argument 148 new (Mem) OpenACCEnterDataConstruct(Start, DirectiveLoc, End, Clauses); in Create() 164 SourceLocation End, ArrayRef<const OpenACCClause *> Clauses) { in Create() argument 169 new (Mem) OpenACCExitDataConstruct(Start, DirectiveLoc, End, Clauses); in Create() 185 SourceLocation End, ArrayRef<const OpenACCClause *> Clauses, in Create() argument 190 auto *Inst = new (Mem) OpenACCHostDataConstruct(Start, DirectiveLoc, End, in Create() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
| H A D | debug.cpp | 58 const char *End = Start; in debugTypeEnabled() local 61 if (*End == '\0' || *End == ',') { in debugTypeEnabled() 62 size_t ItemLen = End - Start; in debugTypeEnabled() 65 if (*End == '\0') in debugTypeEnabled() 67 Start = End + 1; in debugTypeEnabled() 69 ++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/libc/src/__support/CPP/ |
| H A D | string_view.h | 42 for (const char *End = Str;; ++End) in length() local 43 if (*End == '\0') in length() 44 return static_cast<size_t>(End - Str); in length() 195 size_t End = npos) const { 196 End = End >= size() ? size() : End + 1; 197 for (; End > 0; --End) 198 if ((*this)[End - 1] == c) 199 return End - 1;
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | BitcastBuffer.cpp | 80 Bits End = InitializedBits.back().End; in markInitialized() local 81 if (End <= Offset) { in markInitialized() 85 if (End == (Offset - Bits(1))) { in markInitialized() 86 InitializedBits.back().End = Element.End; in markInitialized() 104 assert(Prev.End.N < Cur.Start.N); in markInitialized() 118 if (BR.contains(Range.End)) { in rangeInitialized() 119 Sum += (Range.End - BR.Start + Bits(1)); in rangeInitialized() 127 Sum += (BR.End - Range.Start + Bits(1)); in rangeInitialized()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 141 const SCEV *End = nullptr; member in __anona4c10e620111::InductiveRangeCheck 146 const SCEV *&End); 156 const SCEV *&End); 160 const SCEVAddRecExpr *&Index, const SCEV *&End); 165 const SCEV *getEnd() const { return End; } in getEnd() 174 End->print(OS); in print() 192 const SCEV *End; member in __anona4c10e620111::InductiveRangeCheck::Range 195 Range(const SCEV *Begin, const SCEV *End) : Begin(Begin), End(End) { in Range() argument 196 assert(Begin->getType() == End->getType() && "ill-typed range!"); in Range() 201 const SCEV *getEnd() const { return End; } in getEnd() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFinder.cpp | 47 SourceLocation End = Range.getEnd(); in visitSymbolOccurrence() local 48 if (!Start.isValid() || !Start.isFileID() || !End.isValid() || in visitSymbolOccurrence() 49 !End.isFileID() || !isPointWithin(Start, End)) in visitSymbolOccurrence() 60 bool isPointWithin(const SourceLocation Start, const SourceLocation End) { in isPointWithin() argument 62 return Point == Start || Point == End || in isPointWithin() 65 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()
|