| /src/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | AddressRanges.h | 69 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 D | STLExtras.h | 409 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 …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 31 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 …]
|
| /src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRangeList.cpp | 17 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 …]
|
| /src/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | FunctionInfo.h | 89 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;
|
| /src/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 46 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 …]
|
| /src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 61 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() 262 Error->addError(Range, Error->ET_ParserNumberError) << Result->Text; in consumeNumberLiteral() 293 SourceRange Range; in consumeStringLiteral() local 294 Range.Start = Result->Range.Start; in consumeStringLiteral() 295 Range.End = currentLocation(); in consumeStringLiteral() [all …]
|
| H A D | Diagnostics.cpp | 15 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()
|
| /src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_range.h | 21 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);
|
| /src/contrib/llvm-project/llvm/include/llvm/Testing/Annotations/ |
| H A D | Annotations.h | 57 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);
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
| H A D | MILexer.cpp | 62 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 …]
|
| /src/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | PreprocessingRecord.h | 89 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 …]
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStackLayout.cpp | 31 << "), 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 D | SafeStackLayout.h | 31 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 D | LiveIntervalUnion.cpp | 29 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()
|
| /src/contrib/llvm-project/llvm/utils/TableGen/Common/ |
| H A D | Types.cpp | 19 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()
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 44 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 …]
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIBugReporter.cpp | 37 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()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmtAttr.cpp | 29 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 …]
|
| /src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceMgrAdapter.cpp | 82 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()
|
| /src/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 141 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() argument 143 if (!isRewritable(Range.getBegin()) || in getRangeSize() 144 !isRewritable(Range.getEnd())) return -1; in getRangeSize() 147 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 148 unsigned EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRangeSize() 165 if (Range.isTokenRange()) in getRangeSize() 166 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRangeSize() 171 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { in getRangeSize() argument 172 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize() 180 std::string Rewriter::getRewrittenText(CharSourceRange Range) const { in getRewrittenText() [all …]
|
| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 397 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 …]
|
| /src/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
| H A D | Annotations.cpp | 128 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 …]
|
| /src/contrib/llvm-project/clang/lib/Format/ |
| H A D | SortJavaScriptImports.cpp | 41 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 …]
|
| /src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | CFGDiff.h | 36 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()
|