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 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 416 of file DerivedTypes.h.


Member Function Documentation

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

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

Definition at line 1308 of file Type.cpp.

References DOUT.

Referenced by llvm::ConstantFoldGetElementPtr(), llvm::ConstantExpr::getGetElementPtr(), and getUnqual().

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

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 1508 of file Type.cpp.

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 1513 of file Type.cpp.

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

Definition at line 442 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 443 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 417 of file DerivedTypes.h.


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