LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::logicalview::LVType Class Reference

#include "llvm/DebugInfo/LogicalView/Core/LVType.h"

Inheritance diagram for llvm::logicalview::LVType:
Inheritance graph
[legend]

Public Member Functions

 LVType ()
 
 LVType (const LVType &)=delete
 
LVTypeoperator= (const LVType &)=delete
 
virtual ~LVType ()=default
 
 KIND (LVTypeKind, IsBase)
 
 KIND (LVTypeKind, IsConst)
 
 KIND (LVTypeKind, IsEnumerator)
 
 KIND (LVTypeKind, IsImport)
 
 KIND_1 (LVTypeKind, IsImportDeclaration, IsImport)
 
 KIND_1 (LVTypeKind, IsImportModule, IsImport)
 
 KIND (LVTypeKind, IsPointer)
 
 KIND (LVTypeKind, IsPointerMember)
 
 KIND (LVTypeKind, IsReference)
 
 KIND (LVTypeKind, IsRestrict)
 
 KIND (LVTypeKind, IsRvalueReference)
 
 KIND (LVTypeKind, IsSubrange)
 
 KIND (LVTypeKind, IsTemplateParam)
 
 KIND_1 (LVTypeKind, IsTemplateTemplateParam, IsTemplateParam)
 
 KIND_1 (LVTypeKind, IsTemplateTypeParam, IsTemplateParam)
 
 KIND_1 (LVTypeKind, IsTemplateValueParam, IsTemplateParam)
 
 KIND (LVTypeKind, IsTypedef)
 
 KIND (LVTypeKind, IsUnaligned)
 
 KIND (LVTypeKind, IsUnspecified)
 
 KIND (LVTypeKind, IsVolatile)
 
 KIND (LVTypeKind, IsModifier)
 
 PROPERTY (Property, IsSubrangeCount)
 
const charkind () const override
 
StringRef resolveReferencesChain ()
 
bool isBase () const override
 
bool isTemplateParam () const override
 
virtual void encodeTemplateArgument (std::string &Name) const
 
virtual LVElementgetUnderlyingType ()
 
virtual void setUnderlyingType (LVElement *Element)
 
void resolveName () override
 
void resolveReferences () override
 
virtual bool equals (const LVType *Type) const
 
void report (LVComparePass Pass) override
 
void print (raw_ostream &OS, bool Full=true) const override
 
void printExtra (raw_ostream &OS, bool Full=true) const override
 
void dump () const override
 
- Public Member Functions inherited from llvm::logicalview::LVElement
 LVElement (LVSubclassID ID)
 
 LVElement (const LVElement &)=delete
 
LVElementoperator= (const LVElement &)=delete
 
virtual ~LVElement ()=default
 
LVSubclassID getSubclassID () const
 
 PROPERTY (Property, IsLine)
 
 PROPERTY (Property, IsScope)
 
 PROPERTY (Property, IsSymbol)
 
 PROPERTY (Property, IsType)
 
 PROPERTY (Property, IsEnumClass)
 
 PROPERTY (Property, IsExternal)
 
 PROPERTY (Property, HasType)
 
 PROPERTY (Property, HasAugmentedName)
 
 PROPERTY (Property, IsTypedefReduced)
 
 PROPERTY (Property, IsArrayResolved)
 
 PROPERTY (Property, IsMemberPointerResolved)
 
 PROPERTY (Property, IsTemplateResolved)
 
 PROPERTY (Property, IsInlined)
 
 PROPERTY (Property, IsInlinedAbstract)
 
 PROPERTY (Property, InvalidFilename)
 
 PROPERTY (Property, HasReference)
 
 PROPERTY (Property, HasReferenceAbstract)
 
 PROPERTY (Property, HasReferenceExtension)
 
 PROPERTY (Property, HasReferenceSpecification)
 
 PROPERTY (Property, QualifiedResolved)
 
 PROPERTY (Property, IncludeInPrint)
 
 PROPERTY (Property, IsStatic)
 
 PROPERTY (Property, TransformName)
 
 PROPERTY (Property, IsScoped)
 
 PROPERTY (Property, IsNested)
 
 PROPERTY (Property, IsScopedAlready)
 
 PROPERTY (Property, IsArtificial)
 
 PROPERTY (Property, IsReferencedType)
 
 PROPERTY (Property, IsSystem)
 
 PROPERTY (Property, OffsetFromTypeIndex)
 
 PROPERTY (Property, IsAnonymous)
 
bool isNamed () const override
 
bool isTyped () const override
 
bool isFiled () const override
 
bool getIsKindType () const
 
bool getIsKindScope () const
 
StringRef getName () const override
 
void setName (StringRef ElementName) override
 
StringRef getPathname () const
 
void setFilename (StringRef Filename)
 
