Home
last modified time | relevance | path

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

123

/external/llvm/unittests/Support/
Draw_ostream_test.cpp156 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 6), 6)); in TEST()
157 EXPECT_EQ("0x001234", printToString(format_hex(0x1234, 8), 8)); in TEST()
158 EXPECT_EQ("0x00001234", printToString(format_hex(0x1234, 10), 10)); in TEST()
159 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 4), 6)); in TEST()
160 EXPECT_EQ("0xff", printToString(format_hex(255, 4), 4)); in TEST()
161 EXPECT_EQ("0xFF", printToString(format_hex(255, 4, true), 4)); in TEST()
162 EXPECT_EQ("0x1", printToString(format_hex(1, 3), 3)); in TEST()
163 EXPECT_EQ("0x12", printToString(format_hex(0x12, 3), 4)); in TEST()
164 EXPECT_EQ("0x123", printToString(format_hex(0x123, 3), 5)); in TEST()
168 printToString(format_hex(UINT64_MAX, 18), 18)); in TEST()
[all …]
/external/llvm/tools/llvm-pdbdump/
DCompilandDumper.cpp84 << "[" << format_hex(AddrStart, 10) << " - " in start()
85 << format_hex(AddrEnd, 10) << "]"; in start()
90 << "[" << format_hex(AddrStart, 10) << "] "; in start()
118 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "]"; in dump()
151 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "] "; in dump()
165 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(VA, 10); in dump()
167 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Target, 10); in dump()
170 << "[" << format_hex(VA, 10) << " - " in dump()
171 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
DVariableDumper.cpp48 << format_hex(Var.getVirtualAddress(), 10); in start()
67 << "+" << format_hex(Var.getOffset(), 4) << " "; in start()
74 << "+" << format_hex(Var.getOffset(), 4) << " "; in start()
DExternalSymbolDumper.cpp38 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10); in dump()
/external/llvm-project/llvm/tools/llvm-cfi-verify/lib/
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 …]
/external/llvm-project/llvm/tools/llvm-pdbutil/
DPrettyCompilandDumper.cpp102 << "[" << format_hex(AddrStart, 10) << " - " in start()
103 << format_hex(AddrEnd, 10) << "]"; in start()
108 << "[" << format_hex(AddrStart, 10) << "] "; in start()
140 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "]"; in dump()
181 << "[" << format_hex(Symbol.getVirtualAddress(), 10) << "] "; in dump()
197 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(VA, 10); in dump()
199 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Target, 10); in dump()
202 << "[" << format_hex(VA, 10) << " - " in dump()
203 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
DPrettyVariableDumper.cpp52 << format_hex(Var.getVirtualAddress(), 10); in start()
70 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
78 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
98 << "+" << format_hex(Offset, 4) << " [sizeof=" << Size << "] "; in startVbptr()
108 << "+" << format_hex(Offset + Var.getOffset(), 4) in start()
DPrettyExternalSymbolDumper.cpp38 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10); in dump()
/external/llvm-project/llvm/unittests/Support/
Draw_ostream_test.cpp175 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 6), 6)); in TEST()
176 EXPECT_EQ("0x001234", printToString(format_hex(0x1234, 8), 8)); in TEST()
177 EXPECT_EQ("0x00001234", printToString(format_hex(0x1234, 10), 10)); in TEST()
178 EXPECT_EQ("0x1234", printToString(format_hex(0x1234, 4), 6)); in TEST()
179 EXPECT_EQ("0xff", printToString(format_hex(255, 4), 4)); in TEST()
180 EXPECT_EQ("0xFF", printToString(format_hex(255, 4, true), 4)); in TEST()
181 EXPECT_EQ("0x1", printToString(format_hex(1, 3), 3)); in TEST()
182 EXPECT_EQ("0x12", printToString(format_hex(0x12, 3), 4)); in TEST()
183 EXPECT_EQ("0x123", printToString(format_hex(0x123, 3), 5)); in TEST()
187 printToString(format_hex(UINT64_MAX, 18), 18)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/GSYM/
DRange.h17 #define HEX8(v) llvm::format_hex(v, 4)
18 #define HEX16(v) llvm::format_hex(v, 6)
19 #define HEX32(v) llvm::format_hex(v, 10)
20 #define HEX64(v) llvm::format_hex(v, 18)
/external/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
DRange.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)
/external/llvm-project/llvm/lib/DebugInfo/GSYM/
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)
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/
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)
/external/llvm-project/llvm/tools/llvm-cfi-verify/
Dllvm-cfi-verify.cpp91 outs() << "Instruction: " << format_hex(InstrMeta.VMAddress, 2) << " (" in printInstructionInformation()
158 errs() << "Failed to symbolise " << format_hex(Address.Address, 2) in printIndirectCFInstructions()
169 outs() << " " << format_hex(Address.Address, 2) << " = " in printIndirectCFInstructions()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLoc.cpp272 OS << '(' << format_hex(Value0, 2 + Data.getAddressSize() * 2) << ", " in dumpRawEntry()
273 << format_hex(Value1, 2 + Data.getAddressSize() * 2) << ')'; in dumpRawEntry()
370 OS << format_hex(Entry.Value0, FieldSize) << ", " in dumpRawEntry()
371 << format_hex(Entry.Value1, FieldSize); in dumpRawEntry()
375 OS << format_hex(Entry.Value0, FieldSize); in dumpRawEntry()
/external/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLoc.cpp270 OS << '(' << format_hex(Value0, 2 + Data.getAddressSize() * 2) << ", " in dumpRawEntry()
271 << format_hex(Value1, 2 + Data.getAddressSize() * 2) << ')'; in dumpRawEntry()
368 OS << format_hex(Entry.Value0, FieldSize) << ", " in dumpRawEntry()
369 << format_hex(Entry.Value1, FieldSize); in dumpRawEntry()
373 OS << format_hex(Entry.Value0, FieldSize); in dumpRawEntry()
/external/llvm/lib/Support/
DSignals.cpp62 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
171 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DSignals.cpp62 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
171 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/external/llvm-project/llvm/lib/CodeGen/
DFaultMaps.cpp130 OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) in operator <<()
138 OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n"; in operator <<()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DFaultMaps.cpp130 OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) in operator <<()
138 OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n"; in operator <<()
/external/llvm/lib/CodeGen/
DFaultMaps.cpp128 OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8) in operator <<()
136 OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n"; in operator <<()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSignals.cpp101 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
211 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/external/llvm-project/llvm/lib/Support/
DSignals.cpp104 return format_hex((uint64_t)PC, PtrWidth); in format_ptr()
216 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")"; in printSymbolizedStackTrace()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/HardwareUnits/
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()
/external/llvm-project/llvm/lib/MCA/HardwareUnits/
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()

123