Home
last modified time | relevance | path

Searched refs:Ranges (Results 1 – 25 of 144) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRangeList.cpp43 if (empty() || Ranges.back().getUpper().slt(NewRange.getLower())) { in insert()
44 Ranges.push_back(NewRange); in insert()
50 if (NewRange.getUpper().slt(Ranges.front().getLower())) { in insert()
51 Ranges.insert(Ranges.begin(), NewRange); in insert()
56 Ranges, NewRange, [](const ConstantRange &a, const ConstantRange &b) { in insert()
59 if (LowerBound != Ranges.end() && LowerBound->contains(NewRange)) in insert()
63 SmallVector<ConstantRange, 2> ExistingTail(LowerBound, Ranges.end()); in insert()
64 Ranges.erase(LowerBound, Ranges.end()); in insert()
66 if (!Ranges.empty() && NewRange.getLower().sle(Ranges.back().getUpper())) { in insert()
67 APInt NewLower = Ranges.back().getLower(); in insert()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAddressRanges.h61 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/IR/
H A DConstantRangeList.h32 SmallVector<ConstantRange, 2> Ranges; variable
40 Ranges.push_back(R); in ConstantRangeList()
49 ArrayRef<ConstantRange> rangesRef() const { return Ranges; } in rangesRef()
50 SmallVectorImpl<ConstantRange>::iterator begin() { return Ranges.begin(); } in begin()
51 SmallVectorImpl<ConstantRange>::iterator end() { return Ranges.end(); } in end()
53 return Ranges.begin(); in begin()
56 return Ranges.end(); in end()
58 ConstantRange getRange(unsigned i) const { return Ranges[i]; } in getRange()
61 bool empty() const { return Ranges.empty(); } in empty()
65 uint32_t getBitWidth() const { return Ranges.front().getBitWidth(); } in getBitWidth()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DUnicodeCharRanges.h55 constexpr UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument
57 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument
64 bool contains(uint32_t C) const { return llvm::binary_search(Ranges, C); } in contains()
71 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid()
73 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid()
93 const CharRanges Ranges; variable
H A DSourceMgr.h221 const Twine &Msg, ArrayRef<SMRange> Ranges = {},
227 ArrayRef<SMRange> Ranges = {},
244 ArrayRef<SMRange> Ranges = {},
290 std::vector<std::pair<unsigned, unsigned>> Ranges; variable
304 ArrayRef<std::pair<unsigned, unsigned>> Ranges,
315 ArrayRef<std::pair<unsigned, unsigned>> getRanges() const { return Ranges; } in getRanges()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DInlineInfo.cpp24 for (auto Range : II.Ranges) { in operator <<()
40 if (II.Ranges.contains(Addr)) { in getInlineStackHelper()
112 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in lookup()
113 if (Inline.Ranges.empty()) in lookup()
117 if (!Inline.Ranges.contains(Addr)) { in lookup()
131 const auto ChildBaseAddr = Inline.Ranges[0].start(); in lookup()
153 SrcLocs.back().Offset = Addr - Inline.Ranges[0].start(); in lookup()
185 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in decode()
186 if (Inline.Ranges.empty()) in decode()
208 const auto ChildBaseAddr = Inline.Ranges[0].start(); in decode()
[all …]
H A DExtractRanges.cpp32 void encodeRanges(const AddressRanges &Ranges, FileWriter &O, in encodeRanges() argument
34 O.writeULEB(Ranges.size()); in encodeRanges()
35 if (Ranges.empty()) in encodeRanges()
37 for (auto Range : Ranges) in encodeRanges()
41 void decodeRanges(AddressRanges &Ranges, DataExtractor &Data, uint64_t BaseAddr, in decodeRanges() argument
43 Ranges.clear(); in decodeRanges()
45 Ranges.reserve(NumRanges); in decodeRanges()
47 Ranges.insert(decodeRange(Data, BaseAddr, Offset)); in decodeRanges()
H A DDwarfTransformer.cpp209 AddressRanges Ranges; in ConvertDWARFRanges() local
212 Ranges.insert({DwarfRange.LowPC, DwarfRange.HighPC}); in ConvertDWARFRanges()
214 return Ranges; in ConvertDWARFRanges()
240 if (Parent.Ranges.contains(InlineRange)) { in parseInlineInfo()
241 II.Ranges.insert(InlineRange); in parseInlineInfo()
273 if (II.Ranges.empty()) in parseInlineInfo()
465 const DWARFAddressRangesVector &Ranges = RangesOrError.get(); in handleDie() local
466 if (Ranges.empty()) in handleDie()
483 AddressRanges AllSubprogramRanges = ConvertDWARFRanges(Ranges); in handleDie()
486 for (const DWARFAddressRange &Range : Ranges) { in handleDie()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp88 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() argument
97 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); in emitDiagnostic()
100 SmallVector<CharSourceRange, 20> MutableRanges(Ranges); in emitDiagnostic()
124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic()
352 mapDiagnosticRanges(FullSourceLoc CaretLoc, ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() argument
358 for (const auto &Range : Ranges) { in mapDiagnosticRanges()
421 ArrayRef<CharSourceRange> Ranges, in emitCaret() argument
424 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitCaret()
432 ArrayRef<CharSourceRange> Ranges) { in emitSingleMacroExpansion() argument
439 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitSingleMacroExpansion()
[all …]
H A DSARIFDiagnostic.cpp41 StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() argument
59 Result = addLocationToResult(Result, Loc, PLoc, Ranges, *Diag); in emitDiagnosticMessage()
66 ArrayRef<CharSourceRange> Ranges, const Diagnostic &Diag) { in addLocationToResult() argument
83 for (const CharSourceRange Range : Ranges) { in addLocationToResult()
206 ArrayRef<CharSourceRange> Ranges) { in emitDiagnosticLoc() argument
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h78 ArrayRef<CharSourceRange> Ranges,
83 ArrayRef<CharSourceRange> Ranges) = 0;
87 SmallVectorImpl<CharSourceRange> &Ranges,
110 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints);
113 ArrayRef<CharSourceRange> Ranges);
115 ArrayRef<CharSourceRange> Ranges,
132 StringRef Message, ArrayRef<CharSourceRange> Ranges,
H A DTextDiagnostic.h87 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 DSARIFDiagnostic.h38 ArrayRef<CharSourceRange> Ranges,
43 ArrayRef<CharSourceRange> Ranges) override;
46 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument
63 ArrayRef<CharSourceRange> Ranges,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp50 SmallVectorImpl<SourceRange> &Ranges,
67 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() argument
81 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
90 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
98 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
214 SmallVector<SourceRange, 2> Ranges; in reportBug() local
220 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
228 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
236 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug()
244 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug()
[all …]
H A DMallocSizeofChecker.cpp231 SmallVector<SourceRange, 4> Ranges; in checkASTCodeBody() local
232 Ranges.push_back(CallRec.AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody()
233 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody()
235 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody()
241 categories::UnixAPI, OS.str(), L, Ranges); in checkASTCodeBody()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DInlineInfo.h65 AddressRanges Ranges; member
72 Ranges.clear(); in clear()
75 bool isValid() const { return !Ranges.empty(); } in isValid()
183 LHS.CallLine == RHS.CallLine && LHS.Ranges == RHS.Ranges &&
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DAffectedRangeManager.h28 const ArrayRef<CharSourceRange> Ranges) in AffectedRangeManager() argument
29 : SourceMgr(SourceMgr), Ranges(Ranges) {} in AffectedRangeManager()
59 const SmallVector<CharSourceRange, 8> Ranges; variable
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp240 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/include/llvm/DebugInfo/DWARF/
H A DDWARFVerifier.h75 std::vector<DWARFAddressRange> Ranges; member
84 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo()
85 : Ranges(std::move(Ranges)) {} in DieRangeInfo()
420 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugSuppression.cpp20 using Ranges = llvm::SmallVectorImpl<SourceRange>; typedef
83 static void initialize(const Decl *D, Ranges &ToInit) { in initialize()
120 CacheInitializer(Ranges &R) : Result(R) {} in CacheInitializer()
121 Ranges &Result;
203 Ranges &SuppressionRanges = InsertionResult.first->second; in isSuppressed()
H A DPlistDiagnostics.cpp135 void EmitRanges(raw_ostream &o, const ArrayRef<SourceRange> Ranges,
175 const ArrayRef<SourceRange> Ranges, in EmitRanges() argument
178 if (Ranges.empty()) in EmitRanges()
188 for (auto &R : Ranges) in EmitRanges()
317 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportEvent() local
318 EmitRanges(o, Ranges, indent); in ReportEvent()
401 ArrayRef<SourceRange> Ranges = P->getRanges(); in ReportMacroExpansions() local
402 EmitRanges(o, Ranges, indent); in ReportMacroExpansions()
434 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportNote() local
435 EmitRanges(o, Ranges, indent); in ReportNote()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp58 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/Frontend/HLSL/
H A DRootSignatureValidations.cpp262 std::array<ResourceRange, 8> Ranges = { in findOverlappingRanges() local
274 auto ClearRanges = [&Ranges]() { in findOverlappingRanges()
275 for (ResourceRange &Range : Ranges) in findOverlappingRanges()
289 ResourceRange &VisRange = Ranges[llvm::to_underlying(Info.Visibility)]; in findOverlappingRanges()
305 ? ArrayRef<ResourceRange>{Ranges}.drop_front() in findOverlappingRanges()
306 : ArrayRef<ResourceRange>{Ranges}.take_front(); in findOverlappingRanges()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp275 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 DMachineMemOperand.h184 const MDNode *Ranges; variable
195 const MDNode *Ranges = nullptr,
202 const MDNode *Ranges = nullptr,
272 const MDNode *getRanges() const { return Ranges; } in getRanges()
339 void clearRanges() { Ranges = nullptr; } in clearRanges()

123456