void setQualifiedName (StringRef Name)
 
StringRef getQualifiedName () const
 
size_t getNameIndex () const
 
size_t getQualifiedNameIndex () const
 
void setInnerComponent ()
 
void setInnerComponent (StringRef Name)
 
StringRef getTypeName () const
 
virtual StringRef getProducer () const
 
virtual void setProducer (StringRef ProducerName)
 
virtual bool isCompileUnit () const
 
virtual bool isRoot () const
 
virtual void setReference (LVElement *Element)
 
virtual void setReference (LVScope *Scope)
 
virtual void setReference (LVSymbol *Symbol)
 
virtual void setReference (LVType *Type)
 
virtual void setLinkageName (StringRef LinkageName)
 
virtual StringRef getLinkageName () const
 
virtual size_t getLinkageNameIndex () const
 
virtual uint32_t getCallLineNumber () const
 
virtual void setCallLineNumber (uint32_t Number)
 
virtual size_t getCallFilenameIndex () const
 
virtual void setCallFilenameIndex (size_t Index)
 
size_t getFilenameIndex () const
 
void setFilenameIndex (size_t Index)
 
void setFile (LVElement *Reference=nullptr)
 
virtual bool isBase () const
 
virtual bool isTemplateParam () const
 
virtual uint32_t getBitSize () const
 
virtual void setBitSize (uint32_t Size)
 
virtual int64_t getCount () const
 
virtual void setCount (int64_t Value)
 
virtual int64_t getLowerBound () const
 
virtual void setLowerBound (int64_t Value)
 
virtual int64_t getUpperBound () const
 
virtual void setUpperBound (int64_t Value)
 
virtual std::pair< unsigned, unsignedgetBounds () const
 
virtual void setBounds (unsigned Lower, unsigned Upper)
 
virtual uint32_t getDiscriminator () const
 
virtual void setDiscriminator (uint32_t Value)
 
virtual StringRef getValue () const
 
virtual void setValue (StringRef Value)
 
virtual size_t getValueIndex () const
 
uint32_t getAccessibilityCode () const
 
void setAccessibilityCode (uint32_t Access)
 
StringRef accessibilityString (uint32_t Access=dwarf::DW_ACCESS_private) const
 
std::optional< uint32_tgetAccessibilityCode (codeview::MemberAccess Access)
 
void setAccessibilityCode (codeview::MemberAccess Access)
 
uint32_t getInlineCode () const
 
void setInlineCode (uint32_t Code)
 
StringRef inlineCodeString (uint32_t Code) const
 
uint32_t getVirtualityCode () const
 
void setVirtualityCode (uint32_t Virtuality)
 
StringRef virtualityString (uint32_t Virtuality=dwarf::DW_VIRTUALITY_none) const
 
std::optional< uint32_tgetVirtualityCode (codeview::MethodKind Virtuality)
 
void setVirtualityCode (codeview::MethodKind Virtuality)
 
StringRef externalString () const
 
LVElementgetType () const
 
LVTypegetTypeAsType () const
 
LVScopegetTypeAsScope () const
 
void setType (LVElement *Element=nullptr)
 
void setGenericType (LVElement *Element)
 
StringRef getTypeQualifiedName () const
 
StringRef typeAsString () const
 
std::string typeOffsetAsString () const
 
std::string discriminatorAsString () const
 
LVScopetraverseParents (LVScopeGetFunction GetFunction) const
 
LVScopegetFunctionParent () const
 
virtual LVScopegetCompileUnitParent () const
 
void printReference (raw_ostream &OS, bool Full, LVElement *Parent) const
 
void printLinkageName (raw_ostream &OS, bool Full, LVElement *Parent, LVScope *Scope) const
 
void printLinkageName (raw_ostream &OS, bool Full, LVElement *Parent) const
 
void resolveFullname (LVElement *BaseType, StringRef Name=emptyString())
 
void generateName (std::string &Prefix) const
 
void generateName ()
 
virtual bool removeElement (LVElement *Element)
 
virtual void updateLevel (LVScope *Parent, bool Moved=false)
 
virtual void resolve ()
 
virtual void resolveExtra ()
 
virtual void resolveName ()
 
virtual void resolveReferences ()
 
void resolveParents ()
 
bool referenceMatch (const LVElement *Element) const
 
bool equals (const LVElement *Element) const
 
virtual void report (LVComparePass Pass)
 
- Public Member Functions inherited from llvm::logicalview::LVObject
 LVObject ()
 
LVObjectoperator= (const LVObject &)=delete
 
