LLVM: lib/DebugInfo/CodeView/TypeIndex.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
10
13
14using namespace llvm;
16
17namespace {
18struct SimpleTypeEntry {
19 StringRef Name;
21};
22
23
24
25
26static const SimpleTypeEntry SimpleTypeNames[] = {
68};
69}
70
73
75 return "";
76
78 return "std::nullptr_t";
79
80
81 for (const auto &SimpleTypeName : SimpleTypeNames) {
84 return SimpleTypeName.Name.drop_back(1);
85
86
87 return SimpleTypeName.Name;
88 }
89 }
90 return "";
91}
92
99 else
100 TypeName = Types.getTypeName(TI);
101 }
102
103 if (!TypeName.empty())
105 else
107}
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
dxil pretty DXIL Metadata Pretty Printer
StringRef - Represent a constant reference to a string, i.e.
SimpleTypeKind getSimpleKind() const
SimpleTypeMode getSimpleMode() const
static LLVM_ABI StringRef simpleTypeName(TypeIndex TI)
Definition TypeIndex.cpp:71
uint32_t getIndex() const
static TypeIndex NullptrT()
@ Float32PartialPrecision
LLVM_ABI void printTypeIndex(ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeCollection &Types)
Definition TypeIndex.cpp:93
This is an optimization pass for GlobalISel generic memory operations.