/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 69 T *Begin = nullptr; variable 82 destroy_range(Begin, End); in ~BumpVector() 101 iterator begin() { return Begin; } in begin() 102 const_iterator begin() const { return Begin; } in begin() 114 bool empty() const { return Begin == End; } in empty() 115 size_type size() const { return End-Begin; } in size() 118 assert(Begin + idx < End); 119 return Begin[idx]; 122 assert(Begin + idx < End); 123 return Begin[idx]; [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTVector.h | 38 T *Begin = nullptr; 54 ASTVector(ASTVector &&O) : Begin(O.Begin), End(O.End), Capacity(O.Capacity) { in ASTVector() 55 O.Begin = O.End = nullptr; in ASTVector() 69 swap(Begin, O.Begin); 78 destroy_range(Begin, End); in ~ASTVector() 97 iterator begin() { return Begin; } in begin() 98 const_iterator begin() const { return Begin; } in begin() 108 bool empty() const { return Begin == End; } in empty() 109 size_type size() const { return End-Begin; } in size() 112 assert(Begin + idx < End); [all …]
|
H A D | ExprOpenMP.h | 99 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); in children() local 100 return child_range(Begin, Begin + NumDims + 1); in children() 103 Stmt *const *Begin = in children() local 105 return const_child_range(Begin, Begin + NumDims + 1); in children() 155 Expr *Begin = nullptr; member 174 Begin = 0, enumerator 214 void setIteratorRange(unsigned I, Expr *Begin, SourceLocation ColonLoc, 287 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); in children() local 289 Begin, Begin + NumIterators * static_cast<int>(RangeExprOffset::Total)); in children() 292 Stmt *const *Begin = in children() local [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingBuffer.c | 67 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, in __llvm_profile_get_num_data() argument 69 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_data() 75 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, in __llvm_profile_get_data_size() argument 77 return __llvm_profile_get_num_data(Begin, End) * sizeof(__llvm_profile_data); in __llvm_profile_get_data_size() 87 uint64_t __llvm_profile_get_num_vtable(const VTableProfData *Begin, in __llvm_profile_get_num_vtable() argument 90 intptr_t EndI = (intptr_t)End, BeginI = (intptr_t)Begin; in __llvm_profile_get_num_vtable() 95 uint64_t __llvm_profile_get_vtable_section_size(const VTableProfData *Begin, in __llvm_profile_get_vtable_section_size() argument 97 return (intptr_t)(End) - (intptr_t)(Begin); in __llvm_profile_get_vtable_section_size() 107 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End) { in __llvm_profile_get_num_counters() argument 108 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_counters() [all …]
|
H A D | InstrProfiling.h | 241 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, 245 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, 252 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End); 255 uint64_t __llvm_profile_get_counters_size(const char *Begin, const char *End); 258 uint64_t __llvm_profile_get_num_bitmap_bytes(const char *Begin, 262 uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End); 265 uint64_t __llvm_profile_get_num_vtable(const VTableProfData *Begin, 269 uint64_t __llvm_profile_get_vtable_section_size(const VTableProfData *Begin,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | GCNIterativeScheduler.cpp | 45 MachineBasicBlock::iterator Begin, in printRegion() argument 50 auto BB = Begin->getParent(); in printRegion() 53 auto I = Begin; in printRegion() 76 MachineBasicBlock::iterator Begin, in printLivenessInfo() argument 79 const auto BB = Begin->getParent(); in printLivenessInfo() 82 const auto LiveIns = getLiveRegsBefore(*Begin, *LIS); in printLivenessInfo() 95 printRegion(OS, R->Begin, R->End, LIS, 1); in printRegions() 96 printLivenessInfo(OS, R->Begin, R->End, LIS); in printRegions() 106 printRegion(OS, R->Begin, R->End, LIS); in printSchedResult() 130 auto BB = R.Begin->getParent(); in BuildDAG() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Parallel.cpp | 202 void llvm::parallelFor(size_t Begin, size_t End, in parallelFor() argument 206 auto NumItems = End - Begin; in parallelFor() 214 for (; Begin + TaskSize < End; Begin += TaskSize) { in parallelFor() 216 for (size_t I = Begin, E = Begin + TaskSize; I != E; ++I) in parallelFor() 220 if (Begin != End) { in parallelFor() 222 for (size_t I = Begin; I != End; ++I) in parallelFor() 230 for (; Begin != End; ++Begin) in parallelFor() 231 Fn(Begin); in parallelFor()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | Sequence.h | 273 explicit iota_range(T Begin, T End, bool Inclusive) in iota_range() 274 : BeginValue(Begin), PastEndValue(End) { in iota_range() 275 assert(Begin <= End && "Begin must be less or equal to End."); in iota_range() 299 /// Iterate over an integral type from Begin up to - but not including - End. 300 /// Note: Begin and End values have to be within [INTMAX_MIN, INTMAX_MAX] for 305 auto seq(T Begin, T End) { in seq() argument 306 return iota_range<T>(Begin, End, false); in seq() 319 /// Iterate over an integral type from Begin to End inclusive. 320 /// Note: Begin an 315 seq_inclusive(T Begin,T End) seq_inclusive() argument 327 enum_seq(EnumT Begin,EnumT End) enum_seq() argument 342 enum_seq(EnumT Begin,EnumT End,force_iteration_on_noniterable_enum_t) enum_seq() argument 354 enum_seq_inclusive(EnumT Begin,EnumT End) enum_seq_inclusive() argument 369 enum_seq_inclusive(EnumT Begin,EnumT End,force_iteration_on_noniterable_enum_t) enum_seq_inclusive() argument [all...] |
H A D | StringExtras.h | 409 inline std::string join_impl(IteratorT Begin, IteratorT End, in join_impl() argument 412 if (Begin == End) in join_impl() 415 S += (*Begin); in join_impl() 416 while (++Begin != End) { in join_impl() 418 S += (*Begin); in join_impl() 424 inline std::string join_impl(IteratorT Begin, IteratorT End, in join_impl() argument 427 if (Begin == End) in join_impl() 430 size_t Len = (std::distance(Begin, End) - 1) * Separator.size(); in join_impl() 431 for (IteratorT I = Begin; I != End; ++I) in join_impl() 436 S += (*Begin); in join_impl() [all …]
|
H A D | BitVector.h | 195 int find_first_in(unsigned Begin, unsigned End, bool Set = true) const { 196 assert(Begin <= End && End <= Size); 197 if (Begin == End) 200 unsigned FirstWord = Begin / BITWORD_SIZE; 214 unsigned FirstBit = Begin % BITWORD_SIZE; 230 int find_last_in(unsigned Begin, unsigned End) const { in find_last_in() argument 231 assert(Begin <= End && End <= Size); in find_last_in() 232 if (Begin == End) in find_last_in() 236 unsigned FirstWord = Begin / BITWORD_SIZE; in find_last_in() 248 unsigned FirstBit = Begin % BITWORD_SIZE; in find_last_in() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_utils.cpp | 49 void LogWriter::WriteAll(const char *Begin, const char *End) XRAY_NEVER_INSTRUMENT { in WriteAll() argument 50 if (Begin == End) in WriteAll() 52 auto TotalBytes = std::distance(Begin, End); in WriteAll() 67 zx_status_t Status = _zx_vmo_write(Vmo, Begin, Offset, TotalBytes); in WriteAll() 140 void LogWriter::WriteAll(const char *Begin, const char *End) XRAY_NEVER_INSTRUMENT { 141 if (Begin == End) 143 auto TotalBytes = std::distance(Begin, End); 144 while (auto Written = write(Fd, Begin, TotalBytes)) { 154 Begin += Written;
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/begin/ |
H A D | tst.multibegin.d.out | 1 Begin fired first 2 Begin fired second 3 Begin fired third 4 Begin fired fourth 5 Begin fired fifth
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | CommandLineSourceLoc.h | 66 std::pair<unsigned, unsigned> Begin; member 95 auto Begin = ParsedSourceLocation::FromString(RangeSplit.first); in fromString() local 96 if (Begin.FileName.empty()) in fromString() 99 EndLine = Begin.Line; in fromString() 100 EndColumn = Begin.Column; in fromString() 102 return ParsedSourceRange{std::move(Begin.FileName), in fromString() 103 {Begin.Line, Begin.Column}, in fromString()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | FaultMapParser.h | 123 const uint8_t *Begin = P + FunctionFaultInfosOffset + in getFunctionFaultInfoAt() local 125 return FunctionFaultInfoAccessor(Begin, E); in getFunctionFaultInfoAt() 132 const uint8_t *Begin = P + MySize; in getNextFunctionInfo() local 133 assert(Begin < E && "out of bounds!"); in getNextFunctionInfo() 134 return FunctionInfoAccessor(Begin, E); in getNextFunctionInfo() 138 explicit FaultMapParser(const uint8_t *Begin, const uint8_t *End) in FaultMapParser() argument 139 : P(Begin), E(End) {} in FaultMapParser() 152 const uint8_t *Begin = P + FunctionInfosOffset; in getFirstFunctionInfo() local 153 return FunctionInfoAccessor(Begin, E); in getFirstFunctionInfo()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaFixItUtils.cpp | 59 const SourceLocation Begin = FullExpr->getSourceRange().getBegin(); in tryToFixConversion() local 98 S, Begin, VK_LValue); in tryToFixConversion() 109 CharSourceRange::getTokenRange(Begin, Begin))); in tryToFixConversion() 112 Hints.push_back(FixItHint::CreateInsertion(Begin, "*(")); in tryToFixConversion() 115 Hints.push_back(FixItHint::CreateInsertion(Begin, "*")); in tryToFixConversion() 140 Begin, VK_PRValue); in tryToFixConversion() 147 CharSourceRange::getTokenRange(Begin, Begin))); in tryToFixConversion() 150 Hints.push_back(FixItHint::CreateInsertion(Begin, "&(")); in tryToFixConversion() 153 Hints.push_back(FixItHint::CreateInsertion(Begin, "&")); in tryToFixConversion()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | LazyRandomTypeCollection.cpp | 228 auto Begin = Types.begin(); in fullScanForType() 241 Begin = Types.at(Offset); in fullScanForType() 242 ++Begin; in fullScanForType() 246 while (Begin != End) { in fullScanForType() 250 Records[Idx].Type = *Begin; in fullScanForType() 251 Records[Idx].Offset = Begin.offset(); in fullScanForType() 253 ++Begin; in fullScanForType() 262 void LazyRandomTypeCollection::visitRange(TypeIndex Begin, uint32_t BeginOffset, 268 while (Begin != End) { in visitRange() 269 LargestTypeIndex = std::max(LargestTypeIndex, Begin); in visitRange() 229 auto Begin = Types.begin(); fullScanForType() local 263 visitRange(TypeIndex Begin,uint32_t BeginOffset,TypeIndex End) visitRange() argument [all...] |
H A D | CVSymbolVisitor.cpp | 104 for (auto Begin = Symbols.begin(), End = Symbols.end(); Begin != End; in visitSymbolStreamFiltered() local 105 ++Begin) { in visitSymbolStreamFiltered() 106 uint32_t BeginOffset = Begin.offset(); in visitSymbolStreamFiltered() 107 CVSymbol BeginSym = *Begin; in visitSymbolStreamFiltered() 109 if (symbolOpensScope(Begin->kind())) { in visitSymbolStreamFiltered() 134 if (symbolEndsScope(Begin->kind())) in visitSymbolStreamFiltered() 141 if (symbolOpensScope(Begin->kind())) in visitSymbolStreamFiltered()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ConstantInitBuilder.cpp | 132 Builder.Buffer.size() - Begin); in getRelativeOffset() 163 (void)getGEPIndicesTo(entry.Indices, position + Begin); in getAddrOfPosition() 186 Parent->getGEPIndicesTo(indices, Begin); in getGEPIndicesTo() 194 assert(position >= Begin); in getGEPIndicesTo() 198 position - Begin)); in getGEPIndicesTo() 233 if (cacheEnd < Begin) { in getOffsetFromGlobalTo() 236 cacheEnd = Begin; in getOffsetFromGlobalTo() 237 offset = Parent->getOffsetFromGlobalTo(Begin); in getOffsetFromGlobalTo() 267 assert((Begin < buffer.size() || in finishArray() 268 (Begin == buffer.size() && eltTy)) in finishArray() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 332 SourceLocation Begin, SourceLocation End, const SourceManager *SM, in computeCommonMacroArgExpansionFileIDs() argument 336 getMacroArgExpansionFileIDs(Begin, BeginArgExpansions, /*IsBegin=*/true, SM); in computeCommonMacroArgExpansionFileIDs() 366 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges() local 369 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges() 376 while (Begin.isMacroID() && BeginFileID != EndFileID) { in mapDiagnosticRanges() 377 BeginLocsMap[BeginFileID] = Begin; in mapDiagnosticRanges() 378 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges() 379 BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges() 391 Begin = BeginLocsMap[EndFileID]; in mapDiagnosticRanges() 400 if (Begin.isInvalid() || End.isInvalid() || BeginFileID != EndFileID) in mapDiagnosticRanges() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Parallel.h | 167 ResultTy parallel_transform_reduce(IterTy Begin, IterTy End, ResultTy Init, in parallel_transform_reduce() argument 172 size_t NumInputs = std::distance(Begin, End); in parallel_transform_reduce() 184 IterTy TBegin = Begin; in parallel_transform_reduce() 228 void parallelFor(size_t Begin, size_t End, function_ref<void(size_t)> Fn); 231 void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) { in parallelForEach() argument 232 parallelFor(0, End - Begin, [&](size_t I) { Fn(Begin[I]); }); in parallelForEach() 237 ResultTy parallelTransformReduce(IterTy Begin, IterTy End, ResultTy Init, in parallelTransformReduce() argument 242 return parallel::detail::parallel_transform_reduce(Begin, End, Init, Reduce, in parallelTransformReduce() 246 for (IterTy I = Begin; I != End; ++I) in parallelTransformReduce()
|
H A D | BranchProbability.h | 62 static void normalizeProbabilities(ProbabilityIter Begin, 205 void BranchProbability::normalizeProbabilities(ProbabilityIter Begin, in normalizeProbabilities() argument 207 if (Begin == End) in normalizeProbabilities() 211 uint64_t Sum = std::accumulate(Begin, End, uint64_t(0), in normalizeProbabilities() 228 std::replace_if(Begin, End, in normalizeProbabilities() 237 BranchProbability BP(1, std::distance(Begin, End)); in normalizeProbabilities() 238 std::fill(Begin, End, BP); in normalizeProbabilities() 242 for (auto I = Begin; I != End; ++I) in normalizeProbabilities()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | memtag.h | 167 inline uptr storeTags(uptr Begin, uptr End) { in storeTags() argument 168 DCHECK_EQ(0, Begin % 16); in storeTags() 224 : [Cur] "+&r"(Begin), [LineSize] "=&r"(LineSize), [Next] "=&r"(Next), in storeTags() 228 DCHECK_EQ(0, Begin % 16); in storeTags() 229 return Begin; in storeTags() 287 inline NORETURN uptr storeTags(uptr Begin, uptr End) { in storeTags() argument 288 (void)Begin; in storeTags()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/ |
H A D | Instruction.h | 390 unsigned Begin; // Inclusive. variable 396 : Begin(StartCycle), End(EndCycle), Reserved(IsReserved) {} in Begin() function 398 bool contains(unsigned Cycle) const { return Cycle >= Begin && Cycle < End; } in contains() 399 bool startsAfter(const CycleSegment &CS) const { return End <= CS.Begin; } in startsAfter() 400 bool endsBefore(const CycleSegment &CS) const { return Begin >= CS.End; } in endsBefore() 404 bool isExecuting() const { return Begin == 0 && End != 0; } in isExecuting() 407 return Begin < Other.Begin; 410 if (Begin) 411 Begin--; 417 bool isValid() const { return Begin <= End; } in isValid() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SlotIndexes.cpp | 192 MachineBasicBlock::iterator Begin, in repairIndexesInRange() argument 194 bool includeStart = (Begin == MBB->begin()); in repairIndexesInRange() 199 startIdx = getInstructionIndex(*--Begin); in repairIndexesInRange() 215 while (ListI != ListB || MBBI != Begin || (includeStart && !pastStart)) { in repairIndexesInRange() 222 bool MBBIAtBegin = MBBI == Begin && (!includeStart || pastStart); in repairIndexesInRange() 226 if (MBBI != Begin) in repairIndexesInRange() 231 if (MBBI != Begin) in repairIndexesInRange() 244 for (MachineBasicBlock::iterator I = End; I != Begin;) { in repairIndexesInRange()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | User.cpp | 60 Use *Begin = static_cast<Use*>(::operator new(size)); in allocHungoffUses() local 61 Use *End = Begin + N; in allocHungoffUses() 62 setOperandList(Begin); in allocHungoffUses() 63 for (; Begin != End; Begin++) in allocHungoffUses() 64 new (Begin) Use(this); in allocHungoffUses()
|