/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 69 T *Begin = nullptr; variable 118 assert(Begin + idx < End); 119 return Begin[idx]; 122 assert(Begin + idx < End); 123 return Begin[idx]; 155 End = Begin; in clear() 160 return pointer(Begin); in data() 191 ptrdiff_t D = I - Begin; in insert() 193 I = Begin + D; in insert() 245 if (Begin != End) { in grow() [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); 112 assert(Begin + idx < End); 113 return Begin[idx]; 117 return Begin[idx]; 149 End = Begin; in clear() 154 return pointer(Begin); in data() 391 if (Begin != End) { in grow() [all …]
|
H A D | ExprOpenMP.h | 223 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); in children() local 224 return child_range(Begin, Begin + NumDims + 1); in children() 227 Stmt *const *Begin = in children() local 229 return const_child_range(Begin, Begin + NumDims + 1); in children() 279 Expr *Begin = nullptr; member 298 Begin = 0, enumerator 338 void setIteratorRange(unsigned I, Expr *Begin, SourceLocation ColonLoc, 411 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>()); in children() local 413 Begin, Begin + NumIterators * static_cast<int>(RangeExprOffset::Total)); in children() 416 Stmt *const *Begin = in children() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | GCNIterativeScheduler.cpp | 50 auto BB = Begin->getParent(); in printRegion() 53 auto I = Begin; in printRegion() 79 const auto BB = Begin->getParent(); in printLivenessInfo() 106 printRegion(OS, R->Begin, R->End, LIS); in printSchedResult() 130 auto BB = R.Begin->getParent(); in BuildDAG() 168 auto BB = R.Begin->getParent(); in OverrideLegacyStrategy() 189 Rgn.Begin = Sch.RegionBegin; in schedule() 249 UPTracker.recede(*Begin); in getRegionPressure() 358 auto BB = R.Begin->getParent(); in scheduleRegion() 359 auto Top = R.Begin; in scheduleRegion() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingBuffer.c | 61 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, in __llvm_profile_get_num_data() argument 63 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_data() 69 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, in __llvm_profile_get_data_size() argument 71 return __llvm_profile_get_num_data(Begin, End) * sizeof(__llvm_profile_data); in __llvm_profile_get_data_size() 81 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End) { in __llvm_profile_get_num_counters() argument 82 intptr_t BeginI = (intptr_t)Begin, EndI = (intptr_t)End; in __llvm_profile_get_num_counters() 89 return __llvm_profile_get_num_counters(Begin, End) * in __llvm_profile_get_counters_size() 94 uint64_t __llvm_profile_get_num_bitmap_bytes(const char *Begin, in __llvm_profile_get_num_bitmap_bytes() argument 96 return (End - Begin); in __llvm_profile_get_num_bitmap_bytes() 100 uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End) { in __llvm_profile_get_name_size() argument [all …]
|
H A D | InstrProfiling.h | 232 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin, 236 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin, 243 uint64_t __llvm_profile_get_num_counters(const char *Begin, const char *End); 246 uint64_t __llvm_profile_get_counters_size(const char *Begin, const char *End); 249 uint64_t __llvm_profile_get_num_bitmap_bytes(const char *Begin, 253 uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End);
|
/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/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/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/lib/Support/ |
H A D | Parallel.cpp | 227 void llvm::parallelFor(size_t Begin, size_t End, in parallelFor() argument 231 auto NumItems = End - Begin; in parallelFor() 239 for (; Begin + TaskSize < End; Begin += TaskSize) { in parallelFor() 241 for (size_t I = Begin, E = Begin + TaskSize; I != E; ++I) in parallelFor() 245 if (Begin != End) { in parallelFor() 247 for (size_t I = Begin; I != End; ++I) in parallelFor() 255 for (; Begin != End; ++Begin) in parallelFor() 256 Fn(Begin); in parallelFor()
|
/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/llvm/include/llvm/ADT/ |
H A D | Sequence.h | 274 : BeginValue(Begin), PastEndValue(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() 353 return iota_range<EnumT>(Begin, End, false); in enum_seq() 367 return iota_range<EnumT>(Begin, End, true); in enum_seq_inclusive() 379 auto enum_seq_inclusive(EnumT Begin, EnumT End, in enum_seq_inclusive() argument [all …]
|
H A D | StringExtras.h | 407 inline std::string join_impl(IteratorT Begin, IteratorT End, in join_impl() argument 410 if (Begin == End) in join_impl() 413 S += (*Begin); in join_impl() 414 while (++Begin != End) { in join_impl() 416 S += (*Begin); in join_impl() 425 if (Begin == End) in join_impl() 429 for (IteratorT I = Begin; I != End; ++I) in join_impl() 434 S += (*Begin); in join_impl() 435 while (++Begin != End) { in join_impl() 437 S += (*Begin); in join_impl() [all …]
|
/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() 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() 268 while (Begin != End) { in visitRange() 269 LargestTypeIndex = std::max(LargestTypeIndex, Begin); in visitRange() 270 auto Idx = Begin.toArrayIndex(); 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/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ConstantInitBuilder.cpp | 186 Parent->getGEPIndicesTo(indices, Begin); in getGEPIndicesTo() 194 assert(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() 270 auto elts = llvm::ArrayRef(buffer).slice(Begin); in finishArray() 274 buffer.erase(buffer.begin() + Begin, buffer.end()); in finishArray() 283 auto elts = llvm::ArrayRef(buffer).slice(Begin); in finishStruct() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 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() 406 Begin = retrieveMacroLocation(Begin, BeginFileID, CaretLocFileID, in mapDiagnosticRanges() 412 if (Begin.isInvalid() || End.isInvalid()) continue; in mapDiagnosticRanges() 415 Begin = SM->getSpellingLoc(Begin); in mapDiagnosticRanges() [all …]
|
/freebsd/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 | 169 ResultTy parallel_transform_reduce(IterTy Begin, IterTy End, ResultTy Init, in parallel_transform_reduce() argument 174 size_t NumInputs = std::distance(Begin, End); in parallel_transform_reduce() 186 IterTy TBegin = Begin; in parallel_transform_reduce() 230 void parallelFor(size_t Begin, size_t End, function_ref<void(size_t)> Fn); 233 void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) { in parallelForEach() argument 234 parallelFor(0, End - Begin, [&](size_t I) { Fn(Begin[I]); }); in parallelForEach() 239 ResultTy parallelTransformReduce(IterTy Begin, IterTy End, ResultTy Init, in parallelTransformReduce() argument 244 return parallel::detail::parallel_transform_reduce(Begin, End, Init, Reduce, in parallelTransformReduce() 248 for (IterTy I = Begin; I != End; ++I) in parallelTransformReduce()
|
/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/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/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 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() 418 unsigned size() const { return End - Begin; }; in size() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SlotIndexes.cpp | 180 MachineBasicBlock::iterator Begin, in repairIndexesInRange() argument 182 bool includeStart = (Begin == MBB->begin()); in repairIndexesInRange() 187 startIdx = getInstructionIndex(*--Begin); in repairIndexesInRange() 203 while (ListI != ListB || MBBI != Begin || (includeStart && !pastStart)) { in repairIndexesInRange() 210 bool MBBIAtBegin = MBBI == Begin && (!includeStart || pastStart); in repairIndexesInRange() 214 if (MBBI != Begin) in repairIndexesInRange() 219 if (MBBI != Begin) in repairIndexesInRange() 232 for (MachineBasicBlock::iterator I = End; I != Begin;) { in repairIndexesInRange()
|
/freebsd/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() 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() 331 (*scope.Begin)->getBeginLoc()); in handlePoolScope() [all …]
|