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

#include <DerivedTypes.h>

Inheritance diagram for llvm::PointerType:
Inheritance graph
Collaboration diagram for llvm::PointerType:
Collaboration graph

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)
static PointerTypegetUnqual (Type *ElementType)
static bool isValidElementType (Type *ElemTy)
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 471 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]
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().

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