LLVM  14.0.0git
NativeTypeUDT.h
Go to the documentation of this file.
1 //===- NativeTypeUDT.h - info about class/struct 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_NATIVETYPEUDT_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEUDT_H
11 
12 #include "llvm/ADT/Optional.h"
17 
18 namespace llvm {
19 namespace pdb {
20 
22 public:
25 
28 
31  codeview::ModifierRecord Modifier);
32 
33  ~NativeTypeUDT() override;
34 
35  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
36  PdbSymbolIdField RecurseIdFields) const override;
37 
38  std::string getName() const override;
39  SymIndexId getLexicalParentId() const override;
40  SymIndexId getUnmodifiedTypeId() const override;
41  SymIndexId getVirtualTableShapeId() const override;
42  uint64_t getLength() const override;
43  PDB_UdtType getUdtKind() const override;
44  bool hasConstructor() const override;
45  bool isConstType() const override;
46  bool hasAssignmentOperator() const override;
47  bool hasCastOperator() const override;
48  bool hasNestedTypes() const override;
49  bool hasOverloadedOperator() const override;
50  bool isInterfaceUdt() const override;
51  bool isIntrinsic() const override;
52  bool isNested() const override;
53  bool isPacked() const override;
54  bool isRefUdt() const override;
55  bool isScoped() const override;
56  bool isValueUdt() const override;
57  bool isUnalignedType() const override;
58  bool isVolatileType() const override;
59 
60 protected:
62 
68 };
69 
70 } // namespace pdb
71 } // namespace llvm
72 
73 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEUDT_H
llvm::pdb::NativeTypeUDT::isRefUdt
bool isRefUdt() const override
Definition: NativeTypeUDT.cpp:197
llvm::codeview::TagRecord
Definition: TypeRecord.h:415
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::NativeTypeUDT::isPacked
bool isPacked() const override
Definition: NativeTypeUDT.cpp:190
Optional.h
llvm::pdb::NativeTypeUDT::hasOverloadedOperator
bool hasOverloadedOperator() const override
Definition: NativeTypeUDT.cpp:166
llvm::pdb::NativeTypeUDT
Definition: NativeTypeUDT.h:21
llvm::pdb::NativeTypeUDT::isConstType
bool isConstType() const override
Definition: NativeTypeUDT.cpp:135
llvm::pdb::NativeTypeUDT::isNested
bool isNested() const override
Definition: NativeTypeUDT.cpp:183
llvm::pdb::PDB_UdtType
PDB_UdtType
These values correspond to the UdtKind enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:310
llvm::pdb::NativeTypeUDT::Modifiers
Optional< codeview::ModifierRecord > Modifiers
Definition: NativeTypeUDT.h:67
llvm::pdb::NativeTypeUDT::getName
std::string getName() const override
Definition: NativeTypeUDT.cpp:73
llvm::Optional
Definition: APInt.h:33
llvm::pdb::NativeTypeUDT::isInterfaceUdt
bool isInterfaceUdt() const override
Definition: NativeTypeUDT.cpp:174
llvm::pdb::NativeTypeUDT::getUnmodifiedTypeId
SymIndexId getUnmodifiedTypeId() const override
Definition: NativeTypeUDT.cpp:82
llvm::pdb::NativeTypeUDT::getLength
uint64_t getLength() const override
Definition: NativeTypeUDT.cpp:99
llvm::pdb::NativeTypeUDT::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeUDT.cpp:37
llvm::pdb::NativeTypeUDT::getUdtKind
PDB_UdtType getUdtKind() const override
Definition: NativeTypeUDT.cpp:109
llvm::pdb::NativeTypeUDT::NativeTypeUDT
NativeTypeUDT(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::ClassRecord Class)
Definition: NativeTypeUDT.cpp:19
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
CodeView.h
llvm::pdb::NativeTypeUDT::~NativeTypeUDT
~NativeTypeUDT() override
Definition: NativeTypeUDT.cpp:35
llvm::pdb::NativeTypeUDT::Class
Optional< codeview::ClassRecord > Class
Definition: NativeTypeUDT.h:63
llvm::pdb::NativeTypeUDT::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeUDT.cpp:215
uint64_t
TypeRecord.h
llvm::pdb::NativeTypeUDT::hasAssignmentOperator
bool hasAssignmentOperator() const override
Definition: NativeTypeUDT.cpp:142
llvm::pdb::NativeTypeUDT::isScoped
bool isScoped() const override
Definition: NativeTypeUDT.cpp:199
llvm::pdb::NativeTypeUDT::Tag
codeview::TagRecord * Tag
Definition: NativeTypeUDT.h:66
uint32_t
llvm::pdb::NativeTypeUDT::isIntrinsic
bool isIntrinsic() const override
Definition: NativeTypeUDT.cpp:176
llvm::pdb::NativeTypeUDT::Index
codeview::TypeIndex Index
Definition: NativeTypeUDT.h:61
llvm::pdb::NativeTypeUDT::getLexicalParentId
SymIndexId getLexicalParentId() const override
Definition: NativeTypeUDT.cpp:80
llvm::pdb::NativeTypeUDT::hasConstructor
bool hasConstructor() const override
Definition: NativeTypeUDT.cpp:127
llvm::codeview::UnionRecord
Definition: TypeRecord.h:497
NativeRawSymbol.h
llvm::pdb::NativeTypeUDT::hasCastOperator
bool hasCastOperator() const override
Definition: NativeTypeUDT.cpp:150
llvm::pdb::NativeSession
Definition: NativeSession.h:28
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::NativeTypeUDT::getVirtualTableShapeId
SymIndexId getVirtualTableShapeId() const override
Definition: NativeTypeUDT.cpp:89
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::codeview::ClassRecord
Definition: TypeRecord.h:464
llvm::pdb::NativeTypeUDT::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeUDT.cpp:208
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:231
llvm::pdb::NativeTypeUDT::UnmodifiedType
NativeTypeUDT * UnmodifiedType
Definition: NativeTypeUDT.h:65
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21
llvm::pdb::NativeTypeUDT::isValueUdt
bool isValueUdt() const override
Definition: NativeTypeUDT.cpp:206
llvm::pdb::NativeTypeUDT::Union
Optional< codeview::UnionRecord > Union
Definition: NativeTypeUDT.h:64
NativeSession.h
llvm::pdb::NativeTypeUDT::hasNestedTypes
bool hasNestedTypes() const override
Definition: NativeTypeUDT.cpp:158