LLVM  16.0.0git
NativeTypePointer.h
Go to the documentation of this file.
1 //===- NativeTypePointer.h - info about pointer 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_NATIVETYPEPOINTER_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEPOINTER_H
11 
12 #include "llvm/ADT/Optional.h"
18 
19 namespace llvm {
20 namespace pdb {
21 
23 public:
24  // Create a pointer record for a simple type.
27 
28  // Create a pointer record for a non-simple type.
31  ~NativeTypePointer() override;
32 
33  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
34  PdbSymbolIdField RecurseIdFields) const override;
35 
36  SymIndexId getClassParentId() const override;
37  bool isConstType() const override;
38  uint64_t getLength() const override;
39  bool isReference() const override;
40  bool isRValueReference() const override;
41  bool isPointerToDataMember() const override;
42  bool isPointerToMemberFunction() const override;
43  SymIndexId getTypeId() const override;
44  bool isRestrictedType() const override;
45  bool isVolatileType() const override;
46  bool isUnalignedType() const override;
47 
48  bool isSingleInheritance() const override;
49  bool isMultipleInheritance() const override;
50  bool isVirtualInheritance() const override;
51 
52 protected:
53  bool isMemberPointer() const;
56 };
57 
58 } // namespace pdb
59 } // namespace llvm
60 
61 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEPOINTER_H
llvm::pdb::NativeTypePointer::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypePointer.cpp:35
llvm::pdb::NativeTypePointer::isRestrictedType
bool isRestrictedType() const override
Definition: NativeTypePointer.cpp:138
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::pdb::NativeTypePointer::isReference
bool isReference() const override
Definition: NativeTypePointer.cpp:108
Optional.h
IPDBRawSymbol.h
llvm::pdb::NativeTypePointer::isPointerToMemberFunction
bool isPointerToMemberFunction() const override
Definition: NativeTypePointer.cpp:126
llvm::pdb::NativeTypePointer::NativeTypePointer
NativeTypePointer(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI)
Definition: NativeTypePointer.cpp:20
llvm::Optional
Definition: APInt.h:33
llvm::codeview::PointerRecord
Definition: TypeRecord.h:264
llvm::pdb::NativeTypePointer::TI
codeview::TypeIndex TI
Definition: NativeTypePointer.h:54
llvm::pdb::NativeTypePointer::isPointerToDataMember
bool isPointerToDataMember() const override
Definition: NativeTypePointer.cpp:120
llvm::pdb::NativeTypePointer::isRValueReference
bool isRValueReference() const override
Definition: NativeTypePointer.cpp:114
llvm::pdb::NativeTypePointer::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypePointer.cpp:101
llvm::pdb::NativeTypePointer::getClassParentId
SymIndexId getClassParentId() const override
Definition: NativeTypePointer.cpp:70
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
llvm::pdb::NativeTypePointer::isMultipleInheritance
bool isMultipleInheritance() const override
Definition: NativeTypePointer.cpp:174
PDBTypes.h
uint64_t
TypeRecord.h
llvm::pdb::NativeTypePointer
Definition: NativeTypePointer.h:22
llvm::pdb::NativeTypePointer::Record
Optional< codeview::PointerRecord > Record
Definition: NativeTypePointer.h:55
llvm::pdb::NativeTypePointer::isVirtualInheritance
bool isVirtualInheritance() const override
Definition: NativeTypePointer.cpp:183
uint32_t
llvm::pdb::NativeTypePointer::isVolatileType
bool isVolatileType() const override
Definition: NativeTypePointer.cpp:145
llvm::pdb::NativeTypePointer::getLength
uint64_t getLength() const override
Definition: NativeTypePointer.cpp:79
llvm::pdb::NativeTypePointer::isConstType
bool isConstType() const override
Definition: NativeTypePointer.cpp:132
llvm::pdb::NativeTypePointer::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypePointer.cpp:152
llvm::pdb::NativeTypePointer::isMemberPointer
bool isMemberPointer() const
Definition: NativeTypePointer.cpp:192
NativeRawSymbol.h
TypeIndex.h
llvm::pdb::NativeSession
Definition: NativeSession.h:32
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::pdb::NativeTypePointer::isSingleInheritance
bool isSingleInheritance() const override
Definition: NativeTypePointer.cpp:165
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:241
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21
llvm::pdb::NativeTypePointer::~NativeTypePointer
~NativeTypePointer() override