LLVM  mainline
Public Member Functions | Static Public Member Functions
llvm::PointerType Class Reference

PointerType - Class to represent pointers. More...

#include <DerivedTypes.h>

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

List of all members.

Public Member Functions

unsigned getAddressSpace () const
 Return the address space of the Pointer type.

Static Public Member Functions

static PointerTypeget (Type *ElementType, unsigned AddressSpace)
 PointerType::get - This constructs a pointer to an object of the specified type in a numbered address space.
static PointerTypegetUnqual (Type *ElementType)
 PointerType::getUnqual - This constructs a pointer to an object of the specified type in the generic address space (address space zero).
static bool isValidElementType (Type *ElemTy)
 isValidElementType - Return true if the specified type is valid as a element type.
static bool isLoadableOrStorableType (Type *ElemTy)
 Return true if we can load or store from a pointer to this type.
static bool classof (const Type *T)
 Implement support type inquiry through isa, cast, and dyn_cast.

Detailed Description

PointerType - Class to represent pointers.

Definition at line 448 of file DerivedTypes.h.


Member Function Documentation

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

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

Reimplemented from llvm::SequentialType.

Definition at line 474 of file DerivedTypes.h.

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

PointerType * PointerType::get ( Type ElementType,
unsigned  AddressSpace 
) [static]
static PointerType* llvm::PointerType::getUnqual ( Type ElementType) [inline, static]

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

Definition at line 769 of file Type.cpp.

References llvm::Type::isFunctionTy(), and isValidElementType().

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

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

Definition at line 764 of file Type.cpp.

References llvm::Type::isLabelTy(), llvm::Type::isMetadataTy(), and llvm::Type::isVoidTy().

Referenced by get(), and isLoadableOrStorableType().


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