virtual ~LVObject ()=default
 
 PROPERTY (Property, IsLocation)
 
 PROPERTY (Property, IsGlobalReference)
 
 PROPERTY (Property, IsGeneratedName)
 
 PROPERTY (Property, IsResolved)
 
 PROPERTY (Property, IsResolvedName)
 
 PROPERTY (Property, IsDiscarded)
 
 PROPERTY (Property, IsOptimized)
 
 PROPERTY (Property, IsAdded)
 
 PROPERTY (Property, IsMatched)
 
 PROPERTY (Property, IsMissing)
 
 PROPERTY (Property, IsMissingLink)
 
 PROPERTY (Property, IsInCompare)
 
 PROPERTY (Property, IsFileFromReference)
 
 PROPERTY (Property, IsLineFromReference)
 
 PROPERTY (Property, HasMoved)
 
 PROPERTY (Property, HasPattern)
 
 PROPERTY (Property, IsFinalized)
 
 PROPERTY (Property, IsReferenced)
 
 PROPERTY (Property, HasCodeViewLocation)
 
virtual bool isNamed () const
 
virtual bool isTyped () const
 
virtual bool isFiled () const
 
bool isLined () const
 
dwarf::Tag getTag () const
 
void setTag (dwarf::Tag Tag)
 
dwarf::Attribute getAttr () const
 
void setAttr (dwarf::Attribute Attr)
 
LVSmall getOpcode () const
 
void setOpcode (LVSmall Opcode)
 
LVOffset getOffset () const
 
void setOffset (LVOffset DieOffset)
 
LVLevel getLevel () const
 
void setLevel (LVLevel Level)
 
virtual StringRef getName () const
 
virtual void setName (StringRef ObjectName)
 
LVElementgetParent () const
 
LVScopegetParentScope () const
 
LVSymbolgetParentSymbol () const
 
void setParent (LVScope *Scope)
 
void setParent (LVSymbol *Symbol)
 
void resetParent ()
 
virtual LVAddress getLowerAddress () const
 
virtual void setLowerAddress (LVAddress Address)
 
virtual LVAddress getUpperAddress () const
 
virtual void setUpperAddress (LVAddress Address)
 
uint32_t getLineNumber () const
 
void setLineNumber (uint32_t Number)
 
virtual const charkind () const
 
std::string indentAsString () const
 
std::string indentAsString (LVLevel Level) const
 
virtual std::string noLineAsString (bool ShowZero) const
 
virtual std::string lineNumberAsString (bool ShowZero=false) const
 
std::string lineNumberAsStringStripped (bool ShowZero=false) const
 
virtual Error doPrint (bool Split, bool Match, bool Print, raw_ostream &OS, bool Full=true) const
 
void printAttributes (raw_ostream &OS, bool Full=true) const
 
void printAttributes (raw_ostream &OS, bool Full, StringRef Name, LVObject *Parent, StringRef Value, bool UseQuotes=false, bool PrintRef=false) const
 
void markBranchAsMissing ()
 
virtual void print (raw_ostream &OS, bool Full=true) const
 
virtual void printExtra (raw_ostream &OS, bool Full=true) const
 
virtual void dump () const
 
uint64_t getID () const
 

Static Public Member Functions

static bool classof (const LVElement *Element)
 
static LVTypeDispatchgetDispatch ()
 
static bool parametersMatch (const LVTypes *References, const LVTypes *Targets)
 
static void getParameters (const LVTypes *Types, LVTypes *TypesParam, LVScopes *ScopesParam)
 
static void markMissingParents (const LVTypes *References, const LVTypes *Targets)
 
static bool equals (const LVTypes *References, const LVTypes *Targets)
 
- Static Public Member Functions inherited from llvm::logicalview::LVElement
static LVElementDispatchgetDispatch ()
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::logicalview::LVElement
void printFileIndex (raw_ostream &OS, bool Full=true) const override
 
- Protected Member Functions inherited from llvm::logicalview::LVObject
std::string lineAsString (uint32_t LineNumber, LVHalf Discriminator, bool ShowZero) const
 
std::string referenceAsString (uint32_t LineNumber, bool Spaces) const
 
virtual void printFileIndex (raw_ostream &OS, bool Full=true) const
 
- Protected Attributes inherited from llvm::logicalview::LVElement
LVElementElementType = nullptr
 

Detailed Description

Definition at line 51 of file LVType.h.

Constructor & Destructor Documentation

◆ LVType() [1/2]

llvm::logicalview::LVType::LVType ( )
inline

Definition at line 63 of file LVType.h.

◆ LVType() [2/2]

llvm::logicalview::LVType::LVType ( const LVType )
delete

◆ ~LVType()

virtual llvm::logicalview::LVType::~LVType ( )
virtualdefault

Member Function Documentation

◆ classof()

static bool llvm::logicalview::LVType::classof ( const LVElement Element)
inlinestatic

◆ dump()

void llvm::logicalview::LVType::dump ( ) const
inlineoverridevirtual

Reimplemented from llvm::logicalview::LVObject.

