| /freebsd-src/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-src/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 setLowerBound() 100 return child_range(Begin, Begin + NumDims + 1); 103 Stmt *const *Begin = in getLength() 105 return const_child_range(Begin, Begin + NumDims + 1); in setLength() 118 /// calculated as VD = Begin + CounterVD * Step; in getColonLocFirst() 155 Expr *Begin = nullptr; 174 Begin = 0, in numTrailingObjects() 214 void setIteratorRange(unsigned I, Expr *Begin, SourceLocatio 223 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); children() local 227 Stmt *const *Begin = children() local 279 Expr *Begin = nullptr; global() member 298 Begin = 0, global() enumerator 411 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); children() local 416 Stmt *const *Begin = children() local [all...] |
| /freebsd-src/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 in BuildDAG() 227 getRegionPressure(MachineBasicBlock::iterator Begin,MachineBasicBlock::iterator End) const getRegionPressure() argument 279 enterRegion(MachineBasicBlock * BB,MachineBasicBlock::iterator Begin,MachineBasicBlock::iterator End,unsigned NumRegionInstrs) enterRegion() argument [all...] |
| /freebsd-src/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingBuffer.c | 64 // NOTE: Caller should guarantee that `Begin` and `End` specifies a half-open in __llvm_profile_get_num_data() 65 // interval [Begin, End). Namely, `End` is one-byte past the end of the array. in __llvm_profile_get_num_data() 67 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, 69 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_data_size() argument 75 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, in __llvm_profile_counter_entry_size() 77 return __llvm_profile_get_num_data(Begin, End) * sizeof(__llvm_profile_data); in __llvm_profile_counter_entry_size() 80 // Counts the number of `VTableProfData` elements within the range of [Begin, 87 uint64_t __llvm_profile_get_num_vtable(const VTableProfData *Begin, 90 intptr_t EndI = (intptr_t)End, BeginI = (intptr_t)Begin; in __llvm_profile_get_counters_size() 95 uint64_t __llvm_profile_get_vtable_section_size(const VTableProfData *Begin, in __llvm_profile_get_num_bitmap_bytes() 61 __llvm_profile_get_num_data(const __llvm_profile_data * Begin,const __llvm_profile_data * End) __llvm_profile_get_num_data() argument 81 __llvm_profile_get_num_counters(const char * Begin,const char * End) __llvm_profile_get_num_counters() argument 88 __llvm_profile_get_counters_size(const char * Begin,const char * End) __llvm_profile_get_counters_size() argument 94 __llvm_profile_get_num_bitmap_bytes(const char * Begin,const char * End) __llvm_profile_get_num_bitmap_bytes() argument 100 __llvm_profile_get_name_size(const char * Begin,const char * End) __llvm_profile_get_name_size() argument [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-src/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-src/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-src/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-src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Parallel.cpp | 202 void llvm::parallelFor(size_t Begin, size_t End, in ~TaskGroup() 206 auto NumItems = End - Begin; in ~TaskGroup() 214 for (; Begin + TaskSize < End; Begin += TaskSize) { in spawn() 216 for (size_t I = Begin, E = Begin + TaskSize; I != E; ++I) in spawn() 220 if (Begin != End) { in spawn() 222 for (size_t I = Begin; I != End; ++I) in spawn() 230 for (; Begin != End; ++Begin) in parallelFor() 227 parallelFor(size_t Begin,size_t End,llvm::function_ref<void (size_t)> Fn) parallelFor() argument [all...] |
| /freebsd-src/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() 305 auto seq(T Begin, T End) { in seq() argument 306 return iota_range<T>(Begin, End, false); in seq() 325 auto seq_inclusive(T Begin, T End) { in seq_inclusive() argument 326 return iota_range<T>(Begin, End, true); in seq_inclusive() 337 auto enum_seq(EnumT Begin, EnumT End) { in enum_seq() argument 340 return iota_range<EnumT>(Begin, End, false); in enum_seq() 352 auto enum_seq(EnumT Begin, EnumT End, force_iteration_on_noniterable_enum_t) { in enum_seq() argument [all …]
|
| H A D | StringExtras.h | 409 inline std::string join_impl(IteratorT Begin, IteratorT End, in join_impl() 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() 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() 407 join_impl(IteratorT Begin,IteratorT End,StringRef Separator,std::input_iterator_tag) join_impl() argument 422 join_impl(IteratorT Begin,IteratorT End,StringRef Separator,std::forward_iterator_tag) join_impl() argument 476 join(IteratorT Begin,IteratorT End,StringRef Separator) join() argument [all...] |
| /freebsd-src/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-src/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-src/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | LazyRandomTypeCollection.cpp | 228 auto Begin = Types.begin(); in fullScanForType() local 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, in visitRange() argument 268 while (Begin != End) { in visitRange() 269 LargestTypeIndex = std::max(LargestTypeIndex, Begin); in visitRange() [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-src/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() 235 assert(Parent && "Begin != 0 for root builder"); in getOffsetFromGlobalTo() 236 cacheEnd = Begin; in getOffsetFromGlobalTo() 237 offset = Parent->getOffsetFromGlobalTo(Begin); in getOffsetFromGlobalTo() 267 assert((Begin < buffe in finishArray() [all...] |
| /freebsd-src/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-src/contrib/llvm-project/llvm/include/llvm/Support/ |
| 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()
|
| H A D | Parallel.h | 167 ResultTy parallel_transform_reduce(IterTy Begin, IterTy End, ResultTy Init, 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) { 232 parallelFor(0, End - Begin, [&](size_t I) { Fn(Begin[I]); }); 237 ResultTy parallelTransformReduce(IterTy Begin, IterTy End, ResultTy Init, 242 return parallel::detail::parallel_transform_reduce(Begin, End, Init, Reduce, in parallelTransformReduce() 246 for (IterTy I = Begin; in parallelTransformReduce() 169 parallel_transform_reduce(IterTy Begin,IterTy End,ResultTy Init,ReduceFuncTy Reduce,TransformFuncTy Transform) parallel_transform_reduce() argument 233 parallelForEach(IterTy Begin,IterTy End,FuncTy Fn) parallelForEach() argument 239 parallelTransformReduce(IterTy Begin,IterTy End,ResultTy Init,ReduceFuncTy Reduce,TransformFuncTy Transform) parallelTransformReduce() argument [all...] |
| /freebsd-src/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-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | Iterator.h | 78 const SymbolRef Begin, End; 80 ContainerData(SymbolRef B, SymbolRef E) : Begin(B), End(E) {} in ContainerData() 91 SymbolRef getBegin() const { return Begin; } in getBegin() 96 ContainerData newEnd(SymbolRef E) const { return ContainerData(Begin, E); } in newEnd() 99 return Begin == X.Begin && End == X.End; 105 ID.Add(Begin); in Profile()
|
| /freebsd-src/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-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SlotIndexes.cpp | 192 MachineBasicBlock::iterator Begin, in repairIndexesInRange() 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;) { 180 repairIndexesInRange(MachineBasicBlock * MBB,MachineBasicBlock::iterator Begin,MachineBasicBlock::iterator End) repairIndexesInRange() argument
|
| /freebsd-src/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransAutoreleasePool.cpp | 98 clearRefsIn(*scope.Begin, info.Refs); in ~AutoreleasePoolRewriter() 122 clearUnavailableDiags(*scope.Begin); in ~AutoreleasePoolRewriter() 126 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {"); in ~AutoreleasePoolRewriter() 141 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {"); in ~AutoreleasePoolRewriter() 182 Scopes.back().Begin = I; in VisitCompoundStmt() 197 Scopes.back().Begin = I; in VisitCompoundStmt() 227 Stmt::child_iterator Begin; member 237 Stmt::child_iterator rangeS = Begin; in getIndentedRange() 241 Stmt::child_iterator rangeE = Begin; in getIndentedRange() 259 ScopeRange = SourceRange((*scope.Begin)->getBeginLoc(), in NameReferenceChecker() [all …]
|