| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 94 while (!Fmt.empty()) { in splitLiteralAndReplacement() 96 if (Fmt.front() != '{') { in splitLiteralAndReplacement() 97 std::size_t BO = Fmt.find_first_of('{'); in splitLiteralAndReplacement() 98 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO)); in splitLiteralAndReplacement() 113 std::size_t BC = Fmt.find_first_of('}'); in splitLiteralAndReplacement() 127 Fmt.substr(BO2)); in splitLiteralAndReplacement() 129 StringRef Spec = Fmt.slice(1, BC); in splitLiteralAndReplacement() 130 StringRef Right = Fmt.substr(BC + 1); in splitLiteralAndReplacement() 138 Fmt = Fmt.drop_front(BC + 1); in splitLiteralAndReplacement() 147 while (!Fmt.empty()) { in parseFormatString() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | FormatVariadic.h | 67 StringRef Fmt; 74 splitLiteralAndReplacement(StringRef Fmt); 76 formatv_object_base(StringRef Fmt, in formatv_object_base() argument 78 : Fmt(Fmt), Adapters(Adapters) {} in formatv_object_base() 85 for (auto &R : parseFormatString(Fmt)) { in format() 103 static SmallVector<ReplacementItem, 2> parseFormatString(StringRef Fmt); 151 formatv_object(StringRef Fmt, Tuple &&Params) in formatv_object() argument 152 : formatv_object_base(Fmt, ParameterPointers), in formatv_object() 250 inline auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object<decltype( 255 Fmt,
|
| H A D | Format.h | 40 const char *Fmt; 49 format_object_base(const char *fmt) : Fmt(fmt) {} in format_object_base() 97 return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); 99 return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); 124 inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) { 125 return format_object<Ts...>(Fmt, Vals...);
|
| H A D | Error.h | 1235 inline Error createStringError(std::error_code EC, char const *Fmt, in createStringError() argument 1239 Stream << format(Fmt, Vals...); in createStringError() 1250 inline Error createStringError(std::errc EC, char const *Fmt, in createStringError() argument 1252 return createStringError(std::make_error_code(EC), Fmt, Vals...); in createStringError()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 87 raw_string_ostream Fmt(FmtBuf); in getRelocationValueString() local 106 Fmt << *SecName; in getRelocationValueString() 112 Fmt << demangle(std::string(*SymName)); in getRelocationValueString() 114 Fmt << *SymName; in getRelocationValueString() 117 Fmt << "*ABS*"; in getRelocationValueString() 120 Fmt << (Addend < 0 in getRelocationValueString() 125 Fmt.flush(); in getRelocationValueString() 191 const char *Fmt = in printDynamicSection() local 205 outs() << format(Fmt, (uint64_t)Dyn.d_un.d_val); in printDynamicSection() 268 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr " in printProgramHeaders() [all …]
|
| H A D | WasmDump.cpp | 37 raw_string_ostream Fmt(FmtBuf); in getWasmRelocationValueString() local 41 Fmt << Rel.Index; in getWasmRelocationValueString() 49 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString() 50 Fmt.flush(); in getWasmRelocationValueString()
|
| H A D | MachODump.cpp | 426 Fmt << S; in printRelocationTargetName() 451 Fmt << "@GOT"; in getMachORelocationValueString() 472 Fmt << "-"; in getMachORelocationValueString() 480 Fmt << "P"; in getMachORelocationValueString() 484 Fmt << "-1"; in getMachORelocationValueString() 488 Fmt << "-2"; in getMachORelocationValueString() 492 Fmt << "-4"; in getMachORelocationValueString() 519 Fmt << "-"; in getMachORelocationValueString() 540 Fmt << "-"; in getMachORelocationValueString() 591 Fmt << ")"; in getMachORelocationValueString() [all …]
|
| H A D | llvm-objdump.cpp | 451 StringRef Fmt = Is64Bits ? "\t\t%016" PRIx64 ": " : "\t\t\t%08" PRIx64 ": "; in printRelocation() local 457 OS << format(Fmt.data(), Address) << Name << "\t" << Val; in printRelocation() 1720 StringRef Fmt = Obj->getBytesInAddress() > 4 ? "%016" PRIx64 : in printRelocations() local 1764 outs() << format(Fmt.data(), Address) << " " in printRelocations() 1788 StringRef Fmt = Obj->getBytesInAddress() > 4 ? "%016" PRIx64 : "%08" PRIx64; in printDynamicRelocations() local 1797 outs() << format(Fmt.data(), Address) << " " << RelocName << " " in printDynamicRelocations() 2021 const char *Fmt = O->getBytesInAddress() > 4 ? "%016" PRIx64 : "%08" PRIx64; in printSymbol() local 2023 outs() << format(Fmt, Address) << " " in printSymbol() 2049 outs() << '\t' << format(Fmt, Val); in printSymbol() 2204 StringRef Fmt = O->getBytesInAddress() > 4 ? "%016" PRIx64 : "%08" PRIx64; in printFileHeaders() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Builtins.cpp | 129 bool &HasVAListArg, const char *Fmt) const { in isLike() 130 assert(Fmt && "Not passed a format string"); in isLike() 131 assert(::strlen(Fmt) == 2 && in isLike() 133 assert(::toupper(Fmt[0]) == Fmt[1] && in isLike() 136 const char *Like = ::strpbrk(getRecord(ID).Attributes, Fmt); in isLike() 140 HasVAListArg = (*Like == Fmt[1]); in isLike()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIO.cpp | 146 void Printf(const char *Fmt, ...) { in Printf() argument 148 va_start(ap, Fmt); in Printf() 149 vfprintf(OutputFile, Fmt, ap); in Printf() 154 void VPrintf(bool Verbose, const char *Fmt, ...) { in VPrintf() argument 157 va_start(ap, Fmt); in VPrintf() 158 vfprintf(OutputFile, Fmt, ap); in VPrintf()
|
| H A D | FuzzerIO.h | 57 void Printf(const char *Fmt, ...); 58 void VPrintf(bool Verbose, const char *Fmt, ...);
|
| /freebsd-13.1/sys/contrib/dev/acpica/os_specific/service_layers/ |
| H A D | osunixxf.c | 533 const char *Fmt, in AcpiOsPrintf() argument 549 va_start (Args, Fmt); in AcpiOsPrintf() 550 vfprintf (AcpiGbl_DebugFile, Fmt, Args); in AcpiOsPrintf() 563 va_start (Args, Fmt); in AcpiOsPrintf() 564 vfprintf (AcpiGbl_OutputFile, Fmt, Args); in AcpiOsPrintf() 587 const char *Fmt, in AcpiOsVprintf() argument 604 vsnprintf (Buffer, ACPI_VPRINTF_BUFFER_SIZE, Fmt, Args); in AcpiOsVprintf()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | LinePrinter.h | 44 template <typename... Ts> void formatLine(const char *Fmt, Ts &&... Items) { in formatLine() argument 45 printLine(formatv(Fmt, std::forward<Ts>(Items)...)); in formatLine() 47 template <typename... Ts> void format(const char *Fmt, Ts &&... Items) { in format() argument 48 print(formatv(Fmt, std::forward<Ts>(Items)...)); in format()
|
| /freebsd-13.1/sys/contrib/dev/acpica/compiler/ |
| H A D | asldebug.c | 189 char *Fmt, in CvDbgPrint() argument 200 va_start (Args, Fmt); in CvDbgPrint() 201 (void) vfprintf (AcpiGbl_ConvDebugFile, Fmt, Args); in CvDbgPrint()
|
| H A D | aslutils.c | 521 char *Fmt, in DbgPrint() argument 538 va_start (Args, Fmt); in DbgPrint() 539 (void) vfprintf (stderr, Fmt, Args); in DbgPrint()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | AMDGPUEmitPrintf.cpp | 193 static void locateCStrings(SparseBitVector<8> &BV, Value *Fmt) { in locateCStrings() argument 195 if (!getConstantStringInfo(Fmt, Str) || Str.empty()) in locateCStrings() 226 auto Fmt = Args[0]; in emitAMDGPUPrintfCall() local 228 locateCStrings(SpecIsCString, Fmt); in emitAMDGPUPrintfCall() 231 Desc = appendString(Builder, Desc, Fmt, NumOps == 1); in emitAMDGPUPrintfCall()
|
| H A D | BuildLibCalls.cpp | 1365 Value *llvm::emitSNPrintf(Value *Dest, Value *Size, Value *Fmt, in emitSNPrintf() argument 1368 SmallVector<Value *, 8> Args{castToCStr(Dest, B), Size, castToCStr(Fmt, B)}; in emitSNPrintf() 1375 Value *llvm::emitSPrintf(Value *Dest, Value *Fmt, in emitSPrintf() argument 1378 SmallVector<Value *, 8> Args{castToCStr(Dest, B), castToCStr(Fmt, B)}; in emitSPrintf() 1413 Value *llvm::emitVSNPrintf(Value *Dest, Value *Size, Value *Fmt, Value *VAList, in emitVSNPrintf() argument 1418 {castToCStr(Dest, B), Size, castToCStr(Fmt, B), VAList}, B, TLI); in emitVSNPrintf() 1421 Value *llvm::emitVSPrintf(Value *Dest, Value *Fmt, Value *VAList, in emitVSPrintf() argument 1425 {castToCStr(Dest, B), castToCStr(Fmt, B), VAList}, B, TLI); in emitVSPrintf()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | FrontendOptions.h | 148 unsigned Fmt : 3; variable 161 : Lang(L), Fmt(F), Preprocessed(PP) {} in Lang() 164 Format getFormat() const { return static_cast<Format>(Fmt); } in getFormat() 168 bool isUnknown() const { return Lang == Language::Unknown && Fmt == Source; } in isUnknown()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BuildLibCalls.h | 121 Value *emitSNPrintf(Value *Dest, Value *Size, Value *Fmt, 126 Value *emitSPrintf(Value *Dest, Value *Fmt, ArrayRef<Value *> VariadicArgs, 146 Value *emitVSNPrintf(Value *Dest, Value *Size, Value *Fmt, Value *VAList, 150 Value *emitVSPrintf(Value *Dest, Value *Fmt, Value *VAList, IRBuilderBase &B,
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/lli/ |
| H A D | ExecutionUtils.cpp | 48 template <typename... Ts> static void outsv(const char *Fmt, Ts &&...Vals) { in outsv() argument 49 outs() << formatv(Fmt, Vals...); in outsv()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPrintfRuntimeBinding.cpp | 102 SmallVectorImpl<char> &OpConvSpecifiers, StringRef Fmt, in getConversionSpecifiers() argument 113 while ((CurFmtSpecifierIdx = Fmt.find_first_of( in getConversionSpecifiers() 116 StringRef CurFmt = Fmt.substr(PrevFmtSpecifierIdx, in getConversionSpecifiers() 127 OpConvSpecifiers.push_back(Fmt[CurFmtSpecifierIdx]); in getConversionSpecifiers()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | Twine.h | 319 /*implicit*/ Twine(const formatv_object_base &Fmt) in Twine() argument 321 LHS.formatvObject = &Fmt; in Twine()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 186 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt() local 187 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__", in DefineFmt() 188 Twine("\"") + FmtModifier + Twine(*Fmt) + "\""); in DefineFmt()
|
| H A D | VerifyDiagnosticConsumer.cpp | 867 SmallString<256> Fmt; in PrintUnexpected() local 868 llvm::raw_svector_ostream OS(Fmt); in PrintUnexpected() 895 SmallString<256> Fmt; in PrintExpected() local 896 llvm::raw_svector_ostream OS(Fmt); in PrintExpected()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Builtins.h | 245 const char *Fmt) const;
|