LLVM  14.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"
17 
18 namespace llvm {
19 namespace pdb {
20 
22 public:
23  // Create a pointer record for a simple type.
26 
27  // Create a pointer record for a non-simple type.
30  ~NativeTypePointer() override;
31 
32  void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
33  PdbSymbolIdField RecurseIdFields) const override;
34 
35  SymIndexId getClassParentId() const override;
36  bool isConstType() const override;
37  uint64_t getLength() const override;
38  bool isReference() const override;
39  bool isRValueReference() const override;
40  bool isPointerToDataMember() const override;
41  bool isPointerToMemberFunction() const override;
42  SymIndexId getTypeId() const override;
43  bool isRestrictedType() const override;
44  bool isVolatileType() const override;
45  bool isUnalignedType() const override;
46 
47  bool isSingleInheritance() const override;
48  bool isMultipleInheritance() const override;
49  bool isVirtualInheritance() const override;
50 
51 protected:
52  bool isMemberPointer() const;
55 };
56 
57 } // namespace pdb
58 } // namespace llvm
59 
60 #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:34
llvm::pdb::NativeTypePointer::isRestrictedType
bool isRestrictedType() const override
Definition: NativeTypePointer.cpp:137
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::NativeTypePointer::isReference
bool isReference() const override
Definition: NativeTypePointer.cpp:107
Optional.h
llvm::pdb::NativeTypePointer::isPointerToMemberFunction
bool isPointerToMemberFunction() const override
Definition: NativeTypePointer.cpp:125
llvm::pdb::NativeTypePointer::NativeTypePointer
NativeTypePointer(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI)
Definition: NativeTypePointer.cpp:19
llvm::Optional
Definition: APInt.h:33
llvm::codeview::PointerRecord
Definition: TypeRecord.h:263
llvm::pdb::NativeTypePointer::TI
codeview::TypeIndex TI
Definition: NativeTypePointer.h:53
llvm::pdb::NativeTypePointer::isPointerToDataMember
bool isPointerToDataMember() const override
Definition: NativeTypePointer.cpp:119
llvm::pdb::NativeTypePointer::isRValueReference
bool isRValueReference() const override
Definition: NativeTypePointer.cpp:113
llvm::pdb::NativeTypePointer::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypePointer.cpp:100
llvm::pdb::NativeTypePointer::getClassParentId
SymIndexId getClassParentId() const override
Definition: NativeTypePointer.cpp:69
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::pdb::NativeTypePointer::isMultipleInheritance
bool isMultipleInheritance() const override
Definition: NativeTypePointer.cpp:173
CodeView.h
uint64_t
TypeRecord.h
llvm::pdb::NativeTypePointer
Definition: NativeTypePointer.h:21
llvm::pdb::NativeTypePointer::Record
Optional< codeview::PointerRecord > Record
Definition: NativeTypePointer.h:54
llvm::pdb::NativeTypePointer::isVirtualInheritance
bool isVirtualInheritance() const override
Definition: NativeTypePointer.cpp:182
uint32_t
llvm::pdb::NativeTypePointer::isVolatileType
bool isVolatileType() const override
Definition: NativeTypePointer.cpp:144
llvm::pdb::NativeTypePointer::getLength
uint64_t getLength() const override
Definition: NativeTypePointer.cpp:78
llvm::pdb::NativeTypePointer::isConstType
bool isConstType() const override
Definition: NativeTypePointer.cpp:131
llvm::pdb::NativeTypePointer::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypePointer.cpp:151
llvm::pdb::NativeTypePointer::isMemberPointer
bool isMemberPointer() const
Definition: NativeTypePointer.cpp:191
NativeRawSymbol.h
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::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::pdb::NativeTypePointer::isSingleInheritance
bool isSingleInheritance() const override
Definition: NativeTypePointer.cpp:164
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:231
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21
llvm::pdb::NativeTypePointer::~NativeTypePointer
~NativeTypePointer() override
Definition: NativeTypePointer.cpp:32
NativeSession.h