class DIBasicType

Declaration

class DIBasicType : public DIType { /* full declaration omitted */ };

Description

Basic type, like 'int' or 'float'. TODO: Split out DW_TAG_unspecified_type. TODO: Drop unused accessors.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:764

Inherits from: DIType

Member Variables

private unsigned int Encoding

Inherited from Metadata:

protected Storage
protected SubclassData1
protected SubclassData16 = 0
protected SubclassData32 = 0

Method Overview

  • private DIBasicType(llvm::LLVMContext & C, llvm::Metadata::StorageType Storage, unsigned int Tag, uint64_t SizeInBits, uint32_t AlignInBits, unsigned int Encoding, llvm::DINode::DIFlags Flags, ArrayRef<llvm::Metadata *> Ops)
  • public static bool classof(const llvm::Metadata * MD)
  • public llvm::TempDIBasicType clone() const
  • private llvm::TempDIBasicType cloneImpl() const
  • public unsigned int getEncoding() const
  • private static llvm::DIBasicType * getImpl(llvm::LLVMContext & Context, unsigned int Tag, llvm::StringRef Name, uint64_t SizeInBits, uint32_t AlignInBits, unsigned int Encoding, llvm::DINode::DIFlags Flags, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • private static llvm::DIBasicType * getImpl(llvm::LLVMContext & Context, unsigned int Tag, llvm::MDString * Name, uint64_t SizeInBits, uint32_t AlignInBits, unsigned int Encoding, llvm::DINode::DIFlags Flags, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • public Optional<llvm::DIBasicType::Signedness> getSignedness() const
  • private ~DIBasicType()

Inherited from DIType:

Inherited from DIScope:

Inherited from DINode:

Inherited from MDNode:

Inherited from Metadata:

Methods

DIBasicType(llvm::LLVMContext& C,
            llvm::Metadata::StorageType Storage,
            unsigned int Tag,
            uint64_t SizeInBits,
            uint32_t AlignInBits,
            unsigned int Encoding,
            llvm::DINode::DIFlags Flags,
            ArrayRef<llvm::Metadata*> Ops)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:770

Parameters

llvm::LLVMContext& C
llvm::Metadata::StorageType Storage
unsigned int Tag
uint64_t SizeInBits
uint32_t AlignInBits
unsigned int Encoding
llvm::DINode::DIFlags Flags
ArrayRef<llvm::Metadata*> Ops

static bool classof(const llvm::Metadata* MD)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:826

Parameters

const llvm::Metadata* MD

llvm::TempDIBasicType clone() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:816

llvm::TempDIBasicType cloneImpl() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:793

unsigned int getEncoding() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:818

static llvm::DIBasicType* getImpl(
    llvm::LLVMContext& Context,
    unsigned int Tag,
    llvm::StringRef Name,
    uint64_t SizeInBits,
    uint32_t AlignInBits,
    unsigned int Encoding,
    llvm::DINode::DIFlags Flags,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:778

Parameters

llvm::LLVMContext& Context
unsigned int Tag
llvm::StringRef Name
uint64_t SizeInBits
uint32_t AlignInBits
unsigned int Encoding
llvm::DINode::DIFlags Flags
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

static llvm::DIBasicType* getImpl(
    llvm::LLVMContext& Context,
    unsigned int Tag,
    llvm::MDString* Name,
    uint64_t SizeInBits,
    uint32_t AlignInBits,
    unsigned int Encoding,
    llvm::DINode::DIFlags Flags,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:787

Parameters

llvm::LLVMContext& Context
unsigned int Tag
llvm::MDString* Name
uint64_t SizeInBits
uint32_t AlignInBits
unsigned int Encoding
llvm::DINode::DIFlags Flags
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

Optional<llvm::DIBasicType::Signedness>
getSignedness() const

Description

Return the signedness of this type, or None if this type is neither signed nor unsigned.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:824

~DIBasicType()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:776