LLVM  15.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"
18 
19 namespace llvm {
20 class raw_ostream;
21 namespace pdb {
22 
23 class NativeTypeBuiltin;
24 
26 public:
29 
32  codeview::ModifierRecord Modifier);
33  ~NativeTypeEnum() override;
34 
35  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
36  PdbSymbolIdField RecurseIdFields) const override;
37 
38  std::unique_ptr<IPDBEnumSymbols>
39  findChildren(PDB_SymType Type) const override;
40 
41  PDB_BuiltinType getBuiltinType() const override;
42  PDB_SymType getSymTag() const override;
43  SymIndexId getUnmodifiedTypeId() const override;
44  bool hasConstructor() const override;
45  bool hasAssignmentOperator() const override;
46  bool hasCastOperator() const override;
47  uint64_t getLength() const override;
48  std::string getName() const override;
49  bool isConstType() const override;
50  bool isVolatileType() const override;
51  bool isUnalignedType() const override;
52  bool isNested() const override;
53  bool hasOverloadedOperator() const override;
54  bool hasNestedTypes() const override;
55  bool isIntrinsic() const override;
56  bool isPacked() const override;
57  bool isScoped() const override;
58  SymIndexId getTypeId() const override;
59  bool isRefUdt() const override;
60  bool isValueUdt() const override;
61  bool isInterfaceUdt() const override;
62 
64  const codeview::EnumRecord &getEnumRecord() const { return *Record; }
65 
66 protected:
71 };
72 
73 } // namespace pdb
74 } // namespace llvm
75 
76 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEENUM_H
llvm::pdb::NativeTypeEnum::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeEnum.cpp:362
llvm::pdb::NativeTypeEnum::getSymTag
PDB_SymType getSymTag() const override
Definition: NativeTypeEnum.cpp:175
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
Optional.h
llvm::pdb::NativeTypeEnum::isPacked
bool isPacked() const override
Definition: NativeTypeEnum.cpp:327
llvm::pdb::NativeTypeEnum::isScoped
bool isScoped() const override
Definition: NativeTypeEnum.cpp:334
IPDBRawSymbol.h
llvm::pdb::NativeTypeEnum::getLength
uint64_t getLength() const override
Definition: NativeTypeEnum.cpp:294
llvm::pdb::NativeTypeEnum::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeEnum.cpp:369
llvm::pdb::NativeTypeEnum::isValueUdt
bool isValueUdt() const override
Definition: NativeTypeEnum.cpp:351
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
llvm::Optional
Definition: APInt.h:33
llvm::pdb::NativeTypeEnum::getEnumRecord
const codeview::EnumRecord & getEnumRecord() const
Definition: NativeTypeEnum.h:64
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:519
llvm::pdb::NativeTypeEnum::findChildren
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
Definition: NativeTypeEnum.cpp:163
llvm::pdb::NativeTypeEnum::~NativeTypeEnum
~NativeTypeEnum() override
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:54
llvm::codeview::ModifierRecord
Definition: TypeRecord.h:130
llvm::pdb::NativeTypeEnum::NativeTypeEnum
NativeTypeEnum(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::EnumRecord Record)
Definition: NativeTypeEnum.cpp:114
llvm::pdb::NativeTypeEnum::isRefUdt
bool isRefUdt() const override
Definition: NativeTypeEnum.cpp:349
PDBTypes.h
llvm::pdb::NativeTypeEnum::hasAssignmentOperator
bool hasAssignmentOperator() const override
Definition: NativeTypeEnum.cpp:263
llvm::pdb::NativeTypeEnum::UnmodifiedType
NativeTypeEnum * UnmodifiedType
Definition: NativeTypeEnum.h:69
llvm::pdb::NativeTypeEnum::isNested
bool isNested() const override
Definition: NativeTypeEnum.cpp:312
llvm::pdb::NativeTypeEnum
Definition: NativeTypeEnum.h:25
llvm::pdb::NativeTypeEnum::hasConstructor
bool hasConstructor() const override
Definition: NativeTypeEnum.cpp:255
uint64_t
TypeRecord.h
llvm::pdb::NativeTypeEnum::getUnmodifiedTypeId
SymIndexId getUnmodifiedTypeId() const override
Definition: NativeTypeEnum.cpp:251
llvm::pdb::NativeTypeEnum::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeEnum.cpp:127
llvm::pdb::NativeTypeEnum::isConstType
bool isConstType() const override
Definition: NativeTypeEnum.cpp:355
llvm::pdb::NativeTypeEnum::hasCastOperator
bool hasCastOperator() const override
Definition: NativeTypeEnum.cpp:286
llvm::Record
Definition: Record.h:1543
llvm::pdb::NativeTypeEnum::isInterfaceUdt
bool isInterfaceUdt() const override
Definition: NativeTypeEnum.cpp:353
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:319
llvm::pdb::NativeTypeEnum::getBuiltinType
PDB_BuiltinType getBuiltinType() const override
Definition: NativeTypeEnum.cpp:177
llvm::pdb::NativeTypeEnum::Record
Optional< codeview::EnumRecord > Record
Definition: NativeTypeEnum.h:68
llvm::pdb::NativeTypeEnum::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypeEnum.cpp:341
llvm::pdb::NativeTypeBuiltin
Definition: NativeTypeBuiltin.h:21
llvm::pdb::NativeTypeEnum::Index
codeview::TypeIndex Index
Definition: NativeTypeEnum.h:67
llvm::pdb::NativeTypeEnum::getName
std::string getName() const override
Definition: NativeTypeEnum.cpp:305
NativeRawSymbol.h
TypeIndex.h
llvm::pdb::NativeSession
Definition: NativeSession.h:32
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::pdb::NativeTypeEnum::Modifiers
Optional< codeview::ModifierRecord > Modifiers
Definition: NativeTypeEnum.h:70
llvm::pdb::NativeTypeEnum::hasNestedTypes
bool hasNestedTypes() const override
Definition: NativeTypeEnum.cpp:271
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:279
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:238
llvm::pdb::NativeTypeEnum::getUnderlyingBuiltinType
const NativeTypeBuiltin & getUnderlyingBuiltinType() const
Definition: NativeTypeEnum.cpp:376
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21