Home
last modified time | relevance | path

Searched refs:Range (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAddressRanges.h69 bool contains(AddressRange Range) const { in contains() argument
70 return find(Range.start(), Range.end()) != Ranges.end(); in contains()
123 Collection::const_iterator insert(AddressRange Range) { in insert() argument
124 if (Range.empty()) in insert()
127 auto It = llvm::upper_bound(Ranges, Range); in insert()
129 while (It2 != Ranges.end() && It2->start() <= Range.end()) in insert()
132 Range = {Range.start(), std::max(Range.end(), std::prev(It2)->end())}; in insert()
135 if (It != Ranges.begin() && Range.start() <= std::prev(It)->end()) { in insert()
137 *It = {It->start(), std::max(It->end(), Range.end())}; in insert()
141 return Ranges.insert(It, Range); in insert()
[all …]
H A DSTLExtras.h409 template <typename Range>
411 decltype(adl_rbegin(std::declval<Range &>()));
413 template <typename Range>
415 is_detected<check_has_free_function_rbegin, Range>::value;
572 make_filter_range(RangeT &&Range, PredicateT Pred) {
576 FilterIteratorT(std::begin(std::forward<RangeT>(Range)),
577 std::end(std::forward<RangeT>(Range)), Pred),
578 FilterIteratorT(std::end(std::forward<RangeT>(Range)),
579 std::end(std::forward<RangeT>(Range)), Pred));
656 make_early_inc_range(RangeT &&Range) {
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp31 StringRef clang::tooling::getText(CharSourceRange Range, in getText() argument
33 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
37 CharSourceRange clang::tooling::maybeExtendRange(CharSourceRange Range, in maybeExtendRange() argument
40 CharSourceRange R = Lexer::getAsCharRange(Range, Context.getSourceManager(), in maybeExtendRange()
43 return Range; in maybeExtendRange()
49 return Range; in maybeExtendRange()
50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange()
53 llvm::Error clang::tooling::validateRange(const CharSourceRange &Range, in validateRange() argument
56 if (Range.isInvalid()) in validateRange()
60 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateRange()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRangeList.cpp17 auto Range = RangesRef[0]; in isOrderedRanges() local
18 if (Range.getLower().sge(Range.getUpper())) in isOrderedRanges()
101 for (auto &Range : Ranges) { in subtract() local
102 if (SubRange.getUpper().sle(Range.getLower()) || in subtract()
103 Range.getUpper().sle(SubRange.getLower())) { in subtract()
108 Result.push_back(Range); in subtract()
109 } else if (Range.getLower().sle(SubRange.getLower()) && in subtract()
110 SubRange.getUpper().sle(Range.getUpper())) { in subtract()
116 AppendRangeIfNonEmpty(Range.getLower(), SubRange.getLower()); in subtract()
117 AppendRangeIfNonEmpty(SubRange.getUpper(), Range.getUpper()); in subtract()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp46 SourceRange Range) in InclusionDirective() argument
47 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes), in InclusionDirective()
60 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange() argument
61 if (Range.isInvalid()) in getPreprocessedEntitiesInRange()
64 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange()
69 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range); in getPreprocessedEntitiesInRange()
71 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange()
137 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow() argument
138 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow()
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFunctionInfo.h89 AddressRange Range;
99 : Range(Addr, Addr + Size), Name(N) {}
185 uint64_t startAddress() const { return Range.start(); }
186 uint64_t endAddress() const { return Range.end(); } in startAddress()
187 uint64_t size() const { return Range.size(); } in endAddress()
190 Range = {0, 0}; in clear()
198 return LHS.Range == RHS.Range && LHS.Name == RHS.Name &&
220 if (LHS.Range != RHS.Range)
90 AddressRange Range; global() member
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_range.h21 struct Range { struct
26 inline bool operator==(const Range &lhs, const Range &rhs) { argument
30 inline bool operator!=(const Range &lhs, const Range &rhs) {
35 void Intersect(ArrayRef<Range> a, ArrayRef<Range> b,
36 InternalMmapVectorNoCtor<Range> &output);
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Annotations/
H A DAnnotations.h57 struct Range { struct
61 friend bool operator==(const Range &L, const Range &R) { argument
64 friend bool operator!=(const Range &L, const Range &R) { return !(L == R); }
94 Range range(llvm::StringRef Name = "") const;
97 std::pair<Range, llvm::StringRef>
101 std::vector<Range> ranges(llvm::StringRef Name = "") const;
105 std::vector<std::pair<Range, llvm::StringRef>>
110 llvm::StringMap<llvm::SmallVector<Range, 1>> all_ranges() const;
129 const llvm::Annotations::Range &R);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp62 MIToken &MIToken::reset(TokenKind Kind, StringRef Range) { in reset() argument
64 this->Range = Range; in reset()
170 auto Range = C; in lexName() local
174 StringRef String = Range.upto(R); in lexName()
180 Token.reset(MIToken::Error, Range.remaining()); in lexName()
181 return Range; in lexName()
185 Token.reset(Type, Range.upto(C)) in lexName()
186 .setStringValue(Range.upto(C).drop_front(PrefixLength)); in lexName()
296 auto Range = C; in maybeLexIdentifier() local
299 auto Identifier = Range.upto(C); in maybeLexIdentifier()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessingRecord.h89 SourceRange Range; variable
94 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity() argument
95 : Kind(Kind), Range(Range) {} in PreprocessedEntity()
103 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
135 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() argument
136 : PreprocessedEntity(Kind, Range) {} in PreprocessingDirective()
152 SourceRange Range) in MacroDefinitionRecord() argument
153 : PreprocessingDirective(MacroDefinitionKind, Range), Name(Name) {} in MacroDefinitionRecord()
174 MacroExpansion(IdentifierInfo *BuiltinName, SourceRange Range) in MacroExpansion() argument
175 : PreprocessedEntity(MacroExpansionKind, Range), in MacroExpansion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp31 << "), range " << Regions[i].Range << "\n"; in print()
40 const StackLifetime::LiveRange &Range) { in addObject() argument
41 StackObjects.push_back({V, Size, Alignment, Range}); in addObject()
58 Regions.emplace_back(Start, End, Obj.Range); in layoutObject()
64 << Obj.Alignment.value() << ", range " << Obj.Range in layoutObject()
72 << ", range " << R.Range << "\n"); in layoutObject()
78 if (Obj.Range.overlaps(R.Range)) { in layoutObject()
102 << End << ", range " << Obj.Range << "\n"); in layoutObject()
103 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject()
127 R.Range.join(Obj.Range); in layoutObject()
H A DSafeStackLayout.h31 StackLifetime::LiveRange Range; member
34 const StackLifetime::LiveRange &Range) in StackRegion()
35 : Start(Start), End(End), Range(Range) {} in StackRegion()
45 StackLifetime::LiveRange Range; member
61 const StackLifetime::LiveRange &Range);
H A DLiveIntervalUnion.cpp29 const LiveRange &Range) { in unify()
30 if (Range.empty()) in unify() argument
35 LiveRange::const_iterator RegPos = Range.begin(); in unify()
36 LiveRange::const_iterator RegEnd = Range.end(); in unify()
57 const LiveRange &Range) { in extract()
58 if (Range.empty()) in extract() argument
63 LiveRange::const_iterator RegPos = Range.begin(); in extract()
64 LiveRange::const_iterator RegEnd = Range.end(); in extract()
74 RegPos = Range.advanceTo(RegPos, SegPos.start()); in extract()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DTypes.cpp19 llvm::getMinimalTypeForRange(uint64_t Range, in getMinimalTypeForRange() argument
27 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange()
28 : Range <= 0xFFFFFFFFULL) && in getMinimalTypeForRange()
31 if (Range > 0xFFFFFFFFULL) in getMinimalTypeForRange()
33 if (Range > 0xFFFF) in getMinimalTypeForRange()
35 if (Range > 0xFF) in getMinimalTypeForRange()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h44 class Range {
46 Range() = default;
47 Range(unsigned Offset, unsigned Length) : Offset(Offset), Length(Length) {} in Range() function
58 bool overlapsWith(Range RHS) const { in overlapsWith()
63 bool contains(Range RHS) const { in contains()
69 bool operator==(const Range &RHS) const {
103 Replacement(const SourceManager &Sources, const CharSourceRange &Range,
136 const CharSourceRange &Range,
141 Range ReplacementRange;
268 std::vector<Range> getAffectedRanges() const;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp29 SourceRange Range) { in handleFallThroughAttr() argument
34 SourceLocation L = S.getLocForEndOfToken(Range.getEnd()); in handleFallThroughAttr()
56 SourceRange Range) { in handleSuppressAttr() argument
220 SourceRange Range) { in handleNoMergeAttr() argument
287 SourceRange Range) { in handleNoInlineAttr() argument
302 SourceRange Range) { in handleAlwaysInlineAttr() argument
317 SourceRange Range) { in handleCXXAssumeAttr() argument
318 ExprResult Res = S.ActOnCXXAssumeAttr(St, A, Range); in handleCXXAssumeAttr()
326 SourceRange Range) { in handleMustTailAttr() argument
332 SourceRange Range) { in handleLikely() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DDiagnostics.cpp15 SourceRange Range) { in pushContextFrame() argument
19 data.Range = Range; in pushContextFrame()
65 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range, in addError() argument
71 Last.Messages.back().Range = Range; in addError()
162 static void maybeAddLineAndColumn(SourceRange Range, in maybeAddLineAndColumn() argument
164 if (Range.Start.Line > 0 && Range.Start.Column > 0) { in maybeAddLineAndColumn()
165 OS << Range.Start.Line << ":" << Range.Start.Column << ": "; in maybeAddLineAndColumn()
171 maybeAddLineAndColumn(Frame.Range, OS); in printContextFrameToStream()
178 maybeAddLineAndColumn(Message.Range, OS); in printMessageToStream()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp397 void mangleAddressSpaceType(QualType T, Qualifiers Quals, SourceRange Range);
398 void mangleType(QualType T, SourceRange Range,
436 void mangleFunctionArgumentType(QualType T, SourceRange Range);
446 SourceRange Range);
456 void mangleCallingConvention(CallingConv CC, SourceRange Range);
457 void mangleCallingConvention(const FunctionType *T, SourceRange Range);
473 SourceRange Range);
475 SourceRange Range);
2133 SourceRange Range) { in mangleObjCLifetime() argument
2155 Extra.mangleType(Type, Range); in mangleObjCLifetime()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp128 Annotations::Range Annotations::range(llvm::StringRef Name) const { in range()
132 std::pair<Annotations::Range, llvm::StringRef>
141 std::vector<Annotations::Range>
144 std::vector<Annotations::Range> Res; in ranges()
146 for (const auto &[Range, Payload] : WithPayload) in ranges()
147 Res.push_back(Range); in ranges()
150 std::vector<std::pair<Annotations::Range, llvm::StringRef>>
156 std::vector<std::pair<Annotations::Range, llvm::StringRef>> Res; in rangesWithPayload()
159 Res.emplace_back(Annotations::Range{All[I].Begin, All[I].End}, in rangesWithPayload()
165 llvm::StringMap<llvm::SmallVector<Annotations::Range, 1>>
[all …]
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.cpp41 SourceRange Range; member
100 SourceRange Range; member
158 SourceRange InsertionPoint = References[0].Range; in analyze()
159 InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd()); in analyze()
243 StringRef getSourceText(SourceRange Range) { in getSourceText() argument
244 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
329 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference()
341 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference()
346 Buffer += getSourceText(Reference.Range.getBegin(), Reference.SymbolsStart); in appendReference()
349 Buffer += getSourceText(Symbols.front().Range); in appendReference()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DCFGDiff.h36 template <typename Range>
37 auto reverse_if_helper(Range &&R, std::integral_constant<bool, false>) { in reverse_if_helper()
38 return std::forward<Range>(R); in reverse_if_helper()
41 template <typename Range>
42 auto reverse_if_helper(Range &&R, std::integral_constant<bool, true>) { in reverse_if_helper()
43 return llvm::reverse(std::forward<Range>(R)); in reverse_if_helper()
46 template <bool B, typename Range> auto reverse_if(Range &&R) { in reverse_if()
47 return reverse_if_helper(std::forward<Range>(R), in reverse_if()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMP.cpp103 auto Range = getFirstCompositeRange(llvm::make_range(Iter, Leafs.end())); in getLeafOrCompositeConstructs() local
105 for (; Iter != Range.begin(); ++Iter) in getLeafOrCompositeConstructs()
107 if (!Range.empty()) { in getLeafOrCompositeConstructs()
109 getCompoundConstruct(ArrayTy(Range.begin(), Range.end())); in getLeafOrCompositeConstructs()
112 Iter = Range.end(); in getLeafOrCompositeConstructs()
180 auto Range = getFirstCompositeRange(Leafs); in isCompositeConstruct() local
181 return Range.begin() == Leafs.begin() && Range.end() == Leafs.end(); in isCompositeConstruct()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DYAMLParser.cpp153 StringRef Range; member
196 static UTF8Decoded decodeUTF8(StringRef Range) { in decodeUTF8() argument
197 StringRef::iterator Position= Range.begin(); in decodeUTF8()
198 StringRef::iterator End = Range.end(); in decodeUTF8()
683 OS << T.Range << "\n";
1107 , i->Tok->Range.begin()); in unrollIndent()
1127 T.Range = StringRef(Current, 1); in rollIndent()
1146 T.Range = StringRef(Current, 0); in skipComment()
1194 T.Range = StringRef(Current, EI.second); in scanStreamEnd()
1214 T.Range in scanDirective()
1914 printError(const SMRange & Range,const Twine & Msg,SourceMgr::DiagKind Kind) printError() argument
[all...]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h45 SourceRange Range; member
57 SkippedRange(SourceRange Range, Kind K,
60 : Range(Range), PrevTokLoc(PrevTokLoc), NextTokLoc(NextTokLoc), in Range() function
84 void AddSkippedRange(SourceRange Range, SkippedRange::Kind RangeKind);
86 void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
88 void HandleEmptyline(SourceRange Range) override;
90 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1786 } Range; in initFunctionSummaries() local
1869 .Case({ArgumentCondition(0U, WithinRange, Range(0, 127)), in initFunctionSummaries()
1872 .Case({ArgumentCondition(0U, OutOfRange, Range(0, 127)), in initFunctionSummaries()
1900 .Case({ArgumentCondition(0U, WithinRange, Range('0', '9')), in initFunctionSummaries()
1903 .Case({ArgumentCondition(0U, OutOfRange, Range('0', '9')), in initFunctionSummaries()
1909 .Case({ArgumentCondition(0U, WithinRange, Range(33, 126)), in initFunctionSummaries()
1914 {ArgumentCondition(0U, OutOfRange, Range(33, 126)), in initFunctionSummaries()
1922 .Case({ArgumentCondition(0U, WithinRange, Range('a', 'z')), in initFunctionSummaries()
1926 .Case({ArgumentCondition(0U, WithinRange, Range(0, 127)), in initFunctionSummaries()
1927 ArgumentCondition(0U, OutOfRange, Range('a', 'z')), in initFunctionSummaries()
[all …]

12345678910>>...19