LLVM  14.0.0git
NativeTypeEnum.h
Go to the documentation of this file.
1 //===- NativeTypeEnum.h - info about enum type ------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
11 
12 #include "llvm/ADT/Optional.h"
17 
18 namespace llvm {
19 namespace pdb {
20 
21 class NativeTypeBuiltin;
22 
24 public:
27 
30  codeview::ModifierRecord Modifier);
31  ~NativeTypeEnum() override;
32 
33  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
34  PdbSymbolIdField RecurseIdFields) const override;
35 
36  std::unique_ptr<IPDBEnumSymbols>
37  findChildren(PDB_SymType Type) const override;
38 
39  PDB_BuiltinType getBuiltinType() const override;
40  PDB_SymType getSymTag() const override;
41  SymIndexId getUnmodifiedTypeId() const override;
42  bool hasConstructor() const override;
43  bool hasAssignmentOperator() const override;
44  bool hasCastOperator() const override;
45  uint64_t getLength() const override;
46  std::string getName() const override;
47  bool isConstType() const override;
48  bool isVolatileType() const override;
49  bool isUnalignedType() const override;
50  bool isNested() const override;
51  bool hasOverloadedOperator() const override;
52  bool hasNestedTypes() const override;
53  bool isIntrinsic() const override;
54  bool isPacked() const override;
55  bool isScoped() const override;
56  SymIndexId getTypeId() const override;
57  bool isRefUdt() const override;
58  bool isValueUdt() const override;
59  bool isInterfaceUdt() const override;
60 
62  const codeview::EnumRecord &getEnumRecord() const { return *Record; }
63 
64 protected:
69 };
70 
71 } // namespace pdb
72 } // namespace llvm
73 
74 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
llvm::pdb::NativeTypeEnum::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeEnum.cpp:361
llvm::pdb::NativeTypeEnum::getSymTag
PDB_SymType getSymTag() const override
Definition: NativeTypeEnum.cpp:176
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
Optional.h
llvm::pdb::NativeTypeEnum::isPacked
bool isPacked() const override
Definition: NativeTypeEnum.cpp:326
llvm::pdb::NativeTypeEnum::isScoped
bool isScoped() const override
Definition: NativeTypeEnum.cpp:333
llvm::pdb::NativeTypeEnum::getLength
uint64_t getLength() const override
Definition: NativeTypeEnum.cpp:293
llvm::pdb::NativeTypeEnum::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeEnum.cpp:368
llvm::pdb::NativeTypeEnum::isValueUdt
bool isValueUdt() const override
Definition: NativeTypeEnum.cpp:350
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
TypeVisitorCallbacks.h
llvm::Optional
Definition: APInt.h:33
llvm::pdb::NativeTypeEnum::getEnumRecord
const codeview::EnumRecord & getEnumRecord() const
Definition: NativeTypeEnum.h:62
llvm::pdb::PDB_SymType
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
llvm::codeview::EnumRecord
Definition: TypeRecord.h:518
llvm::pdb::NativeTypeEnum::findChildren
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
Definition: NativeTypeEnum.cpp:164
llvm::pdb::NativeTypeEnum::~NativeTypeEnum
~NativeTypeEnum() override
Definition: NativeTypeEnum.cpp:126
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::codeview::ModifierRecord
Definition: TypeRecord.h:129
llvm::pdb::NativeTypeEnum::NativeTypeEnum
NativeTypeEnum(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::EnumRecord Record)
Definition: NativeTypeEnum.cpp:115
llvm::pdb::NativeTypeEnum::isRefUdt
bool isRefUdt() const override
Definition: NativeTypeEnum.cpp:348
CodeView.h
llvm::pdb::NativeTypeEnum::hasAssignmentOperator
bool hasAssignmentOperator() const override
Definition: NativeTypeEnum.cpp:262
llvm::pdb::NativeTypeEnum::UnmodifiedType
NativeTypeEnum * UnmodifiedType
Definition: NativeTypeEnum.h:67
llvm::pdb::NativeTypeEnum::isNested
bool isNested() const override
Definition: NativeTypeEnum.cpp:311
llvm::pdb::NativeTypeEnum
Definition: NativeTypeEnum.h:23
llvm::pdb::NativeTypeEnum::hasConstructor
bool hasConstructor() const override
Definition: NativeTypeEnum.cpp:254
uint64_t
llvm::pdb::NativeTypeEnum::getUnmodifiedTypeId
SymIndexId getUnmodifiedTypeId() const override
Definition: NativeTypeEnum.cpp:250
llvm::pdb::NativeTypeEnum::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeEnum.cpp:128
llvm::pdb::NativeTypeEnum::isConstType
bool isConstType() const override
Definition: NativeTypeEnum.cpp:354
llvm::pdb::NativeTypeEnum::hasCastOperator
bool hasCastOperator() const override
Definition: NativeTypeEnum.cpp:285
llvm::Record
Definition: Record.h:1472
llvm::pdb::NativeTypeEnum::isInterfaceUdt
bool isInterfaceUdt() const override
Definition: NativeTypeEnum.cpp:352
uint32_t
llvm::pdb::PDB_BuiltinType
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:335
llvm::pdb::NativeTypeEnum::hasOverloadedOperator
bool hasOverloadedOperator() const override
Definition: NativeTypeEnum.cpp:318
llvm::pdb::NativeTypeEnum::getBuiltinType
PDB_BuiltinType getBuiltinType() const override
Definition: NativeTypeEnum.cpp:178
llvm::pdb::NativeTypeEnum::Record
Optional< codeview::EnumRecord > Record
Definition: NativeTypeEnum.h:66
llvm::pdb::NativeTypeEnum::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypeEnum.cpp:340
llvm::pdb::NativeTypeBuiltin
Definition: NativeTypeBuiltin.h:21
llvm::pdb::NativeTypeEnum::Index
codeview::TypeIndex Index
Definition: NativeTypeEnum.h:65
llvm::pdb::NativeTypeEnum::getName
std::string getName() const override
Definition: NativeTypeEnum.cpp:304
NativeRawSymbol.h
llvm::pdb::NativeSession
Definition: NativeSession.h:28
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::pdb::NativeTypeEnum::Modifiers
Optional< codeview::ModifierRecord > Modifiers
Definition: NativeTypeEnum.h:68
llvm::pdb::NativeTypeEnum::hasNestedTypes
bool hasNestedTypes() const override
Definition: NativeTypeEnum.cpp:270
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::pdb::NativeTypeEnum::isIntrinsic
bool isIntrinsic() const override
Definition: NativeTypeEnum.cpp:278
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:231
llvm::pdb::NativeTypeEnum::getUnderlyingBuiltinType
const NativeTypeBuiltin & getUnderlyingBuiltinType() const
Definition: NativeTypeEnum.cpp:375
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21
NativeSession.h