/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRangeList.cpp | 44 if (empty() || Ranges.back().getUpper().slt(NewRange.getLower())) { in insert() 45 Ranges.push_back(NewRange); in insert() 48 if (NewRange.getUpper().slt(Ranges.front().getLower())) { in insert() 49 Ranges.insert(Ranges.begin(), NewRange); in insert() 54 Ranges, NewRange, [](const ConstantRange &a, const ConstantRange &b) { in insert() 57 if (LowerBound != Ranges.end() && LowerBound->contains(NewRange)) in insert() 61 SmallVector<ConstantRange, 2> ExistingTail(LowerBound, Ranges.end()); in insert() 62 Ranges.erase(LowerBound, Ranges.end()); in insert() 64 if (!Ranges.empty() && NewRange.getLower().sle(Ranges.back().getUpper())) { in insert() 65 APInt NewLower = Ranges.back().getLower(); in insert() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | AddressRanges.h | 61 Collection Ranges; variable 64 void clear() { Ranges.clear(); } in clear() 65 bool empty() const { return Ranges.empty(); } in empty() 67 return find(Addr, Addr + 1) != Ranges.end(); in contains() 70 return find(Range.start(), Range.end()) != Ranges.end(); in contains() 72 void reserve(size_t Capacity) { Ranges.reserve(Capacity); } in reserve() 73 size_t size() const { return Ranges.size(); } in size() 77 if (It == Ranges.end()) in getRangeThatContains() 83 typename Collection::const_iterator begin() const { return Ranges.begin(); } in begin() 84 typename Collection::const_iterator end() const { return Ranges.end(); } in end() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | UnicodeCharRanges.h | 55 constexpr UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument 57 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument 65 return std::binary_search(Ranges.begin(), Ranges.end(), C); in contains() 73 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid() 75 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid() 95 const CharRanges Ranges; variable
|
H A D | SourceMgr.h | 220 ArrayRef<SMRange> Ranges = {}, 226 ArrayRef<SMRange> Ranges = {}, 243 ArrayRef<SMRange> Ranges = {}, 289 std::vector<std::pair<unsigned, unsigned>> Ranges; variable 302 ArrayRef<std::pair<unsigned, unsigned>> Ranges, 313 ArrayRef<std::pair<unsigned, unsigned>> getRanges() const { return Ranges; } in getRanges()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRangeList.h | 31 SmallVector<ConstantRange, 2> Ranges; variable 39 Ranges.push_back(R); in ConstantRangeList() 48 ArrayRef<ConstantRange> rangesRef() const { return Ranges; } in rangesRef() 49 SmallVectorImpl<ConstantRange>::iterator begin() { return Ranges.begin(); } in begin() 50 SmallVectorImpl<ConstantRange>::iterator end() { return Ranges.end(); } in end() 52 return Ranges.begin(); in begin() 55 return Ranges.end(); in end() 57 ConstantRange getRange(unsigned i) const { return Ranges[i]; } in getRange() 60 bool empty() const { return Ranges.empty(); } in empty() 66 size_t size() const { return Ranges.size(); } in size() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
H A D | InlineInfo.cpp | 25 for (auto Range : II.Ranges) { in operator <<() 41 if (II.Ranges.contains(Addr)) { in getInlineStackHelper() 113 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in lookup() 114 if (Inline.Ranges.empty()) in lookup() 118 if (!Inline.Ranges.contains(Addr)) { in lookup() 132 const auto ChildBaseAddr = Inline.Ranges[0].start(); in lookup() 154 SrcLocs.back().Offset = Addr - Inline.Ranges[0].start(); in lookup() 186 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in decode() 187 if (Inline.Ranges.empty()) in decode() 209 const auto ChildBaseAddr = Inline.Ranges[ in decode() [all...] |
H A D | ExtractRanges.cpp | 33 void encodeRanges(const AddressRanges &Ranges, FileWriter &O, in encodeRanges() argument 35 O.writeULEB(Ranges.size()); in encodeRanges() 36 if (Ranges.empty()) in encodeRanges() 38 for (auto Range : Ranges) in encodeRanges() 42 void decodeRanges(AddressRanges &Ranges, DataExtractor &Data, uint64_t BaseAddr, in decodeRanges() argument 44 Ranges.clear(); in decodeRanges() 46 Ranges.reserve(NumRanges); in decodeRanges() 48 Ranges.insert(decodeRange(Data, BaseAddr, Offset)); in decodeRanges()
|
H A D | DwarfTransformer.cpp | 212 AddressRanges Ranges; in ConvertDWARFRanges() local 215 Ranges.insert({DwarfRange.LowPC, DwarfRange.HighPC}); in ConvertDWARFRanges() 217 return Ranges; in ConvertDWARFRanges() 243 if (Parent.Ranges.contains(InlineRange)) { in parseInlineInfo() 244 II.Ranges.insert(InlineRange); in parseInlineInfo() 276 if (II.Ranges.empty()) in parseInlineInfo() 456 const DWARFAddressRangesVector &Ranges = RangesOrError.get(); in handleDie() local 457 if (Ranges.empty()) in handleDie() 474 AddressRanges AllSubprogramRanges = ConvertDWARFRanges(Ranges); in handleDie() 477 for (const DWARFAddressRange &Range : Ranges) { in handleDie() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | AffectedRangeManager.h | 28 const ArrayRef<CharSourceRange> Ranges) in AffectedRangeManager() argument 29 : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {} in AffectedRangeManager() 59 const SmallVector<CharSourceRange, 8> Ranges; variable
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DereferenceChecker.cpp | 53 SmallVectorImpl<SourceRange> &Ranges, 64 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() argument 78 Ranges.push_back(DR->getSourceRange()); in AddDerefSource() 87 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 95 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 187 SmallVector<SourceRange, 2> Ranges; in reportBug() local 193 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug() 201 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug() 209 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug() 217 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug() [all …]
|
H A D | MallocSizeofChecker.cpp | 233 SmallVector<SourceRange, 4> Ranges; in checkASTCodeBody() local 234 Ranges.push_back(CallRec.AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody() 235 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody() 237 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody() 243 categories::UnixAPI, OS.str(), L, Ranges); in checkASTCodeBody()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 89 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() argument 98 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); in emitDiagnostic() 101 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic() 102 Ranges.end()); in emitDiagnostic() 126 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 356 mapDiagnosticRanges(FullSourceLoc CaretLoc, ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() argument 362 for (const auto &Range : Ranges) { in mapDiagnosticRanges() 425 ArrayRef<CharSourceRange> Ranges, in emitCaret() argument 428 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitCaret() 436 ArrayRef<CharSourceRange> Ranges) { in emitSingleMacroExpansion() argument [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 79 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges) = 0; 88 SmallVectorImpl<CharSourceRange> &Ranges, 111 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints); 114 ArrayRef<CharSourceRange> Ranges); 116 ArrayRef<CharSourceRange> Ranges, 133 StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
H A D | TextDiagnostic.h | 87 ArrayRef<CharSourceRange> Ranges, 92 ArrayRef<CharSourceRange> Ranges) override; 95 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument 97 emitSnippetAndCaret(Loc, Level, Ranges, Hints); in emitCodeContext() 112 SmallVectorImpl<CharSourceRange> &Ranges,
|
H A D | SARIFDiagnostic.h | 38 ArrayRef<CharSourceRange> Ranges, 43 ArrayRef<CharSourceRange> Ranges) override; 46 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument 63 ArrayRef<CharSourceRange> Ranges,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
H A D | InlineInfo.h | 41 /// address of the containing parent InlineInfo's first "Ranges" member. This 47 /// - The AddressRanges member "Ranges" is encoded using an appropriate base 64 AddressRanges Ranges; member 71 Ranges.clear(); in clear() 74 bool isValid() const { return !Ranges.empty(); } in isValid() 182 LHS.CallLine == RHS.CallLine && LHS.Ranges == RHS.Ranges &&
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
H A D | DWARFVerifier.h | 55 std::vector<DWARFAddressRange> Ranges; member 64 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo() 65 : Ranges(std::move(Ranges)) {} in DieRangeInfo() 373 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugSuppression.cpp | 18 using Ranges = llvm::SmallVectorImpl<SourceRange>; typedef 81 static void initialize(const Decl *D, Ranges &ToInit) { in initialize() 118 CacheInitializer(Ranges &R) : Result(R) {} in CacheInitializer() 119 Ranges &Result; 178 Ranges &SuppressionRanges = InsertionResult.first->second; in isSuppressed()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_diag.cpp | 240 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument 244 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound() 247 Ranges[I].getStart().getMemoryLocation())) in upperBound() 248 Best = &Ranges[I]; in upperBound() 263 Range *Ranges, unsigned NumRanges, in PrintMemorySnippet() argument 271 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet() 272 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet() 296 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet() 300 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() 320 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
H A D | Annotations.cpp | 58 Ranges[NewRange.Name].push_back(All.size() - 1); in Annotations() 134 auto I = Ranges.find(Name); in rangeWithPayload() 135 require(I != Ranges.end() && I->getValue().size() == 1, in rangeWithPayload() 152 auto Iter = Ranges.find(Name); in rangesWithPayload() 153 if (Iter == Ranges.end()) in rangesWithPayload() 168 for (const llvm::StringRef &Name : Ranges.keys()) { in all_ranges()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SourceMgr.cpp | 275 const Twine &Msg, ArrayRef<SMRange> Ranges, in GetMessage() argument 307 for (SMRange R : Ranges) { in GetMessage() 354 ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, in PrintMessage() argument 356 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage() 360 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument 362 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage() 381 ArrayRef<std::pair<unsigned, unsigned>> Ranges, in SMDiagnostic() argument 384 Kind(Kind), Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic() 546 for (const std::pair<unsigned, unsigned> &R : Ranges) in print()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineMemOperand.h | 182 const MDNode *Ranges; variable 192 const MDNode *Ranges = nullptr, 198 const MDNode *Ranges = nullptr, 268 const MDNode *getRanges() const { return Ranges; } in getRanges() 335 void clearRanges() { Ranges = nullptr; } in clearRanges()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | Attributor.h | 5790 VecTy Ranges; 5792 RangeList(const RangeTy &R) { Ranges.push_back(R); } 5794 Ranges.reserve(Offsets.size()); 5798 Ranges.emplace_back(Offsets[i], Size); 5803 iterator begin() { return Ranges.begin(); } 5804 iterator end() { return Ranges.end(); } 5805 const_iterator begin() const { return Ranges.begin(); } 5806 const_iterator end() const { return Ranges.end(); } 5811 assert((Ranges.empty() || RangeTy::OffsetLessThan(Ranges.back(), R)) && 5813 Ranges.push_back(R); [all …]
|
/freebsd/contrib/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 239 std::vector<tooling::Range> &Ranges) { in fillRanges() argument 275 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 308 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 445 std::vector<tooling::Range> Ranges; in format() local 446 if (fillRanges(Code.get(), Ranges)) in format() 490 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format() 508 Ranges = tooling::calculateRangesAfterReplacements(Replaces, Ranges); in format() 511 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
H A D | BugReporter.h | 132 SmallVector<SourceRange, 4> Ranges; variable 202 ArrayRef<SourceRange> Ranges = {}) { 205 for (const auto &R : Ranges) 223 assert((R.isValid() || Ranges.empty()) && "Invalid range can only be used " in addRange() 225 Ranges.push_back(R); in addRange() 230 return Ranges; in getRanges() 647 ArrayRef<SourceRange> Ranges = std::nullopt, 653 ArrayRef<SourceRange> Ranges = std::nullopt,
|