Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAddressRanges.h70 return find(Range.start(), Range.end()) != Ranges.end(); in contains()
124 if (Range.empty()) in insert()
132 Range = {Range.start(), std::max(Range.end(), std::prev(It2)->end())}; in insert()
149 AddressRange Range; variable
155 return LHS.Range == RHS.Range && LHS.Value == RHS.Value;
183 if (It == Ranges.end() || Range.end() <= It->Range.start()) { in insert()
190 if (Range.start() < It->Range.start()) { in insert()
193 Range = {It->Range.start(), Range.end()}; in insert()
198 if (Range.end() <= It->Range.end()) in insert()
203 if (Range.start() < It->Range.end()) in insert()
[all …]
H A DSTLExtras.h1695 return std::distance(Range.begin(), Range.end());
1732 return std::all_of(adl_begin(Range), adl_end(Range), P);
1739 return std::any_of(adl_begin(Range), adl_end(Range), P);
1746 return std::none_of(adl_begin(Range), adl_end(Range), P);
1752 return std::find(adl_begin(Range), adl_end(Range), Val);
1834 return std::copy(adl_begin(Range), adl_end(Range), Out);
1859 return std::move(adl_begin(Range), adl_end(Range), Out);
1892 return Range.find(Element) != Range.end();
1918 return std::is_sorted(adl_begin(Range), adl_end(Range));
1976 std::stable_sort(adl_begin(Range), adl_end(Range));
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp43 return Range; in maybeExtendRange()
49 return Range; in maybeExtendRange()
56 if (Range.isInvalid()) in validateRange()
60 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateRange()
108 CharSourceRange Range; in getRange() local
122 return Range; in getRange()
128 CharSourceRange Range = in getFileRangeForEdit() local
133 return Range; in getFileRangeForEdit()
145 return Range; in getFileRange()
382 Range.setEnd( in getAssociatedRange()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFunctionInfo.h89 AddressRange Range; member
99 : Range(Addr, Addr + Size), Name(N) {}
185 uint64_t startAddress() const { return Range.start(); } in startAddress()
186 uint64_t endAddress() const { return Range.end(); } in endAddress()
187 uint64_t size() const { return Range.size(); } in size()
190 Range = {0, 0}; in clear()
198 return LHS.Range == RHS.Range && LHS.Name == RHS.Name &&
220 if (LHS.Range != RHS.Range)
221 return LHS.Range < RHS.Range;
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp61 if (Range.isInvalid()) in getPreprocessedEntitiesInRange()
64 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange()
71 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange()
138 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow()
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
169 if (Range.isInvalid()) in findLocalPreprocessedEntitiesInRange()
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
203 SourceRange Range = PPE->getSourceRange(); in getLoc() local
204 return (Range.*getRangeLoc)(); in getLoc()
445 assert(Range.isValid()); in SourceRangeSkipped()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp61 SourceRange Range; member
112 Result.Range.Start = currentLocation(); in getNextToken()
209 Result.Range.End = currentLocation(); in getNextToken()
259 SourceRange Range; in consumeNumberLiteral() local
260 Range.Start = Result->Range.Start; in consumeNumberLiteral()
261 Range.End = currentLocation(); in consumeNumberLiteral()
293 SourceRange Range; in consumeStringLiteral() local
294 Range.Start = Result->Range.Start; in consumeStringLiteral()
295 Range.End = currentLocation(); in consumeStringLiteral()
516 ArgValue.Range = NodeMatcherToken.Range; in parseMatcherBuilder()
[all …]
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-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DTypes.cpp18 const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_ATTRIBUTE_UNUSED) { in getMinimalTypeForRange() argument
25 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange()
26 : Range <= 0xFFFFFFFFULL) && in getMinimalTypeForRange()
29 if (Range > 0xFFFFFFFFULL) in getMinimalTypeForRange()
31 if (Range > 0xFFFF) in getMinimalTypeForRange()
33 if (Range > 0xFF) in getMinimalTypeForRange()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp64 this->Range = Range; in reset()
170 auto Range = C; in lexName() local
181 return Range; in lexName()
292 auto Range = C; in maybeLexIdentifier() local
306 auto Range = C; in maybeLexMachineBasicBlock() local
340 auto Range = C; in maybeLexIndex() local
353 auto Range = C; in maybeLexIndexAndName() local
426 auto Range = C; in lexVirtualRegister() local
467 auto Range = C; in maybeLexRegister() local
483 auto Range = C; in maybeLexGlobalValue() local
[all …]
/freebsd-14.2/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()
135 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() argument
136 : PreprocessedEntity(Kind, Range) {} in PreprocessingDirective()
152 SourceRange Range) in MacroDefinitionRecord() argument
175 : PreprocessedEntity(MacroExpansionKind, Range), in MacroExpansion()
551 SourceRange Range) override;
553 void SourceRangeSkipped(SourceRange Range,
557 SourceRange Range);
[all …]
/freebsd-14.2/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.h30 StackLifetime::LiveRange Range; member
33 const StackLifetime::LiveRange &Range) in StackRegion()
34 : Start(Start), End(End), Range(Range) {} in StackRegion()
44 StackLifetime::LiveRange Range; member
60 const StackLifetime::LiveRange &Range);
H A DLiveIntervalUnion.cpp29 const LiveRange &Range) { in unify() argument
30 if (Range.empty()) in unify()
35 LiveRange::const_iterator RegPos = Range.begin(); in unify()
36 LiveRange::const_iterator RegEnd = Range.end(); in unify()
57 const LiveRange &Range) { in extract() argument
58 if (Range.empty()) in extract()
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-14.2/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h44 class Range {
46 Range() = default;
58 bool overlapsWith(Range RHS) const { in overlapsWith()
63 bool contains(Range RHS) const { in contains()
69 bool operator==(const Range &RHS) const {
136 const CharSourceRange &Range,
141 Range ReplacementRange;
268 std::vector<Range> getAffectedRanges() const;
350 std::vector<Range>
365 const CharSourceRange Range = in Replacement() local
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.cpp37 SourceRange Range = RequestRegion->sourceRange(); in reportDoubleNonblocking() local
39 if (Range.isValid()) in reportDoubleNonblocking()
40 Report->addRange(Range); in reportDoubleNonblocking()
59 SourceRange Range = RequestRegion->sourceRange(); in reportMissingWait() local
60 if (Range.isValid()) in reportMissingWait()
61 Report->addRange(Range); in reportMissingWait()
80 SourceRange Range = RequestRegion->sourceRange(); in reportUnmatchedWait() local
81 if (Range.isValid()) in reportUnmatchedWait()
82 Report->addRange(Range); in reportUnmatchedWait()
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DSourceMgrAdapter.cpp82 llvm::SMRange Range) { in mapRange() argument
83 if (!Range.isValid()) in mapRange()
86 SourceLocation Start = mapLocation(LLVMSrcMgr, Range.Start); in mapRange()
87 SourceLocation End = mapLocation(LLVMSrcMgr, Range.End); in mapRange()
125 for (auto Range : Diag.getRanges()) { in handleDiag() local
126 Builder << SourceRange(StartOfLine.getLocWithOffset(Range.first), in handleDiag()
127 StartOfLine.getLocWithOffset(Range.second)); in handleDiag()
132 CharSourceRange Range(mapRange(*LLVMSrcMgr, FixIt.getRange()), false); in handleDiag() local
133 Builder << FixItHint::CreateReplacement(Range, FixIt.getText()); in handleDiag()
/freebsd-14.2/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriter.cpp141 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() argument
143 if (!isRewritable(Range.getBegin()) || in getRangeSize()
144 !isRewritable(Range.getEnd())) return -1; in getRangeSize()
165 if (Range.isTokenRange()) in getRangeSize()
172 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize()
181 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
182 !isRewritable(Range.getEnd())) in getRewrittenText()
188 EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRewrittenText()
199 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
203 if (Range.isTokenRange()) in getRewrittenText()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeGenError.h23 ByteCodeGenError(SourceRange Range) : Range(Range) {} in ByteCodeGenError()
29 const SourceRange &getRange() const { return Range; } in getRange()
35 SourceRange Range;
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp2957 << Range; in mangleType()
3107 << Range; in mangleType()
3116 << Range; in mangleType()
3271 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3280 << Range; in mangleType()
3288 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3297 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3306 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3380 << Range; in mangleType()
3389 << Range; in mangleType()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.cpp43 SourceRange Range; member
102 SourceRange Range; member
160 SourceRange InsertionPoint = References[0].Range; in analyze()
245 StringRef getSourceText(SourceRange Range) { in getSourceText() argument
246 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
331 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference()
351 Buffer += getSourceText(Symbols.front().Range); in appendReference()
354 Buffer += getSourceText(Symbol.Range); in appendReference()
410 Reference.Range.setBegin(Start); in parseModuleReferences()
561 Symbol.Range.setBegin( in parseNamedBindings()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp28 SourceRange Range) { in handleFallThroughAttr() argument
55 SourceRange Range) { in handleSuppressAttr() argument
313 SourceRange Range) { in handleLikely() argument
322 SourceRange Range) { in handleUnlikely() argument
600 return handleLoopHintAttr(S, St, A, Range); in ProcessStmtAttribute()
604 return handleSuppressAttr(S, St, A, Range); in ProcessStmtAttribute()
606 return handleNoMergeAttr(S, St, A, Range); in ProcessStmtAttribute()
608 return handleNoInlineAttr(S, St, A, Range); in ProcessStmtAttribute()
610 return handleMustTailAttr(S, St, A, Range); in ProcessStmtAttribute()
612 return handleLikely(S, St, A, Range); in ProcessStmtAttribute()
[all …]

12345678910>>...19