|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h 84 Result.first->getSecond() = TypeIndex(SimpleTypeKind::NotTranslated);
85 return TypeIndex(SimpleTypeKind::NotTranslated);
include/llvm/DebugInfo/CodeView/TypeIndex.h 103 TypeIndex() : Index(static_cast<uint32_t>(SimpleTypeKind::None)) {}
105 explicit TypeIndex(SimpleTypeKind Kind)
107 TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode)
126 SimpleTypeKind getSimpleKind() const {
138 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); }
139 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); }
141 return TypeIndex(SimpleTypeKind::Void, SimpleTypeMode::NearPointer32);
144 return TypeIndex(SimpleTypeKind::Void, SimpleTypeMode::NearPointer64);
151 return TypeIndex(SimpleTypeKind::Void, SimpleTypeMode::NearPointer);
155 return TypeIndex(SimpleTypeKind::SignedCharacter);
158 return TypeIndex(SimpleTypeKind::UnsignedCharacter);
161 return TypeIndex(SimpleTypeKind::NarrowCharacter);
164 return TypeIndex(SimpleTypeKind::WideCharacter);
167 return TypeIndex(SimpleTypeKind::Int16Short);
170 return TypeIndex(SimpleTypeKind::UInt16Short);
172 static TypeIndex Int32() { return TypeIndex(SimpleTypeKind::Int32); }
173 static TypeIndex UInt32() { return TypeIndex(SimpleTypeKind::UInt32); }
174 static TypeIndex Int32Long() { return TypeIndex(SimpleTypeKind::Int32Long); }
176 return TypeIndex(SimpleTypeKind::UInt32Long);
178 static TypeIndex Int64() { return TypeIndex(SimpleTypeKind::Int64); }
179 static TypeIndex UInt64() { return TypeIndex(SimpleTypeKind::UInt64); }
180 static TypeIndex Int64Quad() { return TypeIndex(SimpleTypeKind::Int64Quad); }
182 return TypeIndex(SimpleTypeKind::UInt64Quad);
185 static TypeIndex Float32() { return TypeIndex(SimpleTypeKind::Float32); }
186 static TypeIndex Float64() { return TypeIndex(SimpleTypeKind::Float64); }
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 1547 if (UnderlyingTypeIndex == TypeIndex(SimpleTypeKind::Int32Long) &&
1549 return TypeIndex(SimpleTypeKind::HResult);
1550 if (UnderlyingTypeIndex == TypeIndex(SimpleTypeKind::UInt16Short) &&
1552 return TypeIndex(SimpleTypeKind::WideCharacter);
1562 ? TypeIndex(SimpleTypeKind::UInt64Quad)
1563 : TypeIndex(SimpleTypeKind::UInt32Long);
1611 SimpleTypeKind STK = SimpleTypeKind::None;
1611 SimpleTypeKind STK = SimpleTypeKind::None;
1618 case 1: STK = SimpleTypeKind::Boolean8; break;
1619 case 2: STK = SimpleTypeKind::Boolean16; break;
1620 case 4: STK = SimpleTypeKind::Boolean32; break;
1621 case 8: STK = SimpleTypeKind::Boolean64; break;
1622 case 16: STK = SimpleTypeKind::Boolean128; break;
1627 case 2: STK = SimpleTypeKind::Complex16; break;
1628 case 4: STK = SimpleTypeKind::Complex32; break;
1629 case 8: STK = SimpleTypeKind::Complex64; break;
1630 case 10: STK = SimpleTypeKind::Complex80; break;
1631 case 16: STK = SimpleTypeKind::Complex128; break;
1636 case 2: STK = SimpleTypeKind::Float16; break;
1637 case 4: STK = SimpleTypeKind::Float32; break;
1638 case 6: STK = SimpleTypeKind::Float48; break;
1639 case 8: STK = SimpleTypeKind::Float64; break;
1640 case 10: STK = SimpleTypeKind::Float80; break;
1641 case 16: STK = SimpleTypeKind::Float128; break;
1646 case 1: STK = SimpleTypeKind::SignedCharacter; break;
1647 case 2: STK = SimpleTypeKind::Int16Short; break;
1648 case 4: STK = SimpleTypeKind::Int32; break;
1649 case 8: STK = SimpleTypeKind::Int64Quad; break;
1650 case 16: STK = SimpleTypeKind::Int128Oct; break;
1655 case 1: STK = SimpleTypeKind::UnsignedCharacter; break;
1656 case 2: STK = SimpleTypeKind::UInt16Short; break;
1657 case 4: STK = SimpleTypeKind::UInt32; break;
1658 case 8: STK = SimpleTypeKind::UInt64Quad; break;
1659 case 16: STK = SimpleTypeKind::UInt128Oct; break;
1664 case 2: STK = SimpleTypeKind::Character16; break;
1665 case 4: STK = SimpleTypeKind::Character32; break;
1670 STK = SimpleTypeKind::SignedCharacter;
1674 STK = SimpleTypeKind::UnsignedCharacter;
1681 if (STK == SimpleTypeKind::Int32 && Ty->getName() == "long int")
1682 STK = SimpleTypeKind::Int32Long;
1683 if (STK == SimpleTypeKind::UInt32 && Ty->getName() == "long unsigned int")
1684 STK = SimpleTypeKind::UInt32Long;
1685 if (STK == SimpleTypeKind::UInt16Short &&
1687 STK = SimpleTypeKind::WideCharacter;
1688 if ((STK == SimpleTypeKind::SignedCharacter ||
1689 STK == SimpleTypeKind::UnsignedCharacter) &&
1691 STK = SimpleTypeKind::NarrowCharacter;
lib/DebugInfo/CodeView/TypeIndex.cpp 20 SimpleTypeKind Kind;
27 {"void*", SimpleTypeKind::Void},
28 {"<not translated>*", SimpleTypeKind::NotTranslated},
29 {"HRESULT*", SimpleTypeKind::HResult},
30 {"signed char*", SimpleTypeKind::SignedCharacter},
31 {"unsigned char*", SimpleTypeKind::UnsignedCharacter},
32 {"char*", SimpleTypeKind::NarrowCharacter},
33 {"wchar_t*", SimpleTypeKind::WideCharacter},
34 {"char16_t*", SimpleTypeKind::Character16},
35 {"char32_t*", SimpleTypeKind::Character32},
36 {"__int8*", SimpleTypeKind::SByte},
37 {"unsigned __int8*", SimpleTypeKind::Byte},
38 {"short*", SimpleTypeKind::Int16Short},
39 {"unsigned short*", SimpleTypeKind::UInt16Short},
40 {"__int16*", SimpleTypeKind::Int16},
41 {"unsigned __int16*", SimpleTypeKind::UInt16},
42 {"long*", SimpleTypeKind::Int32Long},
43 {"unsigned long*", SimpleTypeKind::UInt32Long},
44 {"int*", SimpleTypeKind::Int32},
45 {"unsigned*", SimpleTypeKind::UInt32},
46 {"__int64*", SimpleTypeKind::Int64Quad},
47 {"unsigned __int64*", SimpleTypeKind::UInt64Quad},
48 {"__int64*", SimpleTypeKind::Int64},
49 {"unsigned __int64*", SimpleTypeKind::UInt64},
50 {"__int128*", SimpleTypeKind::Int128},
51 {"unsigned __int128*", SimpleTypeKind::UInt128},
52 {"__half*", SimpleTypeKind::Float16},
53 {"float*", SimpleTypeKind::Float32},
54 {"float*", SimpleTypeKind::Float32PartialPrecision},
55 {"__float48*", SimpleTypeKind::Float48},
56 {"double*", SimpleTypeKind::Float64},
57 {"long double*", SimpleTypeKind::Float80},
58 {"__float128*", SimpleTypeKind::Float128},
59 {"_Complex float*", SimpleTypeKind::Complex32},
60 {"_Complex double*", SimpleTypeKind::Complex64},
61 {"_Complex long double*", SimpleTypeKind::Complex80},
62 {"_Complex __float128*", SimpleTypeKind::Complex128},
63 {"bool*", SimpleTypeKind::Boolean8},
64 {"__bool16*", SimpleTypeKind::Boolean16},
65 {"__bool32*", SimpleTypeKind::Boolean32},
66 {"__bool64*", SimpleTypeKind::Boolean64},
lib/DebugInfo/CodeView/TypeStreamMerger.cpp 203 const TypeIndex TypeStreamMerger::Untranslated(SimpleTypeKind::NotTranslated);
lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp 193 case SimpleTypeKind::Boolean128:
194 case SimpleTypeKind::Boolean64:
195 case SimpleTypeKind::Boolean32:
196 case SimpleTypeKind::Boolean16:
197 case SimpleTypeKind::Boolean8:
199 case SimpleTypeKind::NarrowCharacter:
200 case SimpleTypeKind::UnsignedCharacter:
201 case SimpleTypeKind::SignedCharacter:
203 case SimpleTypeKind::WideCharacter:
205 case SimpleTypeKind::Character16:
207 case SimpleTypeKind::Character32:
209 case SimpleTypeKind::Int128:
210 case SimpleTypeKind::Int128Oct:
211 case SimpleTypeKind::Int16:
212 case SimpleTypeKind::Int16Short:
213 case SimpleTypeKind::Int32:
214 case SimpleTypeKind::Int32Long:
215 case SimpleTypeKind::Int64:
216 case SimpleTypeKind::Int64Quad:
218 case SimpleTypeKind::UInt128:
219 case SimpleTypeKind::UInt128Oct:
220 case SimpleTypeKind::UInt16:
221 case SimpleTypeKind::UInt16Short:
222 case SimpleTypeKind::UInt32:
223 case SimpleTypeKind::UInt32Long:
224 case SimpleTypeKind::UInt64:
225 case SimpleTypeKind::UInt64Quad:
227 case SimpleTypeKind::HResult:
229 case SimpleTypeKind::Complex16:
230 case SimpleTypeKind::Complex32:
231 case SimpleTypeKind::Complex32PartialPrecision:
232 case SimpleTypeKind::Complex64:
233 case SimpleTypeKind::Complex80:
234 case SimpleTypeKind::Complex128:
236 case SimpleTypeKind::Float16:
237 case SimpleTypeKind::Float32:
238 case SimpleTypeKind::Float32PartialPrecision:
239 case SimpleTypeKind::Float48:
240 case SimpleTypeKind::Float64:
241 case SimpleTypeKind::Float80:
242 case SimpleTypeKind::Float128:
lib/DebugInfo/PDB/Native/SymbolCache.cpp 35 codeview::SimpleTypeKind Kind;
39 {codeview::SimpleTypeKind::None, PDB_BuiltinType::None, 0},
40 {codeview::SimpleTypeKind::Void, PDB_BuiltinType::Void, 0},
41 {codeview::SimpleTypeKind::HResult, PDB_BuiltinType::HResult, 4},
42 {codeview::SimpleTypeKind::Int16Short, PDB_BuiltinType::Int, 2},
43 {codeview::SimpleTypeKind::UInt16Short, PDB_BuiltinType::UInt, 2},
44 {codeview::SimpleTypeKind::Int32, PDB_BuiltinType::Int, 4},
45 {codeview::SimpleTypeKind::UInt32, PDB_BuiltinType::UInt, 4},
46 {codeview::SimpleTypeKind::Int32Long, PDB_BuiltinType::Int, 4},
47 {codeview::SimpleTypeKind::UInt32Long, PDB_BuiltinType::UInt, 4},
48 {codeview::SimpleTypeKind::Int64Quad, PDB_BuiltinType::Int, 8},
49 {codeview::SimpleTypeKind::UInt64Quad, PDB_BuiltinType::UInt, 8},
50 {codeview::SimpleTypeKind::NarrowCharacter, PDB_BuiltinType::Char, 1},
51 {codeview::SimpleTypeKind::WideCharacter, PDB_BuiltinType::WCharT, 2},
52 {codeview::SimpleTypeKind::Character16, PDB_BuiltinType::Char16, 2},
53 {codeview::SimpleTypeKind::Character32, PDB_BuiltinType::Char32, 4},
54 {codeview::SimpleTypeKind::SignedCharacter, PDB_BuiltinType::Char, 1},
55 {codeview::SimpleTypeKind::UnsignedCharacter, PDB_BuiltinType::UInt, 1},
56 {codeview::SimpleTypeKind::Float32, PDB_BuiltinType::Float, 4},
57 {codeview::SimpleTypeKind::Float64, PDB_BuiltinType::Float, 8},
58 {codeview::SimpleTypeKind::Float80, PDB_BuiltinType::Float, 10},
59 {codeview::SimpleTypeKind::Boolean8, PDB_BuiltinType::Bool, 1},
101 const auto Kind = Index.getSimpleKind();
tools/lld/COFF/PDB.cpp 607 ti = TypeIndex(SimpleTypeKind::NotTranslated);
tools/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp 53 static bool IsSimpleTypeSignedInteger(SimpleTypeKind kind) {
55 case SimpleTypeKind::Int128:
56 case SimpleTypeKind::Int64:
57 case SimpleTypeKind::Int64Quad:
58 case SimpleTypeKind::Int32:
59 case SimpleTypeKind::Int32Long:
60 case SimpleTypeKind::Int16:
61 case SimpleTypeKind::Int16Short:
62 case SimpleTypeKind::Float128:
63 case SimpleTypeKind::Float80:
64 case SimpleTypeKind::Float64:
65 case SimpleTypeKind::Float32:
66 case SimpleTypeKind::Float16:
67 case SimpleTypeKind::NarrowCharacter:
68 case SimpleTypeKind::SignedCharacter:
69 case SimpleTypeKind::SByte:
79 SimpleTypeKind stk = ti.getSimpleKind();
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp 706 if (ti.getSimpleKind() == SimpleTypeKind::NotTranslated)
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp 687 lldb_private::npdb::GetCompilerTypeForSimpleKind(SimpleTypeKind kind) {
689 case SimpleTypeKind::Boolean128:
690 case SimpleTypeKind::Boolean16:
691 case SimpleTypeKind::Boolean32:
692 case SimpleTypeKind::Boolean64:
693 case SimpleTypeKind::Boolean8:
695 case SimpleTypeKind::Byte:
696 case SimpleTypeKind::UnsignedCharacter:
698 case SimpleTypeKind::NarrowCharacter:
700 case SimpleTypeKind::SignedCharacter:
701 case SimpleTypeKind::SByte:
703 case SimpleTypeKind::Character16:
705 case SimpleTypeKind::Character32:
707 case SimpleTypeKind::Complex80:
709 case SimpleTypeKind::Complex64:
711 case SimpleTypeKind::Complex32:
713 case SimpleTypeKind::Float128:
714 case SimpleTypeKind::Float80:
716 case SimpleTypeKind::Float64:
718 case SimpleTypeKind::Float32:
720 case SimpleTypeKind::Float16:
722 case SimpleTypeKind::Int128:
724 case SimpleTypeKind::Int64:
725 case SimpleTypeKind::Int64Quad:
727 case SimpleTypeKind::Int32:
729 case SimpleTypeKind::Int16:
730 case SimpleTypeKind::Int16Short:
732 case SimpleTypeKind::UInt128:
734 case SimpleTypeKind::UInt64:
735 case SimpleTypeKind::UInt64Quad:
737 case SimpleTypeKind::HResult:
738 case SimpleTypeKind::UInt32:
740 case SimpleTypeKind::UInt16:
741 case SimpleTypeKind::UInt16Short:
743 case SimpleTypeKind::Int32Long:
745 case SimpleTypeKind::UInt32Long:
747 case SimpleTypeKind::Void:
749 case SimpleTypeKind::WideCharacter:
756 size_t lldb_private::npdb::GetTypeSizeForSimpleKind(SimpleTypeKind kind) {
758 case SimpleTypeKind::Boolean128:
759 case SimpleTypeKind::Int128:
760 case SimpleTypeKind::UInt128:
761 case SimpleTypeKind::Float128:
763 case SimpleTypeKind::Complex80:
764 case SimpleTypeKind::Float80:
766 case SimpleTypeKind::Boolean64:
767 case SimpleTypeKind::Complex64:
768 case SimpleTypeKind::UInt64:
769 case SimpleTypeKind::UInt64Quad:
770 case SimpleTypeKind::Float64:
771 case SimpleTypeKind::Int64:
772 case SimpleTypeKind::Int64Quad:
774 case SimpleTypeKind::Boolean32:
775 case SimpleTypeKind::Character32:
776 case SimpleTypeKind::Complex32:
777 case SimpleTypeKind::Float32:
778 case SimpleTypeKind::Int32:
779 case SimpleTypeKind::Int32Long:
780 case SimpleTypeKind::UInt32Long:
781 case SimpleTypeKind::HResult:
782 case SimpleTypeKind::UInt32:
784 case SimpleTypeKind::Boolean16:
785 case SimpleTypeKind::Character16:
786 case SimpleTypeKind::Float16:
787 case SimpleTypeKind::Int16:
788 case SimpleTypeKind::Int16Short:
789 case SimpleTypeKind::UInt16:
790 case SimpleTypeKind::UInt16Short:
791 case SimpleTypeKind::WideCharacter:
793 case SimpleTypeKind::Boolean8:
794 case SimpleTypeKind::Byte:
795 case SimpleTypeKind::UnsignedCharacter:
796 case SimpleTypeKind::NarrowCharacter:
797 case SimpleTypeKind::SignedCharacter:
798 case SimpleTypeKind::SByte:
800 case SimpleTypeKind::Void:
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.h 147 size_t GetTypeSizeForSimpleKind(llvm::codeview::SimpleTypeKind kind);
149 GetCompilerTypeForSimpleKind(llvm::codeview::SimpleTypeKind kind);
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp 170 static llvm::StringRef GetSimpleTypeName(SimpleTypeKind kind) {
172 case SimpleTypeKind::Boolean128:
173 case SimpleTypeKind::Boolean16:
174 case SimpleTypeKind::Boolean32:
175 case SimpleTypeKind::Boolean64:
176 case SimpleTypeKind::Boolean8:
178 case SimpleTypeKind::Byte:
179 case SimpleTypeKind::UnsignedCharacter:
181 case SimpleTypeKind::NarrowCharacter:
183 case SimpleTypeKind::SignedCharacter:
184 case SimpleTypeKind::SByte:
186 case SimpleTypeKind::Character16:
188 case SimpleTypeKind::Character32:
190 case SimpleTypeKind::Complex80:
191 case SimpleTypeKind::Complex64:
192 case SimpleTypeKind::Complex32:
194 case SimpleTypeKind::Float128:
195 case SimpleTypeKind::Float80:
197 case SimpleTypeKind::Float64:
199 case SimpleTypeKind::Float32:
201 case SimpleTypeKind::Float16:
203 case SimpleTypeKind::Int128:
205 case SimpleTypeKind::Int64:
206 case SimpleTypeKind::Int64Quad:
208 case SimpleTypeKind::Int32:
210 case SimpleTypeKind::Int16:
212 case SimpleTypeKind::UInt128:
214 case SimpleTypeKind::UInt64:
215 case SimpleTypeKind::UInt64Quad:
217 case SimpleTypeKind::HResult:
219 case SimpleTypeKind::UInt32:
221 case SimpleTypeKind::UInt16:
222 case SimpleTypeKind::UInt16Short:
224 case SimpleTypeKind::Int32Long:
226 case SimpleTypeKind::UInt32Long:
228 case SimpleTypeKind::Void:
230 case SimpleTypeKind::WideCharacter:
517 if (ti.getSimpleKind() == SimpleTypeKind::NotTranslated)
unittests/DebugInfo/CodeView/TypeHashingTest.cpp 64 TypeIndex CharStar(SimpleTypeKind::SignedCharacter,
71 TypeIndex CharP(SimpleTypeKind::SignedCharacter, SimpleTypeMode::NearPointer);
72 TypeIndex IntP(SimpleTypeKind::Int32, SimpleTypeMode::NearPointer);
73 TypeIndex DoubleP(SimpleTypeKind::Float64, SimpleTypeMode::NearPointer);