10 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPEINDEX_H 11 #define LLVM_DEBUGINFO_CODEVIEW_TYPEINDEX_H 98 static const uint32_t FirstNonSimpleIndex = 0x1000;
99 static const uint32_t SimpleKindMask = 0x000000ff;
101 static const uint32_t DecoratedItemIdMask = 0x80000000;
120 return getIndex() - FirstNonSimpleIndex;
124 return TypeIndex(Index + FirstNonSimpleIndex);
TypeIndex & operator-=(unsigned N)
static TypeIndex UInt64Quad()
static TypeIndex UInt64()
TypeIndex makeDirect() const
friend bool operator!=(const TypeIndex &A, const TypeIndex &B)
friend bool operator>=(const TypeIndex &A, const TypeIndex &B)
This class represents lattice values for constants.
static TypeIndex Float32()
SimpleTypeKind getSimpleKind() const
support::ulittle32_t Offset
static TypeIndex UInt32()
TypeIndex(SimpleTypeKind Kind)
print alias Alias Set Printer
static codeview::TypeIndex getTombstoneKey()
SimpleTypeMode getSimpleMode() const
TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode)
static TypeIndex Int16Short()
void setIndex(uint32_t I)
TypeIndex & operator+=(unsigned N)
static TypeIndex UInt16Short()
static bool isSimple(Instruction *I)
friend bool operator==(const TypeIndex &A, const TypeIndex &B)
uint32_t toArrayIndex() const
static TypeIndex NarrowCharacter()
static TypeIndex fromArrayIndex(uint32_t Index)
bool isDecoratedItemId() const
static TypeIndex VoidPointer64()
void printTypeIndex(ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeCollection &Types)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
TypeIndex(uint32_t Index)
static TypeIndex Int64Quad()
static bool isEqual(const codeview::TypeIndex &LHS, const codeview::TypeIndex &RHS)
static unsigned getHashValue(const codeview::TypeIndex &TI)
friend TypeIndex operator-(const TypeIndex &A, uint32_t N)
friend uint32_t operator-(const TypeIndex &A, const TypeIndex &B)
static TypeIndex UInt32Long()
static TypeIndex Float64()
uint32_t getIndex() const
TypeIndex operator--(int)
static TypeIndex WideCharacter()
static TypeIndex Int32Long()
friend bool operator>(const TypeIndex &A, const TypeIndex &B)
friend bool operator<(const TypeIndex &A, const TypeIndex &B)
static TypeIndex UnsignedCharacter()
friend TypeIndex operator+(const TypeIndex &A, uint32_t N)
static TypeIndex VoidPointer32()
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
friend bool operator<=(const TypeIndex &A, const TypeIndex &B)
StringRef - Represent a constant reference to a string, i.e.
static codeview::TypeIndex getEmptyKey()
static TypeIndex NullptrT()
static TypeIndex SignedCharacter()
TypeIndex operator++(int)