| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | string_utils.cpp | 128 for (; *Cur; Cur++) { in formatString() 129 if (*Cur != '%') { in formatString() 133 Cur++; in formatString() 136 Cur++; in formatString() 137 bool HaveWidth = (*Cur >= '0' && *Cur <= '9'); in formatString() 141 while (*Cur >= '0' && *Cur <= '9') in formatString() 144 const bool HavePrecision = (Cur[0] == '.' && Cur[1] == '*'); in formatString() 147 Cur += 2; in formatString() 151 Cur += HaveZ; in formatString() 152 const bool HaveLL = !HaveZ && (Cur[0] == 'l' && Cur[1] == 'l'); in formatString() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 52 ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes)>; 67 if (Pred(Cur, V)) in SourcePred() 77 bool matches(ArrayRef<Value *> Cur, const Value *New) { in matches() argument 78 return Pred(Cur, New); in matches() 84 return Make(Cur, BaseTypes); in generate() 196 assert(!Cur.empty() && "No first source yet"); in matchFirstType() 197 return V->getType() == Cur[0]->getType(); in matchFirstType() 200 assert(!Cur.empty() && "No first source yet"); in matchFirstType() 201 return makeConstantsWithType(Cur[0]->getType()); in matchFirstType() 209 assert(!Cur.empty() && "No first source yet"); in matchScalarOfFirstType() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | OptimizedStructLayout.cpp | 249 static Field *getNext(Field *Cur) { in performOptimizedStructLayout() 250 return static_cast<Field *>(Cur->Scratch); in performOptimizedStructLayout() 295 assert(Last ? Queue->getNext(Last) == Cur : Queue->Head == Cur); in performOptimizedStructLayout() 300 Last->Scratch = Cur->Scratch; in performOptimizedStructLayout() 305 if (!Cur->Scratch) in performOptimizedStructLayout() 310 if (auto NewHead = Queue->getNext(Cur)) in performOptimizedStructLayout() 331 assert(Offset == alignTo(LastEnd, Cur->Alignment)); in performOptimizedStructLayout() 334 spliceFromQueue(Queue, Last, Cur); in performOptimizedStructLayout() 337 Layout.push_back(*Cur); in performOptimizedStructLayout() 364 Last = Cur, Cur = Queue->getNext(Cur)) { in performOptimizedStructLayout() [all …]
|
| H A D | circular_raw_ostream.cpp | 26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl() 27 memcpy(Cur, Ptr, Bytes); in write_impl() 29 Cur += Bytes; in write_impl() 30 if (Cur == BufferArray + BufferSize) { in write_impl() 32 Cur = BufferArray; in write_impl()
|
| H A D | CommandLine.cpp | 1039 for (const char *Cur = Source.begin(); Cur != Source.end();) { in tokenizeConfigFile() local 1043 while (Cur != Source.end() && isWhitespace(*Cur)) in tokenizeConfigFile() 1044 ++Cur; in tokenizeConfigFile() 1047 if (*Cur == '#') { in tokenizeConfigFile() 1048 while (Cur != Source.end() && *Cur != '\n') in tokenizeConfigFile() 1049 ++Cur; in tokenizeConfigFile() 1054 for (const char *End = Source.end(); Cur != End; ++Cur) { in tokenizeConfigFile() 1055 if (*Cur == '\\') { in tokenizeConfigFile() 1057 ++Cur; in tokenizeConfigFile() 1059 (*Cur == '\r' && (Cur + 1 != End) && Cur[1] == '\n')) { in tokenizeConfigFile() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELF.cpp | 394 if (!Cur) in android_relas() 395 return std::move(Cur.takeError()); in android_relas() 401 if (!Cur) in android_relas() 402 return std::move(Cur.takeError()); in android_relas() 422 Addend += Data.getSLEB128(Cur); in android_relas() 433 Addend += Data.getSLEB128(Cur); in android_relas() 437 if (!Cur) in android_relas() 625 DataExtractor::Cursor Cur(0); in decodeBBAddrMap() local 636 uint64_t Offset = Cur.tell(); in decodeBBAddrMap() 647 while (!ULEBSizeErr && Cur && Cur.tell() < Content.size()) { in decodeBBAddrMap() [all …]
|
| H A D | XCOFFObjectFile.cpp | 976 DE.getU64(Cur); in XCOFFTracebackTable() 990 HandlerMask = DE.getU32(Cur); in XCOFFTracebackTable() 994 if (Cur && NumOfCtlAnchors) { in XCOFFTracebackTable() 999 if (Cur) in XCOFFTracebackTable() 1006 if (Cur) in XCOFFTracebackTable() 1010 if (Cur && isAllocaUsed()) in XCOFFTracebackTable() 1014 if (Cur && hasVectorInfo()) { in XCOFFTracebackTable() 1016 if (Cur) { in XCOFFTracebackTable() 1047 if (!Cur) in XCOFFTracebackTable() 1048 Err = Cur.takeError(); in XCOFFTracebackTable() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | Operations.cpp | 190 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in validExtractValueIndex() argument 198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() 222 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in matchScalarInAggregate() argument 226 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() 237 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() 246 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in validInsertValueIndex() argument 251 return Indexed == Cur[1]->getType(); in validInsertValueIndex() 258 auto *BaseTy = Cur[0]->getType(); in validInsertValueIndex() 261 if (Indexed == Cur[1]->getType()) in validInsertValueIndex() 301 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in validShuffleVectorIndex() argument [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 310 if (Cur->use_empty()) in AddReductionVar() 316 if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent()) in AddReductionVar() 321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar() 322 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar() 329 if (Cur != Start) { in AddReductionVar() 367 if (IsAPhi && Cur != Phi && !areAllUsesIn(Cur, VisitedInsts)) in AddReductionVar() 371 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 374 (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 409 ExitInstruction = Cur; in AddReductionVar() 953 if (!isCorrectOpcode(Cur) || !Cur->hasNUses(ExpectedUses)) in getReductionOpChain() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | circular_raw_ostream.h | 58 char *Cur; variable 75 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer() 77 TheStream->write(BufferArray, Cur - BufferArray); in flushBuffer() 78 Cur = BufferArray; in flushBuffer() 114 Cur = BufferArray; in raw_ostream()
|
| H A D | Registry.h | 86 const node *Cur; variable 89 explicit iterator(const node *N) : Cur(N) {} in iterator() 91 bool operator==(const iterator &That) const { return Cur == That.Cur; } 92 iterator &operator++() { Cur = Cur->Next; return *this; } 93 const entry &operator*() const { return Cur->Val; }
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | TypeLoc.cpp | 192 TypeLoc Cur = *this; in getBeginLoc() local 197 LeftMost = Cur; in getBeginLoc() 202 LeftMost = Cur; in getBeginLoc() 213 Cur = Cur.getNextTypeLoc(); in getBeginLoc() 218 Cur = Cur.getNextTypeLoc(); in getBeginLoc() 229 TypeLoc Cur = *this; in getEndLoc() local 235 Last = Cur; in getEndLoc() 243 Last = Cur; in getEndLoc() 249 Last = Cur; in getEndLoc() 258 Last = Cur; in getEndLoc() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCPseudoProbe.cpp | 113 auto *Cur = getOrAddNode(Top); in addPseudoProbe() local 123 Cur = Cur->getOrAddNode(InlineSite(std::get<0>(*Iter), Index)); in addPseudoProbe() 126 Cur = Cur->getOrAddNode(InlineSite(Probe.getGuid(), Index)); in addPseudoProbe() 129 Cur->Probes.push_back(Probe); in addPseudoProbe()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ScheduleDAG.cpp | 268 SUnit *Cur = WorkList.back(); in ComputeDepth() local 272 for (const SDep &PredDep : Cur->Preds) { in ComputeDepth() 285 if (MaxPredDepth != Cur->Depth) { in ComputeDepth() 286 Cur->setDepthDirty(); in ComputeDepth() 287 Cur->Depth = MaxPredDepth; in ComputeDepth() 289 Cur->isDepthCurrent = true; in ComputeDepth() 299 SUnit *Cur = WorkList.back(); in ComputeHeight() local 316 if (MaxSuccHeight != Cur->Height) { in ComputeHeight() 317 Cur->setHeightDirty(); in ComputeHeight() 318 Cur->Height = MaxSuccHeight; in ComputeHeight() [all …]
|
| H A D | PseudoProbeInserter.cpp | 92 auto Cur = MII++; in runOnMachineFunction() local 93 if (Cur->getOpcode() != TargetOpcode::PSEUDO_PROBE) in runOnMachineFunction() 96 auto *ProbeInstr = &*Cur; in runOnMachineFunction()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMerge.cpp | 147 auto &Cur = Files[i].Features; in Merge() local 148 AllFeatures.insert(Cur.begin(), Cur.end()); in Merge() 152 auto &Cur = Files[i].Features; in Merge() local 154 std::set_difference(Cur.begin(), Cur.end(), AllFeatures.begin(), in Merge() 156 Cur.swap(Tmp); in Merge() 172 auto &Cur = Files[i].Features; in Merge() local 176 for (auto Fe: Cur) { in Merge()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DIEHash.cpp | 86 const DIE *Cur = &Parent; in addParentContext() local 87 while (Cur->getParent()) { in addParentContext() 88 Parents.push_back(Cur); in addParentContext() 89 Cur = Cur->getParent(); in addParentContext() 91 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit || in addParentContext() 92 Cur->getTag() == dwarf::DW_TAG_type_unit); in addParentContext()
|
| /freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | CodeGenInstruction.cpp | 470 FlattenAsmStringVariants(StringRef Cur, unsigned Variant) { in FlattenAsmStringVariants() argument 477 if (Cur[VariantsStart] == '{' && in FlattenAsmStringVariants() 478 (VariantsStart == 0 || (Cur[VariantsStart-1] != '$' && in FlattenAsmStringVariants() 479 Cur[VariantsStart-1] != '\\'))) in FlattenAsmStringVariants() 483 Res += Cur.slice(0, VariantsStart); in FlattenAsmStringVariants() 484 if (VariantsStart == Cur.size()) in FlattenAsmStringVariants() 493 if (Cur[VariantsEnd] == '}' && Cur[VariantsEnd-1] != '\\') { in FlattenAsmStringVariants() 496 } else if (Cur[VariantsEnd] == '{') in FlattenAsmStringVariants() 501 StringRef Selection = Cur.slice(VariantsStart, VariantsEnd); in FlattenAsmStringVariants() 506 assert(VariantsEnd != Cur.size() && in FlattenAsmStringVariants() [all …]
|
| H A D | DAGISelMatcher.cpp | 40 Matcher *Cur = this; in unlinkNode() local 41 for (; Cur && Cur->getNext() != Other; Cur = Cur->getNext()) in unlinkNode() 44 if (!Cur) return nullptr; in unlinkNode() 45 Cur->takeNext(); in unlinkNode() 46 Cur->setNext(Other->takeNext()); in unlinkNode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeEnumInjectedSources.cpp | 98 : File(File), Stream(IJS), Strings(Strings), Cur(Stream.begin()) {} in NativeEnumInjectedSources() 113 if (Cur == Stream.end()) in getNext() 115 return std::make_unique<NativeInjectedSource>((Cur++)->second, File, Strings); in getNext() 118 void NativeEnumInjectedSources::reset() { Cur = Stream.begin(); } in reset()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Option/ |
| H A D | ArgList.cpp | 177 StringRef Cur = getArgString(Index); in GetOrMakeJoinedArgString() local 178 if (Cur.size() == LHS.size() + RHS.size() && in GetOrMakeJoinedArgString() 179 Cur.startswith(LHS) && Cur.endswith(RHS)) in GetOrMakeJoinedArgString() 180 return Cur.data(); in GetOrMakeJoinedArgString()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | InstrProfReader.cpp | 789 const unsigned char *Cur, bool UseCS) { in readSummary() argument 795 reinterpret_cast<const IndexedInstrProf::Summary *>(Cur); in readSummary() 828 return Cur + SummarySize; in readSummary() 837 return Cur; in readSummary() 846 const unsigned char *Cur = Start; in readHeader() local 847 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader() 850 auto *Header = reinterpret_cast<const IndexedInstrProf::Header *>(Cur); in readHeader() 851 Cur += sizeof(IndexedInstrProf::Header); in readHeader() 864 Cur = readSummary((IndexedInstrProf::ProfVersion)FormatVersion, Cur, in readHeader() 867 Cur = readSummary((IndexedInstrProf::ProfVersion)FormatVersion, Cur, in readHeader() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNMinRegStrategy.cpp | 116 T Cur = C(*I); in findMax() local 117 if (Cur >= Max) { in findMax() 118 if (Cur > Max) { in findMax() 119 Max = Cur; in findMax()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | IdentifierResolver.cpp | 56 IdDeclInfoPool *Cur = CurPool; in ~IdDeclInfoMap() local 57 while (IdDeclInfoPool *P = Cur) { in ~IdDeclInfoMap() 58 Cur = Cur->Next; in ~IdDeclInfoMap()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64TargetStreamer.cpp | 76 MCSection *Cur = OutStreamer.getCurrentSectionOnly(); in emitNoteSection() local 93 OutStreamer.SwitchSection(Cur); in emitNoteSection()
|