class PointerType

Declaration

class PointerType : public Type { /* full declaration omitted */ };

Description

Class to represent pointers.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:579

Inherits from: Type

Member Variables

Inherited from Type:

protected NumContainedTys = 0
protected ContainedTys = nullptr

Method Overview

Inherited from Type:

Methods

PointerType(const llvm::PointerType&)

Declared at: llvm/include/llvm/IR/DerivedTypes.h:585

Parameters

const llvm::PointerType&

static bool classof(const llvm::Type* T)

Description

Implement support type inquiry through isa, cast, and dyn_cast.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:610

Parameters

const llvm::Type* T

static llvm::PointerType* get(
    llvm::Type* ElementType,
    unsigned int AddressSpace)

Description

This constructs a pointer to an object of the specified type in a numbered address space.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:590

Parameters

llvm::Type* ElementType
unsigned int AddressSpace

inline unsigned int getAddressSpace() const

Description

Return the address space of the Pointer type.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:607

llvm::Type* getElementType() const

Declared at: llvm/include/llvm/IR/DerivedTypes.h:598

static llvm::PointerType* getUnqual(
    llvm::Type* ElementType)

Description

This constructs a pointer to an object of the specified type in the generic address space (address space zero).

Declared at: llvm/include/llvm/IR/DerivedTypes.h:594

Parameters

llvm::Type* ElementType

static bool isLoadableOrStorableType(
    llvm::Type* ElemTy)

Description

Return true if we can load or store from a pointer to this type.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:604

Parameters

llvm::Type* ElemTy

static bool isValidElementType(llvm::Type* ElemTy)

Description

Return true if the specified type is valid as a element type.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:601

Parameters

llvm::Type* ElemTy