/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | FormatVariadicTest.cpp | 264 EXPECT_EQ("", formatv("").str()); in TEST() 265 EXPECT_EQ("Test", formatv("Test").str()); in TEST() 269 EXPECT_EQ("1", formatv("{0}", 1).str()); in TEST() 270 EXPECT_EQ("c", formatv("{0}", 'c').str()); in TEST() 271 EXPECT_EQ("-3", formatv("{0}", -3).str()); in TEST() 272 EXPECT_EQ("Test", formatv("{0}", "Test").str()); in TEST() 273 EXPECT_EQ("Test2", formatv("{0}", StringRef("Test2")).str()); in TEST() 274 EXPECT_EQ("Test3", formatv("{0}", std::string("Test3")).str()); in TEST() 279 EXPECT_EQ("0", formatv("{0}", 0).str()); in TEST() 280 EXPECT_EQ("2748", formatv("{0}", 0xABC).str()); in TEST() [all …]
|
D | Chrono.cpp | 54 EXPECT_EQ("2006-01-02 15:04:05.123456789", formatv("{0}", T).str()); in TEST() 56 EXPECT_EQ("15:04:05", formatv("{0:%H:%M:%S}", T).str()); in TEST() 58 EXPECT_EQ("123", formatv("{0:%L}", T).str()); in TEST() 59 EXPECT_EQ("123456", formatv("{0:%f}", T).str()); in TEST() 60 EXPECT_EQ("123456789", formatv("{0:%N}", T).str()); in TEST() 62 EXPECT_EQ("%foo", formatv("{0:%%foo}", T).str()); in TEST() 83 EXPECT_EQ("1 h", formatv("{0}", hours(1)).str()); in TEST() 84 EXPECT_EQ("1 m", formatv("{0}", minutes(1)).str()); in TEST() 85 EXPECT_EQ("1 s", formatv("{0}", seconds(1)).str()); in TEST() 86 EXPECT_EQ("1 ms", formatv("{0}", milliseconds(1)).str()); in TEST() [all …]
|
D | JSONTest.cpp | 20 std::string s(const Value &E) { return llvm::formatv("{0}", E).str(); } in s() 21 std::string sp(const Value &E) { return llvm::formatv("{0:2}", E).str(); } in sp()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/BinaryFormat/ |
D | DwarfTest.cpp | 197 EXPECT_EQ("DW_AT_name", formatv("{0}", DW_AT_name).str()); in TEST() 198 EXPECT_EQ("DW_AT_unknown_3fff", formatv("{0}", DW_AT_hi_user).str()); in TEST() 199 EXPECT_EQ("DW_FORM_addr", formatv("{0}", DW_FORM_addr).str()); in TEST() 200 EXPECT_EQ("DW_FORM_unknown_1f00", formatv("{0}", DW_FORM_lo_user).str()); in TEST() 201 EXPECT_EQ("DW_IDX_compile_unit", formatv("{0}", DW_IDX_compile_unit).str()); in TEST() 202 EXPECT_EQ("DW_IDX_unknown_3fff", formatv("{0}", DW_IDX_hi_user).str()); in TEST() 203 EXPECT_EQ("DW_TAG_compile_unit", formatv("{0}", DW_TAG_compile_unit).str()); in TEST() 204 EXPECT_EQ("DW_TAG_unknown_ffff", formatv("{0}", DW_TAG_hi_user).str()); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/ |
D | Analyze.cpp | 97 outs() << formatv("Hash: {0}, Count: {1} records\n", H.first, in dump() 109 outs() << formatv("{0,-6} {1} ({2:x}) {3}\n", Prefix, LeafName, TI, in dump() 128 outs() << formatv(" [HEAD] {0:x} {1} {2}\n", uint32_t(A.second), in dump() 134 outs() << formatv(" {0:x} {1} {2}\n", Chain.TI.getIndex(), in dump() 139 outs() << formatv("There are {0} orphaned hash adjusters\n", in dump() 142 outs() << formatv(" {0}\n", Adj); in dump() 146 outs() << formatv("{0}/{1} hash collisions", Count, DistinctHashValues); in dump()
|
D | FormatUtil.cpp | 56 return formatv("{0} \"{1}\"", Label, Name).str(); in truncateQuotedNameFront() 60 return formatv("{0} \"{1}\"", Label, TN).str(); in truncateQuotedNameFront() 67 return formatv("{0} \"{1}\"", Label, Name).str(); in truncateQuotedNameBack() 71 return formatv("{0} \"{1}\"", Label, TN).str(); in truncateQuotedNameBack() 86 Result += formatv("{0}", fmt_repeat(' ', IndentLevel)); in typesetItemList() 96 Result += formatv("\n{0}{1}", fmt_repeat(' ', IndentLevel), S); in typesetStringList() 173 return formatv("{0:4}:{1:4}", Segment, Offset); in formatSegmentOffset()
|
D | PrettyFunctionDumper.cpp | 123 << formatv("+{0,2}", Prologue); in start() 130 << formatv("-{0,2}", Epilogue); in start() 134 << formatv(" | sizeof={0,3}", Symbol.getLength()); in start()
|
D | InputFile.cpp | 249 return make_error<StringError>(formatv("File {0} not found", Path), in open() 255 formatv("Unable to identify file type for file {0}", Path), EC); in open() 280 formatv("File {0} is not a supported file type", Path), in open() 286 formatv("File {0} could not be opened", Path), Result.getError()); in open()
|
D | LinePrinter.h | 46 printLine(formatv(Fmt, std::forward<Ts>(Items)...)); in formatLine() 49 print(formatv(Fmt, std::forward<Ts>(Items)...)); in format()
|
D | PrettyTypeDumper.cpp | 94 errs() << formatv("Filtering and sorting {0} types", UnfilteredCount); in filterAndSortClassDefs() 102 errs() << formatv("Examined {0}/{1} items. {2} items discarded\n", in filterAndSortClassDefs()
|
D | StreamUtil.cpp | 27 return formatv("Named Stream \"{0}\"", Name).str(); in getLongName() 29 return formatv("Module \"{0}\"", Name).str(); in getLongName()
|
D | MinimalSymbolDumper.cpp | 300 return formatv("[{0},+{1})", in formatRange() 310 GapStrs.push_back(formatv("({0},{1})", G.GapStartOffset, G.Range).str()); in formatGaps() 343 return formatv("{0}", TI).str(); in typeOrIdIndex() 348 return formatv("{0} ({1}...)", TI, Name); in typeOrIdIndex() 350 return formatv("{0} ({1})", TI, Name); in typeOrIdIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | TwineTest.cpp | 35 EXPECT_EQ("hi", Twine(formatv("{0}", "hi")).str()); in TEST() 72 repr(Twine(formatv("howdy")).concat(Twine()))); in TEST() 74 repr(Twine().concat(Twine(formatv("howdy"))))); in TEST() 99 EXPECT_EQ(0, *Twine(formatv("{0}{1}", "how", "dy")) in TEST() 114 (void)Twine(formatv("{0}", Formatter)); in TEST() 116 (void)Twine(formatv("{0}", Formatter)).str(); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/ |
D | DWARFVerifier.cpp | 412 llvm::formatv("{0:x8}", *SectionOffset)); in verifyDebugInfoAttribute() 800 error() << formatv("Name Index @ {0:x} does not index any CU\n", in verifyDebugNamesCULists() 810 error() << formatv( in verifyDebugNamesCULists() 818 error() << formatv("Name Index @ {0:x} references a CU @ {1:x}, but " in verifyDebugNamesCULists() 829 warn() << formatv("CU @ {0:x} not covered by any Name Index\n", KV.first); in verifyDebugNamesCULists() 849 warn() << formatv("Name Index @ {0:x} does not contain a hash table.\n", in verifyNameIndexBuckets() 861 error() << formatv("Bucket {0} of Name Index @ {1:x} contains invalid " in verifyNameIndexBuckets() 896 error() << formatv("Name Index @ {0:x}: Name table entries [{1}, {2}] " in verifyNameIndexBuckets() 914 error() << formatv( in verifyNameIndexBuckets() 932 error() << formatv("Name Index @ {0:x}: String ({1}) at index {2} " in verifyNameIndexBuckets() [all …]
|
D | DWARFAbbreviationDeclaration.cpp | 131 OS << formatv("{0}", getTag()); in dump() 134 OS << formatv("\t{0}\t{1}", Spec.Attr, Spec.Form); in dump()
|
D | DWARFAcceleratorTable.cpp | 220 W.startLine() << "Form: " << formatv("{0}", Atom.second) << '\n'; in dump() 409 W.startLine() << formatv("Tag: {0}\n", Tag); in dump() 412 W.startLine() << formatv("{0}: {1}\n", Attr.Index, Attr.Form); in dump() 567 W.startLine() << formatv("Tag: {0}\n", Abbr->Tag); in dump() 570 W.startLine() << formatv("{0}: ", std::get<0>(Tuple).Index); in dump()
|
D | DWARFDie.cpp | 196 WithColor(OS, HighlightColor::Attribute) << formatv("{0}", Attr); in dumpAttribute() 199 OS << formatv(" [{0}]", Form); in dumpAttribute() 506 << formatv("{0}", getTag()); in dump()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-xray/ |
D | xray-graph-diff.cpp | 331 return formatv(R"({0:P})", RelDiff); in getLabel() 341 return formatv(R"({0})", truncateString(VertexId, TrunLen).str()); in getLabel() 344 return formatv(R"({0})", truncateString(VertexId, TrunLen).str()); in getLabel() 350 return formatv(R"({{{0}|{1:P}})", truncateString(VertexId, TrunLen).str(), in getLabel() 395 OS << formatv(R"(F{0} -> F{1} [tooltip="{2} -> {3}" label="{4}" )" in exportGraphAsDOT() 407 OS << formatv(R"(F{0} [label="F0"])" in exportGraphAsDOT() 412 OS << formatv(R"(F{0} [label="{1}" color="{2}"])" in exportGraphAsDOT()
|
D | xray-stacks.cpp | 121 Stream << formatv( in format() 456 OS << formatv("{0,-5} {1,-60} {2,+12} {3,+16}\n", "lvl", "function", in printStack() 463 OS << formatv("#{0,-4} {1,-60} {2,+12} {3,+16}\n", Level++, in printStack() 472 OS << formatv("#{0,-4} {1,-60} {2,+12} {3,+16}\n", Level++, in printStack() 680 return formatv("Found record {0} with no matching function entry\n", in CreateErrorMessage() 683 return formatv("Unknown error type for record {0}\n", in CreateErrorMessage()
|
D | xray-converter.cpp | 245 OS << llvm::formatv( in writeTraceViewerRecord() 253 OS << llvm::formatv( in writeTraceViewerRecord() 342 OS << llvm::formatv( in exportAsChromeTraceEventFormat() 347 OS << llvm::formatv(R"(, "parent": "{0}")", in exportAsChromeTraceEventFormat()
|
D | xray-account.cpp | 397 OS << llvm::formatv(StatsHeaderFormat, "funcid", "count", "min", "med", "90p", in exportStatsAsText() 399 << llvm::formatv(" {0,-12}\n", "function"); in exportStatsAsText() 401 OS << llvm::formatv(StatsFormat, FuncId, Count, Row.Min, Row.Median, in exportStatsAsText() 481 << llvm::formatv( in __anon9fd330660902()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | ProfileSummaryInfoTest.cpp | 92 formatv(ModuleString, formatv(SummaryString, ProfKind).str()).str(), in makeLLVMModule() 95 return parseAssemblyString(formatv(ModuleString, "").str(), Err, C); in makeLLVMModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | RecordName.cpp | 138 Name = formatv("{0} {1}", Ret, Params).sstr<256>(); in visitKnownRecord() 147 Name = formatv("{0} {1}::{2}", Ret, Class, Params).sstr<256>(); in visitKnownRecord() 168 Name = formatv("{0} {1}::*", Pointee, Class); in visitKnownRecord() 208 Name = formatv("<vftable {0} methods>", Shape.getEntryCount()); in visitKnownRecord()
|
/external/python/cpython2/Objects/ |
D | complexobject.c | 434 PyObject *formatv; in complex_print() local 437 formatv = complex_format(v, PyFloat_STR_PRECISION, 'g'); in complex_print() 439 formatv = complex_format(v, 0, 'r'); in complex_print() 440 if (formatv == NULL) in complex_print() 442 buf = PyString_AS_STRING(formatv); in complex_print() 446 Py_DECREF(formatv); in complex_print()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/ |
D | Formatters.h | 57 Stream << formatv("{0:X+4}", V.getIndex());
|