| /freebsd-12.1/sys/contrib/zstd/contrib/pzstd/utils/ |
| H A D | Range.h | 48 class Range { 60 constexpr Range() : b_(), e_() {} 69 /* implicit */ Range(const std::string& str) 80 constexpr /* implicit */ Range(const Range<OtherIter>& other) 83 Range(const Range&) = default; 84 Range(Range&&) = default; 86 Range& operator=(const Range&) & = default; 87 Range& operator=(Range&&) & = default; 128 using ByteRange = Range<const unsigned char*>; 129 using MutableByteRange = Range<unsigned char*>; [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 61 if (Range.isInvalid()) in getPreprocessedEntitiesInRange() 64 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange() 71 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange() 139 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow() 140 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 170 if (Range.isInvalid()) in findLocalPreprocessedEntitiesInRange() 172 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 204 SourceRange Range = PPE->getSourceRange(); in getLoc() local 205 return (Range.*getRangeLoc)(); in getLoc() 438 assert(Range.isValid()); in SourceRangeSkipped() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | STLExtras.h | 1172 -> decltype(std::distance(Range.begin(), Range.end())) { 1173 return std::distance(Range.begin(), Range.end()); 1187 return std::all_of(adl_begin(Range), adl_end(Range), P); 1194 return std::any_of(adl_begin(Range), adl_end(Range), P); 1201 return std::none_of(adl_begin(Range), adl_end(Range), P); 1208 return std::find(adl_begin(Range), adl_end(Range), Val); 1215 return std::find_if(adl_begin(Range), adl_end(Range), P); 1239 return std::copy(adl_begin(Range), adl_end(Range), Out); 1246 return std::find(adl_begin(Range), adl_end(Range), Element) != adl_end(Range); 1310 std::equal(adl_begin(Range) + 1, adl_end(Range), adl_begin(Range))); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/MIRParser/ |
| H A D | MILexer.cpp | 70 this->Range = Range; in reset() 162 auto Range = C; in lexName() local 173 return Range; in lexName() 261 auto Range = C; in maybeLexIdentifier() local 275 auto Range = C; in maybeLexMachineBasicBlock() local 309 auto Range = C; in maybeLexIndex() local 322 auto Range = C; in maybeLexIndexAndName() local 395 auto Range = C; in lexVirtualRegister() local 436 auto Range = C; in maybeLexRegister() local 452 auto Range = C; in maybeLexGlobalValue() local [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/ |
| H A D | PreprocessingRecord.h | 92 SourceRange Range; variable 97 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity() argument 98 : Kind(Kind), Range(Range) {} in PreprocessedEntity() 138 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() argument 139 : PreprocessedEntity(Kind, Range) {} in PreprocessingDirective() 155 SourceRange Range) in MacroDefinitionRecord() argument 178 : PreprocessedEntity(MacroExpansionKind, Range), in MacroExpansion() 545 SourceRange Range) override; 547 void SourceRangeSkipped(SourceRange Range, 551 SourceRange Range); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | SafeStackLayout.cpp | 34 << "), range " << Regions[i].Range << "\n"; in print() 43 const StackColoring::LiveRange &Range) { in addObject() argument 44 StackObjects.push_back({V, Size, Alignment, Range}); in addObject() 61 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 67 << Obj.Alignment << ", range " << Obj.Range << "\n"); in layoutObject() 74 << ", range " << R.Range << "\n"); in layoutObject() 80 if (Obj.Range.Overlaps(R.Range)) { in layoutObject() 104 << End << ", range " << Obj.Range << "\n"); in layoutObject() 105 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject() 129 R.Range.Join(Obj.Range); in layoutObject()
|
| H A D | SafeStackLayout.h | 31 StackColoring::LiveRange Range; member 34 const StackColoring::LiveRange &Range) in StackRegion() 35 : Start(Start), End(End), Range(Range) {} in StackRegion() 44 StackColoring::LiveRange Range; member 60 const StackColoring::LiveRange &Range);
|
| H A D | LiveIntervalUnion.cpp | 30 void LiveIntervalUnion::unify(LiveInterval &VirtReg, const LiveRange &Range) { in unify() argument 31 if (Range.empty()) in unify() 36 LiveRange::const_iterator RegPos = Range.begin(); in unify() 37 LiveRange::const_iterator RegEnd = Range.end(); in unify() 57 void LiveIntervalUnion::extract(LiveInterval &VirtReg, 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-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 60 SourceRange Range; member 97 Result.Range.Start = currentLocation(); in getNextToken() 188 Result.Range.End = currentLocation(); in getNextToken() 238 SourceRange Range; in consumeNumberLiteral() local 239 Range.Start = Result->Range.Start; in consumeNumberLiteral() 240 Range.End = currentLocation(); in consumeNumberLiteral() 272 SourceRange Range; in consumeStringLiteral() local 273 Range.Start = Result->Range.Start; in consumeStringLiteral() 274 Range.End = currentLocation(); in consumeStringLiteral() 471 ArgValue.Range = Tokenizer->peekNextToken().Range; in parseMatcherExpressionImpl() [all …]
|
| H A D | Diagnostics.cpp | 16 SourceRange Range) { in pushContextFrame() argument 20 data.Range = Range; in pushContextFrame() 66 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range, in addError() argument 72 Last.Messages.back().Range = Range; in addError() 153 static void maybeAddLineAndColumn(SourceRange Range, in maybeAddLineAndColumn() argument 155 if (Range.Start.Line > 0 && Range.Start.Column > 0) { in maybeAddLineAndColumn() 156 OS << Range.Start.Line << ":" << Range.Start.Column << ": "; in maybeAddLineAndColumn() 162 maybeAddLineAndColumn(Frame.Range, OS); in printContextFrameToStream() 169 maybeAddLineAndColumn(Message.Range, OS); in printMessageToStream()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 45 class Range { 47 Range() = default; 59 bool overlapsWith(Range RHS) const { in overlapsWith() 64 bool contains(Range RHS) const { in contains() 70 bool operator==(const Range &RHS) const { 137 const CharSourceRange &Range, 142 Range ReplacementRange; 266 std::vector<Range> getAffectedRanges() const; 348 std::vector<Range> 363 const CharSourceRange Range = in Replacement() local [all …]
|
| /freebsd-12.1/contrib/llvm/utils/TableGen/ |
| H A D | Types.cpp | 19 const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_ATTRIBUTE_UNUSED) { in getMinimalTypeForRange() argument 26 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange() 27 : Range <= 0xFFFFFFFFULL) && in getMinimalTypeForRange() 30 if (Range > 0xFFFFFFFFULL) in getMinimalTypeForRange() 32 if (Range > 0xFFFF) in getMinimalTypeForRange() 34 if (Range > 0xFF) in getMinimalTypeForRange()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | SortJavaScriptImports.cpp | 43 SourceRange Range; member 91 SourceRange Range; member 172 SourceRange InsertionPoint = References[0].Range; in analyze() 234 StringRef getSourceText(SourceRange Range) { in getSourceText() argument 235 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText() 257 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference() 269 Buffer += getSourceText(I->Range); in appendReference() 301 Reference.Range.setBegin(Start); in parseModuleReferences() 309 Reference.Range.setEnd(LineEnd->Tok.getEndLoc()); in parseModuleReferences() 421 Symbol.Range.setBegin( in parseNamedBindings() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIBugReporter.cpp | 38 SourceRange Range = RequestRegion->sourceRange(); in reportDoubleNonblocking() local 40 if (Range.isValid()) in reportDoubleNonblocking() 41 Report->addRange(Range); in reportDoubleNonblocking() 60 SourceRange Range = RequestRegion->sourceRange(); in reportMissingWait() local 61 if (Range.isValid()) in reportMissingWait() 62 Report->addRange(Range); in reportMissingWait() 81 SourceRange Range = RequestRegion->sourceRange(); in reportUnmatchedWait() local 82 if (Range.isValid()) in reportUnmatchedWait() 83 Report->addRange(Range); in reportUnmatchedWait()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 2397 << Range; in mangleType() 2547 << Range; in mangleType() 2556 << Range; in mangleType() 2704 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType() 2713 << Range; in mangleType() 2722 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType() 2793 << Range; in mangleType() 2802 << Range; in mangleType() 2812 << Range; in mangleType() 2821 << Range; in mangleType() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 59 ConstantRange Range; member 76 Range.~ConstantRange(); in ~ValueLatticeElement() 93 Range.~ConstantRange(); 104 new (&Range) ConstantRange(Other.Range); 106 Range = Other.Range; 162 return Range; in getConstantRange() 181 Range.~ConstantRange(); in markOverdefined() 224 Range = std::move(NewR); in markConstantRange() 234 new (&Range) ConstantRange(std::move(NewR)); in markConstantRange()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | SourceMgr.h | 229 SMRange Range; variable 236 : Range(Loc, Loc), Text(Insertion.str()) { in SMFixIt() 242 : Range(R), Text(Replacement.str()) { in SMFixIt() 247 SMRange getRange() const { return Range; } in getRange() 250 if (Range.Start.getPointer() != Other.Range.Start.getPointer()) 251 return Range.Start.getPointer() < Other.Range.Start.getPointer(); 252 if (Range.End.getPointer() != Other.Range.End.getPointer()) 253 return Range.End.getPointer() < Other.Range.End.getPointer();
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 135 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() argument 137 if (!isRewritable(Range.getBegin()) || in getRangeSize() 138 !isRewritable(Range.getEnd())) return -1; in getRangeSize() 159 if (Range.isTokenRange()) in getRangeSize() 166 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize() 174 std::string Rewriter::getRewrittenText(SourceRange Range) const { in getRewrittenText() 175 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 176 !isRewritable(Range.getEnd())) in getRewrittenText() 181 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 182 EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRewrittenText() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 59 const CharSourceRange &Range, in Replacement() argument 62 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement() 136 const CharSourceRange &Range, in getRangeSize() argument 143 if (Range.isTokenRange()) in getRangeSize() 307 return Range(R1.getOffset(), R1.getLength()) in add() 485 static std::vector<Range> combineAndSortRanges(std::vector<Range> Ranges) { in combineAndSortRanges() 486 llvm::sort(Ranges, [](const Range &LHS, const Range &RHS) { in combineAndSortRanges() 491 std::vector<Range> Result; in combineAndSortRanges() 510 std::vector<Range> 537 std::vector<Range> ChangedRanges; in getAffectedRanges() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/include/lld/Common/ |
| H A D | Threads.h | 69 template <typename R, class FuncTy> void parallelForEach(R &&Range, FuncTy Fn) { in parallelForEach() argument 71 for_each(llvm::parallel::par, std::begin(Range), std::end(Range), Fn); in parallelForEach() 73 for_each(llvm::parallel::seq, std::begin(Range), std::end(Range), Fn); in parallelForEach()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/ |
| H A D | VPRecipeBuilder.h | 72 VPInterleaveRecipe *tryToInterleaveMemory(Instruction *I, VFRange &Range, 79 tryToWidenMemory(Instruction *I, VFRange &Range, VPlanPtr &Plan); 86 VFRange &Range); 99 bool tryToWiden(Instruction *I, VPBasicBlock *VPBB, VFRange &Range); 116 bool tryToCreateRecipe(Instruction *Instr, VFRange &Range, VPlanPtr &Plan, 126 Instruction *I, VFRange &Range, VPBasicBlock *VPBB,
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 156 StringRef Range; member 669 OS << T.Range << "\n"; in dumpTokens() 1225 T.Range = SK.Tok->Range; in scanValue() 1830 T.Range = TagHandle; in getVerbatimTag() 2353 , TagInfo.Range in parseBlockNode() 2367 , TagInfo.Range in parseBlockNode() 2374 , TagInfo.Range in parseBlockNode() 2375 , T.Range); in parseBlockNode() 2382 TagInfo.Range, StrCopy, T.Range); in parseBlockNode() 2389 , TagInfo.Range in parseBlockNode() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelectionRequirements.cpp | 18 Expected<SourceRange> Range = in evaluate() local 20 if (!Range) in evaluate() 21 return Range.takeError(); in evaluate() 24 findSelectedASTNodes(Context.getASTContext(), *Range); in evaluate() 27 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Comment.h | 59 SourceRange Range; variable 178 Range = SR; in setSourceRange() 302 SourceRange Range; member 305 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 366 return Args[Idx].Range; in getArgRange() 487 Range.setEnd(L); in setAttrs() 600 SourceRange Range; member 604 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 678 return Args[Idx].Range; in getArgRange() 770 return Args[0].Range; in getParamNameRange() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Language/CPlusPlus/ |
| H A D | CPlusPlusNameParser.h | 70 struct Range { struct 74 Range() {} in Range() function 75 Range(size_t begin, size_t end) : begin_index(begin), end_index(end) { in Range() function 85 Range basename_range; argument 86 Range context_range; 170 llvm::StringRef GetTextForRange(const Range &range);
|