Home
last modified time | relevance | path

Searched refs:format_hex (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/lib/
H A DGraphBuilder.cpp73 OS << " \"" << format_hex(From, 2) << ": "; in printPairToDOT()
75 OS << "\" -> \"" << format_hex(To, 2) << ": "; in printPairToDOT()
84 OS << "digraph graph_" << format_hex(BaseAddress, 2) << " {\n"; in printToDOT()
130 << format_hex(BranchNode.Address, 2) << ".\n"; in buildFlowsToUndefined()
144 << format_hex(BranchInstrMeta.VMAddress, 2) << ".\n"; in buildFlowsToUndefined()
152 << format_hex(Target, 2) << ".\n"; in buildFlowsToUndefined()
219 << format_hex(Address, 2) << ".\n"; in buildFlowGraphImpl()
261 << format_hex(ParentMeta.VMAddress, 2) << ".\n"; in buildFlowGraphImpl()
271 errs() << "Control flow to " << format_hex(Address, 2) in buildFlowGraphImpl()
273 << format_hex(ParentMeta.VMAddress, 2) in buildFlowGraphImpl()
[all …]
H A DFileAnalysis.cpp246 << format_hex(SourceInstrAddress, 2) in getDirectControlFlowXRefs()
248 << format_hex(InstrMeta.VMAddress, 2) << ".\n"; in getDirectControlFlowXRefs()
545 << format_hex(Instruction.VMAddress, 2) in addInstruction()
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DPrettyCompilandDumper.cpp101 << "[" << format_hex(AddrStart, 10) << " - " in start()
102 << format_hex(AddrEnd, 10) << "]"; in start()
107 << "[" << format_hex(AddrStart, 10) << "] "; in start()
139 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "]"; in dump()
180 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "] "; in dump()
196 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(VA, 10); in dump()
198 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Target, 10); in dump()
201 << "[" << format_hex(VA, 10) << " - " in dump()
202 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
H A DPrettyVariableDumper.cpp54 << format_hex(Var.getVirtualAddress(), 10); in start()
72 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
80 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
100 << "+" << format_hex(Offset, 4) << " [sizeof=" << Size << "] "; in startVbptr()
110 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
H A DPrettyExternalSymbolDumper.cpp39 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10); in dump()
H A DPrettyFunctionDumper.cpp124 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncStart, 10); in start()
131 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncEnd, 10); in start()
H A DPrettyClassLayoutGraphicalDumper.cpp126 << "+" << format_hex(CurrentAbsoluteOffset, 4) << " [sizeof=" << Size in dump()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/
H A DExtractRanges.h18 #define HEX8(v) llvm::format_hex(v, 4)
19 #define HEX16(v) llvm::format_hex(v, 6)
20 #define HEX32(v) llvm::format_hex(v, 10)
21 #define HEX64(v) llvm::format_hex(v, 18)
/llvm-project-15.0.7/llvm/unittests/Support/
H A Draw_ostream_test.cpp179 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 6), 6)); in TEST()
180 EXPECT_EQ("0x001234", printToString(format_hex(0x1234, 8), 8)); in TEST()
181 EXPECT_EQ("0x00001234", printToString(format_hex(0x1234, 10), 10)); in TEST()
182 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 4), 6)); in TEST()
183 EXPECT_EQ("0xff", printToString(format_hex(255, 4), 4)); in TEST()
184 EXPECT_EQ("0xFF", printToString(format_hex(255, 4, true), 4)); in TEST()
185 EXPECT_EQ("0x1", printToString(format_hex(1, 3), 3)); in TEST()
186 EXPECT_EQ("0x12", printToString(format_hex(0x12, 3), 4)); in TEST()
187 EXPECT_EQ("0x123", printToString(format_hex(0x123, 3), 5)); in TEST()
191 printToString(format_hex(UINT64_MAX, 18), 18)); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DHeader.cpp15 #define HEX8(v) llvm::format_hex(v, 4)
16 #define HEX16(v) llvm::format_hex(v, 6)
17 #define HEX32(v) llvm::format_hex(v, 10)
18 #define HEX64(v) llvm::format_hex(v, 18)
/llvm-project-15.0.7/llvm/lib/Object/
H A DFaultMapParser.cpp44 OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) in operator <<()
52 OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n"; in operator <<()
/llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/
H A Dllvm-cfi-verify.cpp95 outs() << "Instruction: " << format_hex(InstrMeta.VMAddress, 2) << " (" in printInstructionInformation()
162 errs() << "Failed to symbolise " << format_hex(Address.Address, 2) in printIndirectCFInstructions()
173 outs() << " " << format_hex(Address.Address, 2) << " = " in printIndirectCFInstructions()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLoc.cpp271 OS << '(' << format_hex(Value0, 2 + Data.getAddressSize() * 2) << ", " in dumpRawEntry()
272 << format_hex(Value1, 2 + Data.getAddressSize() * 2) << ')'; in dumpRawEntry()
369 OS << format_hex(Entry.Value0, FieldSize) << ", " in dumpRawEntry()
370 << format_hex(Entry.Value1, FieldSize); in dumpRawEntry()
374 OS << format_hex(Entry.Value0, FieldSize); in dumpRawEntry()
/llvm-project-15.0.7/llvm/lib/MCA/HardwareUnits/
H A DResourceManager.cpp95 dbgs() << "MASK=" << format_hex(ResourceMask, 16) in dump()
96 << ", SZMASK=" << format_hex(ResourceSizeMask, 16) in dump()
97 << ", RDYMASK=" << format_hex(ReadyMask, 16) in dump()
/llvm-project-15.0.7/llvm/lib/Support/
H A DSignals.cpp135 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
247 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/llvm-project-15.0.7/llvm/lib/MCA/
H A DInstrBuilder.cpp232 dbgs() << "\t\tResource Mask=" << format_hex(R.first, 16) << ", " in initializeUsedResources()
239 dbgs() << "\t\tBuffer Mask=" << format_hex(Current, 16) << '\n'; in initializeUsedResources()
242 dbgs() << "\t\t Used Units=" << format_hex(ID.UsedProcResUnits, 16) << '\n'; in initializeUsedResources()
244 << format_hex(ID.ImplicitlyUsedProcResUnits, 16) << '\n'; in initializeUsedResources()
245 dbgs() << "\t\tUsed Groups=" << format_hex(ID.UsedProcResGroups, 16) in initializeUsedResources()
H A DSupport.cpp76 << format_hex(Masks[I],16) << " - " in computeProcResourceMasks()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/
H A DProcessWindows.cpp318 << llvm::format_hex(access_violation_address, addr_min_width); in DumpAdditionalExceptionInformation()
345 << llvm::format_hex(page_load_error_address, addr_min_width) in DumpAdditionalExceptionInformation()
346 << " (status code " << llvm::format_hex(underlying_code, 8) << ")"; in DumpAdditionalExceptionInformation()
494 << llvm::format_hex(active_exception->GetExceptionCode(), 8) in RefreshStateAfterStop()
496 << llvm::format_hex(active_exception->GetExceptionAddress(), 8); in RefreshStateAfterStop()
/llvm-project-15.0.7/lldb/source/Expression/
H A DDWARFExpressionList.cpp165 os << llvm::format_hex(load_base, 2 + 2 * addr_size); in DumpLocations()
167 os << llvm::format_hex(load_end, 2 + 2 * addr_size); in DumpLocations()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.cpp461 << llvm::format_hex(sh.offset, 10) << " " in DumpSectionHeader()
462 << llvm::format_hex(sh.size, 10) << " " << llvm::format_hex(sh.id, 6) in DumpSectionHeader()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeAnalyzer.cpp491 << " Magic=" << format_hex(Magic, 10) in analyzeHeader()
492 << " Version=" << format_hex(Version, 10) in analyzeHeader()
493 << " Offset=" << format_hex(Offset, 10) in analyzeHeader()
494 << " Size=" << format_hex(Size, 10) in analyzeHeader()
495 << " CPUType=" << format_hex(CPUType, 10) << "/>\n"; in analyzeHeader()
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp409 << format_hex(TLSDir->StartAddressOfRawData, FormatWidth) in printTLSDirectoryT()
411 << format_hex(TLSDir->EndAddressOfRawData, FormatWidth) in printTLSDirectoryT()
413 << format_hex(TLSDir->AddressOfIndex, FormatWidth) in printTLSDirectoryT()
415 << format_hex(TLSDir->AddressOfCallBacks, FormatWidth) in printTLSDirectoryT()
/llvm-project-15.0.7/llvm/tools/sanstats/
H A Dsanstats.cpp96 llvm::outs() << format_hex(Addr - 1, 18) << ' ' << LineInfo->FileName in ReadModule()
/llvm-project-15.0.7/lldb/tools/lldb-vscode/
H A DJSONUtils.h462 int64_t varID, bool format_hex,
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFormat.h186 inline FormattedNumber format_hex(uint64_t N, unsigned Width,

12