LLVM API Documentation

llvm::PointerType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::PointerType:
[legend]
Collaboration diagram for llvm::PointerType:
[legend]

List of all members.

Public Member Functions

unsigned getAddressSpace () const
 Return the address space of the Pointer type.
virtual void refineAbstractType (const DerivedType *OldTy, const Type *NewTy)
virtual void typeBecameConcrete (const DerivedType *AbsTy)

Static Public Member Functions

static PointerType * get (const Type *ElementType, unsigned AddressSpace)
static PointerType * getUnqual (const Type *ElementType)
static bool isValidElementType (const Type *ElemTy)
static bool classof (const PointerType *)
static bool classof (const Type *T)
 Methods for support type inquiry through isa, cast, and dyn_cast:.

Friends

class TypeMap< PointerValType, PointerType >


Detailed Description

PointerType - Class to represent pointers

Definition at line 459 of file DerivedTypes.h.


Member Function Documentation

PointerType * PointerType::get ( const Type *  ElementType,
unsigned  AddressSpace 
) [static]

static PointerType* llvm::PointerType::getUnqual ( const Type *  ElementType  )  [inline, static]

bool PointerType::isValidElementType ( const Type *  ElemTy  )  [static]

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

Definition at line 956 of file Type.cpp.

References llvm::Type::getContext(), llvm::Type::getLabelTy(), llvm::Type::getMetadataTy(), and llvm::Type::getVoidTy().

Referenced by get().

unsigned llvm::PointerType::getAddressSpace (  )  const [inline]

void PointerType::refineAbstractType ( const DerivedType *  OldTy,
const Type *  NewTy 
) [virtual]

refineAbstractType - The callback method invoked when an abstract type is resolved to another type. An object must override this method to update its internal state to reference NewType instead of OldType.

Reimplemented from llvm::Type.

Definition at line 1193 of file Type.cpp.

References llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::PointerTypes.

void PointerType::typeBecameConcrete ( const DerivedType *  AbsTy  )  [virtual]

The other case which AbstractTypeUsers must be aware of is when a type makes the transition from being abstract (where it has clients on it's AbstractTypeUsers list) to concrete (where it does not). This method notifies ATU's when this occurs for a type.

Reimplemented from llvm::Type.

Definition at line 1199 of file Type.cpp.

References llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::PointerTypes.

static bool llvm::PointerType::classof ( const PointerType *   )  [inline, static]

Definition at line 489 of file DerivedTypes.h.

static bool llvm::PointerType::classof ( const Type *   )  [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::SequentialType.

Definition at line 490 of file DerivedTypes.h.

References llvm::Type::getTypeID(), and llvm::Type::PointerTyID.


Friends And Related Function Documentation

friend class TypeMap< PointerValType, PointerType > [friend]

Definition at line 460 of file DerivedTypes.h.


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