Home
last modified time | relevance | path

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

1234

/external/llvm/include/llvm/Support/
DUnicodeCharRanges.h54 LLVM_CONSTEXPR UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument
56 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument
64 return std::binary_search(Ranges.begin(), Ranges.end(), C); in contains()
72 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid()
74 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid()
94 const CharRanges Ranges; variable
DSourceMgr.h163 ArrayRef<SMRange> Ranges = None,
169 ArrayRef<SMRange> Ranges = None,
186 ArrayRef<SMRange> Ranges = None,
240 std::vector<std::pair<unsigned, unsigned> > Ranges; variable
256 ArrayRef<std::pair<unsigned,unsigned> > Ranges,
268 return Ranges; in getRanges()
/external/llvm/lib/CodeGen/AsmPrinter/
DDbgValueHistoryCalculator.cpp41 auto &Ranges = VarInstrRanges[Var]; in startInstrRange() local
42 if (!Ranges.empty() && Ranges.back().second == nullptr && in startInstrRange()
43 Ranges.back().first->isIdenticalTo(&MI)) { in startInstrRange()
45 << "\t" << Ranges.back().first << "\t" << MI << "\n"); in startInstrRange()
48 Ranges.push_back(std::make_pair(&MI, nullptr)); in startInstrRange()
53 auto &Ranges = VarInstrRanges[Var]; in endInstrRange() local
55 assert(!Ranges.empty() && Ranges.back().second == nullptr); in endInstrRange()
58 assert(Ranges.back().first->getParent() == MI.getParent()); in endInstrRange()
59 Ranges.back().second = &MI; in endInstrRange()
66 const auto &Ranges = I->second; in getRegisterForVar() local
[all …]
DDwarfUnit.h55 SmallVector<RangeSpan, 2> Ranges; variable
58 RangeSpanList(MCSymbol *Sym, SmallVector<RangeSpan, 2> Ranges) in RangeSpanList() argument
59 : RangeSym(Sym), Ranges(std::move(Ranges)) {} in RangeSpanList()
61 const SmallVectorImpl<RangeSpan> &getRanges() const { return Ranges; } in getRanges()
62 void addRange(RangeSpan Range) { Ranges.push_back(Range); } in addRange()
DDwarfDebug.cpp321 const SmallVectorImpl<InsnRange> &Ranges = Scope->getRanges(); in isLexicalScopeDIENull() local
322 if (Ranges.empty()) in isLexicalScopeDIENull()
325 if (Ranges.size() > 1) in isLexicalScopeDIENull()
330 return !getLabelAfterInsn(Ranges.front().second); in isLexicalScopeDIENull()
797 const DbgValueHistoryMap::InstrRanges &Ranges) { in buildLocationList() argument
800 for (auto I = Ranges.begin(), E = Ranges.end(); I != E; ++I) { in buildLocationList()
826 else if (std::next(I) == Ranges.end()) in buildLocationList()
889 const auto &Ranges = I.second; in collectVariableInfo() local
890 if (Ranges.empty()) in collectVariableInfo()
903 const MachineInstr *MInsn = Ranges.front().first; in collectVariableInfo()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDereferenceChecker.cpp44 SmallVectorImpl<SourceRange> &Ranges,
53 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() argument
67 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
76 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
84 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
105 SmallVector<SourceRange, 2> Ranges; in reportBug() local
128 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
136 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug()
145 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug()
154 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts(), in reportBug()
[all …]
DMallocSizeofChecker.cpp232 SmallVector<SourceRange, 4> Ranges; in checkASTCodeBody() local
233 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody()
234 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody()
236 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody()
243 categories::UnixAPI, OS.str(), L, Ranges); in checkASTCodeBody()
/external/clang/include/clang/Frontend/
DTextDiagnostic.h81 ArrayRef<CharSourceRange> Ranges,
87 ArrayRef<CharSourceRange> Ranges,
92 SmallVectorImpl<CharSourceRange>& Ranges, in emitCodeContext() argument
95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext()
111 SmallVectorImpl<CharSourceRange>& Ranges,
DDiagnosticRenderer.h78 ArrayRef<CharSourceRange> Ranges,
84 ArrayRef<CharSourceRange> Ranges,
89 SmallVectorImpl<CharSourceRange>& Ranges,
118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints,
122 ArrayRef<CharSourceRange> Ranges,
143 StringRef Message, ArrayRef<CharSourceRange> Ranges,
/external/compiler-rt/lib/ubsan/
Dubsan_diag.cc197 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument
201 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound()
204 Ranges[I].getStart().getMemoryLocation())) in upperBound()
205 Best = &Ranges[I]; in upperBound()
220 Range *Ranges, unsigned NumRanges, in renderMemorySnippet() argument
228 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in renderMemorySnippet()
229 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in renderMemorySnippet()
252 Range *InRange = upperBound(Min, Ranges, NumRanges); in renderMemorySnippet()
256 InRange = upperBound(P, Ranges, NumRanges); in renderMemorySnippet()
273 InRange = upperBound(P, Ranges, NumRanges); in renderMemorySnippet()
[all …]
/external/llvm/unittests/Support/
DSourceMgrTest.cpp41 const Twine &Msg, ArrayRef<SMRange> Ranges, in printMessage() argument
44 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
132 SMRange Ranges[] = { getRange(0, 3), getRange(4, 3) }; in TEST_F() local
133 printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None); in TEST_F()
143 SMRange Ranges[] = { getRange(0, 3), getRange(2, 4) }; in TEST_F() local
144 printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None); in TEST_F()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp126 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() argument
136 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); in emitDiagnostic()
139 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic()
140 Ranges.end()); in emitDiagnostic()
166 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); in emitDiagnostic()
325 ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() argument
330 for (ArrayRef<CharSourceRange>::const_iterator I = Ranges.begin(), in mapDiagnosticRanges()
331 E = Ranges.end(); in mapDiagnosticRanges()
389 ArrayRef<CharSourceRange> Ranges, in emitCaret() argument
393 mapDiagnosticRanges(Loc, Ranges, SpellingRanges, &SM); in emitCaret()
[all …]
DSerializedDiagnosticPrinter.cpp71 ArrayRef<CharSourceRange> Ranges,
77 ArrayRef<CharSourceRange> Ranges, in emitDiagnosticLoc() argument
85 SmallVectorImpl<CharSourceRange>& Ranges,
205 void EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges,
693 ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() argument
721 void SDiagsWriter::EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, in EmitCodeContext() argument
729 for (ArrayRef<CharSourceRange>::iterator I = Ranges.begin(), E = Ranges.end(); in EmitCodeContext()
751 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument
754 Writer.EmitCodeContext(Ranges, Hints, SM); in emitCodeContext()
/external/llvm/lib/Support/
DSourceMgr.cpp137 ArrayRef<SMRange> Ranges, in GetMessage() argument
170 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { in GetMessage()
171 SMRange R = Ranges[i]; in GetMessage()
217 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
219 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage()
223 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
225 PrintMessage(llvm::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage()
235 ArrayRef<std::pair<unsigned,unsigned> > Ranges, in SMDiagnostic()
238 Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic()
407 for (unsigned r = 0, e = Ranges.size(); r != e; ++r) { in print()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmParser.h124 ArrayRef<SMRange> Ranges = None) = 0;
130 ArrayRef<SMRange> Ranges = None) = 0;
137 ArrayRef<SMRange> Ranges = None) = 0;
147 bool TokError(const Twine &Msg, ArrayRef<SMRange> Ranges = None);
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp205 std::list<MemsetRange> Ranges; member in __anon8e9205830211::MemsetRanges
212 const_iterator begin() const { return Ranges.begin(); } in begin()
213 const_iterator end() const { return Ranges.end(); } in end()
214 bool empty() const { return Ranges.empty(); } in empty()
254 range_iterator I = Ranges.begin(), E = Ranges.end(); in addRange()
263 MemsetRange &R = *Ranges.insert(I, MemsetRange()); in addRange()
303 Ranges.erase(NextI); in addRange()
384 MemsetRanges Ranges(DL); in INITIALIZE_PASS_DEPENDENCY() local
411 Ranges.addStore(Offset, NextStore); in INITIALIZE_PASS_DEPENDENCY()
424 Ranges.addMemSet(Offset, MSI); in INITIALIZE_PASS_DEPENDENCY()
[all …]
/external/clang/tools/clang-format/
DClangFormat.cpp126 std::vector<CharSourceRange> &Ranges) { in fillRanges() argument
147 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges()
180 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges()
222 std::vector<CharSourceRange> Ranges; in format() local
223 if (fillRanges(Sources, ID, Code.get(), Ranges)) in format()
228 tooling::Replacements Replaces = reformat(FormatStyle, Sources, ID, Ranges); in format()
/external/llvm/lib/MC/MCParser/
DMCAsmParser.cpp36 bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) { in TokError() argument
37 Error(getLexer().getLoc(), Msg, Ranges); in TokError()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugInfoEntry.cpp97 static void dumpRanges(raw_ostream &OS, const DWARFAddressRangesVector& Ranges, in dumpRanges() argument
99 if (Ranges.empty()) in dumpRanges()
102 for (const auto &Range: Ranges) { in dumpRanges()
351 const DWARFUnit *U, DWARFAddressRangesVector& Ranges) const { in collectChildrenAddressRanges()
356 Ranges.insert(Ranges.end(), DIERanges.begin(), DIERanges.end()); in collectChildrenAddressRanges()
361 Child->collectChildrenAddressRanges(U, Ranges); in collectChildrenAddressRanges()
/external/clang/lib/StaticAnalyzer/Core/
DRangeConstraintManager.cpp344 const RangeSet *Ranges = State->get<ConstraintRange>(Sym); in checkNull() local
347 if (!Ranges) in checkNull()
351 if (const llvm::APSInt *Value = Ranges->getConcreteValue()) in checkNull()
359 if (Ranges->Intersect(BV, F, Zero, Zero).isEmpty()) in checkNull()
576 ConstraintRangeTy Ranges = St->get<ConstraintRange>(); in print() local
578 if (Ranges.isEmpty()) { in print()
584 for (ConstraintRangeTy::iterator I=Ranges.begin(), E=Ranges.end(); I!=E; ++I){ in print()
DPlistDiagnostics.cpp161 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportEvent() local
163 if (!Ranges.empty()) { in ReportEvent()
167 for (auto &R : Ranges) in ReportEvent()
316 ArrayRef<SourceRange> Ranges = piece->getRanges(); in FlushDiagnosticsImpl() local
317 for (ArrayRef<SourceRange>::iterator I = Ranges.begin(), in FlushDiagnosticsImpl()
318 E = Ranges.end(); I != E; ++I) { in FlushDiagnosticsImpl()
/external/llvm/include/llvm/CodeGen/
DMachineMemOperand.h96 const MDNode *Ranges; variable
123 const MDNode *Ranges = nullptr);
170 const MDNode *getRanges() const { return Ranges; } in getRanges()
DLexicalScopes.h65 SmallVectorImpl<InsnRange> &getRanges() { return Ranges; } in getRanges()
93 Ranges.push_back(InsnRange(FirstInsn, LastInsn));
128 SmallVector<InsnRange, 4> Ranges; variable
/external/clang/unittests/Format/
DFormatTestProto.cpp26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format() local
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
/external/llvm/lib/TableGen/
DTGParser.cpp563 bool TGParser::ParseRangePiece(std::vector<unsigned> &Ranges) { in ParseRangePiece() argument
576 Ranges.push_back(Start); in ParseRangePiece()
596 Ranges.push_back(Start); in ParseRangePiece()
599 Ranges.push_back(Start); in ParseRangePiece()
627 bool TGParser::ParseOptionalRangeList(std::vector<unsigned> &Ranges) { in ParseOptionalRangeList() argument
635 Ranges = ParseRangeList(); in ParseOptionalRangeList()
636 if (Ranges.empty()) return true; in ParseOptionalRangeList()
649 bool TGParser::ParseOptionalBitList(std::vector<unsigned> &Ranges) { in ParseOptionalBitList() argument
657 Ranges = ParseRangeList(); in ParseOptionalBitList()
658 if (Ranges.empty()) return true; in ParseOptionalBitList()
[all …]

1234