/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | ADL.h | 1 //===- llvm/ADT/ADL.h - Argument dependent lookup utilities -----*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 constexpr auto begin_impl(RangeT &&range) 28 -> decltype(begin(std::forward<RangeT>(range))) { 29 return begin(std::forward<RangeT>(range)); 35 constexpr auto end_impl(RangeT &&range) 36 -> decltype(end(std::forward<RangeT>(range))) { 37 return end(std::forward<RangeT>(range)); 43 constexpr auto rbegin_impl(RangeT &&range) [all …]
|
H A D | STLExtras.h | 1 //===- llvm/ADT/STLExtras.h - Useful STL related functions ------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 26 #include "llvm/Config/abi-breaking.h" 49 //===----------------------------------------------------------------------===// 51 //===----------------------------------------------------------------------===// 105 /// Overload for non-class function types. 121 /// Overload for non-class function type references. 147 /// Useful to statically assert when Ts is intended to describe a non-multi set [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMP.cpp | 1 //===- OMP.cpp ------ Collection of helpers for OpenMP --------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 30 // OpenMP Spec 5.2: [17.3, 8-9] in getFirstCompositeRange() 31 // If directive-name-A and directive-name-B both correspond to loop- in getFirstCompositeRange() 32 // associated constructs then directive-name is a composite construct in getFirstCompositeRange() 33 // otherwise directive-name is a combined construct. in getFirstCompositeRange() 35 // In the list of leaf constructs, find the first loop-associated construct, in getFirstCompositeRange() 36 // this is the beginning of the returned range. Then, starting from the in getFirstCompositeRange() 38 // loop-associated constructs. The last of those is the last one of the in getFirstCompositeRange() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
H A D | Annotations.cpp | 1 //===--- Annotations.cpp - Annotated source code for unit tests --*- C++-*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 auto Require = [Text](bool Assertion, const char *Msg) { in Annotations() 38 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations() 39 Points[Name.value_or("")].push_back(All.size() - 1); in Annotations() 46 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations() 58 Ranges[NewRange.Name].push_back(All.size() - 1); in Annotations() 66 Text = Text.drop_front(Name->size()); in Annotations() 70 Require(Text.size() > Payload->size(), "unterminated payload"); in Annotations() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRangeList.cpp | 1 //===- ConstantRangeList.cpp - ConstantRangeList implementation -----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 auto Range = RangesRef[0]; in isOrderedRanges() local 18 if (Range.getLower().sge(Range.getUpper())) in isOrderedRanges() 21 auto CurRange = RangesRef[i]; in isOrderedRanges() 22 auto PreRange = RangesRef[i - 1]; in isOrderedRanges() 53 auto LowerBound = lower_bound( in insert() 57 if (LowerBound != Ranges.end() && LowerBound->contains(NewRange)) in insert() 72 for (auto Iter = ExistingTail.begin(); Iter != ExistingTail.end(); Iter++) { in insert() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 1 //===--- SourceCode.cpp - Source code manipulation routines -----*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 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() [all …]
|
H A D | RangeSelector.cpp | 1 //===--- RangeSelector.cpp - RangeSelector implementations ------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 56 auto &NodesMap = Nodes.getMap(); in getNode() 57 auto It = NodesMap.find(ID); in getNode() 60 return It->second; in getNode() 70 SourceLocation BeforeStart = Start.getLocWithOffset(-1); in findPreviousTokenStart() 100 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in before() 104 return CharSourceRange::getCharRange(SelectedRange->getBegin()); in before() 109 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in after() [all …]
|
H A D | RewriteRule.cpp | 1 //===--- Transformer.cpp - Transformer library implementation ---*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 37 for (const auto &E : ASTEdits) { in translateEdits() 38 Expected<CharSourceRange> Range = E.TargetRange(Result); in translateEdits() local 39 if (!Range) in translateEdits() 40 return Range.takeError(); in translateEdits() 42 tooling::getFileRangeForEdit(*Range, *Result.Context); in translateEdits() 49 // produces a bad range, whereas the latter will simply ignore A. in translateEdits() 54 T.Range = *EditRange; in translateEdits() [all …]
|
H A D | Stencil.cpp | 1 //===--- Stencil.cpp - Stencil implementation -------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 38 auto &NodesMap = Nodes.getMap(); in getNode() 39 auto It = NodesMap.find(Id); in getNode() 43 return It->second; in getNode() 50 auto NodeOrErr = getNode(Match.Nodes, Id); in printNode() 51 if (auto Err = NodeOrErr.takeError()) in printNode() 53 NodeOrErr->print(Os, PrintingPolicy(Match.Context->getLangOpts())); in printNode() 78 Result->append(Text); in eval() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | Tokens.cpp | 1 //===- Tokens.cpp - collect tokens from preprocessing ---------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 57 // Finds the range within FID corresponding to expanded tokens [First, Last]. 59 // If no range satisfies the criteria, returns an invalid range. 63 // ~~ -> a1 64 // ~~ -> a2 65 // ~~~~~~~~~ -> a1 a2 71 // - identifying which spelled range covers the expanded tokens in spelledForExpandedSlow() 72 // - validating that this range doesn't cover any extra tokens (First/Last) in spelledForExpandedSlow() [all …]
|
H A D | BuildTree.cpp | 1 //===- BuildTree.cpp ------------------------------------------*- C++ -*-=====// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 54 if (auto *C = dyn_cast<CXXConstructExpr>(E)) { in IgnoreImplicitConstructorSingleStep() 55 auto NumArgs = C->getNumArgs(); in IgnoreImplicitConstructorSingleStep() 56 if (NumArgs == 1 || (NumArgs > 1 && isa<CXXDefaultArgExpr>(C->getArg(1)))) { in IgnoreImplicitConstructorSingleStep() 57 Expr *A = C->getArg(0); in IgnoreImplicitConstructorSingleStep() 58 if (C->getParenOrBraceRange().isInvalid()) in IgnoreImplicitConstructorSingleStep() 73 if (auto *F = dyn_cast<CXXFunctionalCastExpr>(E)) { in IgnoreCXXFunctionalCastExprWrappingConstructor() 74 if (F->getCastKind() == CK_ConstructorConversion) in IgnoreCXXFunctionalCastExprWrappingConstructor() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DbgEntityHistoryCalculator.cpp | 1 //===- llvm/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp -------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 45 // scope range which ends on a meta instruction should be considered to end in initialize() 50 // 1 DBG_VALUE for "y" number. If a scope range ends at DBG_VALUE for "y", in initialize() 53 // range. DBG_VALUEs at or after this position for in initialize() 64 assert(A->getParent() && B->getParent() && "Operands must have a parent"); in isBefore() 65 assert(A->getMF() == B->getMF() && in isBefore() 73 // Instruction range should start with a DBG_VALUE instruction for the in startDbgValue() 76 auto &Entries = VarEntries[Var]; in startDbgValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | StackSafetyAnalysis.cpp | 1 //===- StackSafetyAnalysis.cpp - Stack memory safety analysis -------- 120 ConstantRange Range; global() member [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | CFGDiff.h | 1 //===- CFGDiff.h - Define a CFG snapshot. -------- [all...] |
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MILexer.cpp | 1 //===- MILexer.cpp - Machine instructions lexer implementation ------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 44 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } in peek() 48 StringRef remaining() const { return StringRef(Ptr, End - Ptr); } in remaining() 52 return StringRef(Ptr, C.Ptr - Ptr); in upto() 62 MIToken &MIToken::reset(TokenKind Kind, StringRef Range) { in reset() argument 63 this->Kind = Kind; in reset() 64 this->Range = Range; in reset() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IteratorRangeChecker.cpp | 1 //===-- IteratorRangeChecker.cpp ----------------------------------*- C++ -*--// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Defines a checker for dereference of the past-the-end iterator and 10 // out-of-range increments and decrements. 12 //===----------------------------------------------------------------------===// 35 const BugType OutOfRangeBugType{this, "Iterator out of range", 80 // Check for out of range access in checkPreCall() 81 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPreCall() 85 if (Func->isOverloadedOperator()) { in checkPreCall() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | CodeViewYAMLSymbols.cpp | 1 //===- CodeViewYAMLSymbols.cpp - CodeView YAMLIO Symbol implementation ----===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 81 auto SymbolNames = getSymbolTypeNames(); in enumeration() 82 for (const auto &E : SymbolNames) in enumeration() 88 auto FlagNames = getCompileSym2FlagNames(); in bitset() 89 for (const auto &E : FlagNames) { in bitset() 97 auto FlagNames = getCompileSym3FlagNames(); in bitset() 98 for (const auto &E : FlagNames) { in bitset() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | RangeMap.h | 1 //===-- RangeMap.h -------- 29 template <typename B, typename S> struct Range { global() struct 36 RangeRange Range() argument 38 RangeRange Range() argument 45 GetRangeBaseRange GetRangeBase() argument 48 SetRangeBaseRange SetRangeBase() argument 57 UnionRange Union() argument 67 IntersectRange Intersect() argument 72 Range range; Intersect() local 78 GetRangeEndRange GetRangeEnd() argument 80 SetRangeEndRange SetRangeEnd() argument 101 ContainsRange Contains() argument 107 DoesAdjoinOrIntersectRange DoesAdjoinOrIntersect() argument 117 DoesIntersectRange DoesIntersect() argument 361 FindEntryThatContains(const Entry & range) FindEntryThatContains() argument 442 typedef lldb_private::Range<B, S> Range; global() typedef 573 FindEntryThatContains(const Entry & range) FindEntryThatContains() argument [all...] |
/freebsd/contrib/llvm-project/libcxx/include/__ranges/ |
H A D | access.h | 1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 //===----------------------------------------------------------------------===// 39 // [range.access.begin] 45 { _LIBCPP_AUTO_CAST(__t.begin()) } -> input_or_output_iterator; in requires() 53 { _LIBCPP_AUTO_CAST(begin(__t)) } -> input_or_output_iterator; 58 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[]) const noexcept in operator() 65 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[_Np]) const noexcept in operator() 73 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp&& __t) const in operator() [all …]
|
H A D | size.h | 1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 //===----------------------------------------------------------------------===// 40 // [range.prim.size] 51 { _LIBCPP_AUTO_CAST(__t.size()) } -> __integer_like; in requires() 57 { _LIBCPP_AUTO_CAST(size(__t)) } -> __integer_like; 63 { ranges::begin(__t) } -> forward_iterator; 64 { ranges::end(__t) } -> sized_sentinel_for<decltype(ranges::begin(std::declval<_Tp>()))>; 68 // `[range.prim.size]`: the array case (for rvalues). [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | HTMLLogger.cpp | 1 //===-- HTMLLogger.cpp ----------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 // so each output file is self-contained. 47 // (id or data-foo) that define what they should select. 51 // - sections <section data-selection="bb"> get shown 52 // - templates under such sections get re-rendered 53 // - elements with class/id "B2" get class "bb-select" 55 //===----------------------------------------------------------------------===// 108 for (const auto& Prop : V.properties()) in dump() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | coff_platform.cpp | 1 //===- coff_platform.cpp --------- 542 registerBlockRange(ExecutorAddr HeaderAddr,ExecutorAddrRange Range) registerBlockRange() argument 551 deregisterBlockRange(ExecutorAddr HeaderAddr,ExecutorAddrRange Range) deregisterBlockRange() argument 592 auto &Range = It->second; findJITDylibBaseByPC() local [all...] |
H A D | interval_map.h | 1 //===--------- interval_map.h - A sorted interval map -----------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 64 // Early out if the key is clearly outside the range. in find() 65 if (empty() || K < begin()->first.first || in find() 66 K >= std::prev(end())->first.second) in find() 69 auto I = Impl.upper_bound(K); in find() 72 if (K < I->first.second) in find() 78 return const_cast<IntervalMapBase<KeyT, ValT> *>(this)->find(K); in find() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonBlockRanges.cpp | 1 //===- HexagonBlockRanges.cpp ---------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 39 bool SbAE = (S < AE) || (S == AE && A.TiedEnd); // S-before-AE. in overlaps() 40 bool ASbE = (AS < E) || (AS == E && TiedEnd); // AS-before-E. in overlaps() 49 // Treat "None" in the range end as equal to the range start. in contains() 76 for (const auto &R : RL) in include() 90 while (Iter != end()-1) { in unionize() 94 bool Merge = MergeAdjacent && (Iter->end() == Next->start()); in unionize() 95 if (Merge || Iter->overlaps(*Next)) { in unionize() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
H A D | DwarfTransformer.cpp | 1 //===- DwarfTransformer.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 40 CompDir = CU->getCompilationDir(); in CUInfo() 43 FileCache.assign(LineTable->Prologue.FileNames.size() + 1, UINT32_MAX); in CUInfo() 44 DWARFDie Die = CU->getUnitDIE(); in CUInfo() 46 AddrSize = CU->getAddressByteSize(); in CUInfo() 50 /// highest address is encoded as -1, of all ones in the address. These high 78 if (LineTable->getFileNameByIndex( in DWARFToGSYMFileIndex() 101 // We never want to follow parent for inlined subroutine - that would in GetParentDeclContextDIE() [all …]
|