Definition at line 143 of file LVType.h.

References llvm::dbgs(), and print().

◆ encodeTemplateArgument()

virtual void llvm::logicalview::LVType::encodeTemplateArgument ( std::string &  Name) const
inlinevirtual

Reimplemented in llvm::logicalview::LVTypeParam.

Definition at line 106 of file LVType.h.

◆ equals() [1/2]

bool LVType::equals ( const LVType Type) const
virtual

◆ equals() [2/2]

bool LVType::equals ( const LVTypes References,
const LVTypes Targets 
)
static

◆ getDispatch()

static LVTypeDispatch & llvm::logicalview::LVType::getDispatch ( )
inlinestatic

Definition at line 115 of file LVType.h.

Referenced by llvm::logicalview::LVPatterns::LVPatterns().

◆ getParameters()

void LVType::getParameters ( const LVTypes Types,
LVTypes TypesParam,
LVScopes ScopesParam 
)
static

◆ getUnderlyingType()

virtual LVElement * llvm::logicalview::LVType::getUnderlyingType ( )
inlinevirtual

◆ isBase()

bool llvm::logicalview::LVType::isBase ( ) const
inlineoverridevirtual

Reimplemented from llvm::logicalview::LVElement.

Definition at line 102 of file LVType.h.

◆ isTemplateParam()

bool llvm::logicalview::LVType::isTemplateParam ( ) const
inlineoverridevirtual

Reimplemented from llvm::logicalview::LVElement.

Definition at line 103 of file LVType.h.

◆ kind()

const char * LVType::kind ( ) const
overridevirtual

◆ KIND() [1/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsBase   
)

◆ KIND() [2/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsConst   
)

◆ KIND() [3/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsEnumerator   
)

◆ KIND() [4/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsImport   
)

◆ KIND() [5/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsModifier   
)

◆ KIND() [6/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsPointer   
)

◆ KIND() [7/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsPointerMember   
)

◆ KIND() [8/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsReference   
)

◆ KIND() [9/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsRestrict   
)

◆ KIND() [10/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsRvalueReference   
)

◆ KIND() [11/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsSubrange   
)

◆ KIND() [12/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsTemplateParam   
)

◆ KIND() [13/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsTypedef   
)

◆ KIND() [14/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsUnaligned   
)

◆ KIND() [15/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsUnspecified   
)

◆ KIND() [16/16]

llvm::logicalview::LVType::KIND ( LVTypeKind  ,
IsVolatile   
)

◆ KIND_1() [1/5]

llvm::logicalview::LVType::KIND_1 ( LVTypeKind  ,
IsImportDeclaration  ,
IsImport   
)

◆ KIND_1() [2/5]

llvm::logicalview::LVType::KIND_1 ( LVTypeKind  ,
IsImportModule  ,
IsImport   
)

◆ KIND_1() [3/5]

llvm::logicalview::LVType::KIND_1 ( LVTypeKind  ,
IsTemplateTemplateParam  ,
IsTemplateParam   
)

◆ KIND_1() [4/5]

llvm::logicalview::LVType::KIND_1 ( LVTypeKind  ,
IsTemplateTypeParam  ,
IsTemplateParam   
)

◆ KIND_1() [5/5]

llvm::logicalview::LVType::KIND_1 ( LVTypeKind  ,
IsTemplateValueParam  ,
IsTemplateParam   
)

◆ markMissingParents()

void LVType::markMissingParents ( const LVTypes References,
const LVTypes Targets 
)
static

◆ operator=()

LVType & llvm::logicalview::LVType::operator= ( const LVType )
delete

◆ parametersMatch()

bool LVType::parametersMatch ( const LVTypes References,
const LVTypes Targets 
)
static

◆ print()

void LVType::print ( raw_ostream OS,
bool  Full = true 
) const
overridevirtual

◆ printExtra()

void LVType::printExtra ( raw_ostream OS,
bool  Full = true 
) const
overridevirtual

◆ PROPERTY()

llvm::logicalview::LVType::PROPERTY ( Property  ,
IsSubrangeCount   
)

◆ report()

void LVType::report ( LVComparePass  Pass)
overridevirtual

◆ resolveName()

void LVType::resolveName ( )
overridevirtual

◆ resolveReferences()

void LVType::resolveReferences ( )
overridevirtual

◆ resolveReferencesChain()

StringRef LVType::resolveReferencesChain ( )

Definition at line 167 of file LVType.cpp.

References llvm::logicalview::LVElement::getName().

◆ setUnderlyingType()

virtual void llvm::logicalview::LVType::setUnderlyingType ( LVElement Element)
inlinevirtual

Reimplemented in llvm::logicalview::LVTypeDefinition.

Definition at line 110 of file LVType.h.


The documentation for this class was generated from the following files: