LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::PointerType Class Reference

#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

virtual void refineAbstractType (const DerivedType *OldTy, const Type *NewTy)
virtual void typeBecameConcrete (const DerivedType *AbsTy)

Static Public Member Functions

static PointerTypeget (const Type *ElementType)
 PointerType::get - This is the only way to construct a new pointer type.
static bool classof (const PointerType *T)
static bool classof (const Type *T)
 Methods for support type inquiry through isa, cast, and dyn_cast:.

Protected Member Functions

 PointerType (const Type *ElType)

Friends

class TypeMap< PointerValType, PointerType >

Detailed Description

PointerType - Class to represent pointers

Definition at line 347 of file DerivedTypes.h.


Constructor & Destructor Documentation

PointerType::PointerType const Type ElType  )  [protected]
 

Definition at line 422 of file Type.cpp.

References llvm::Type::isAbstract(), and llvm::Type::setAbstract().


Member Function Documentation

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

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

Reimplemented from llvm::SequentialType.

Definition at line 369 of file DerivedTypes.h.

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

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

Definition at line 368 of file DerivedTypes.h.

PointerType * PointerType::get const Type ElementType  )  [static]
 

PointerType::get - This is the only way to construct a new pointer type.

Definition at line 1079 of file Type.cpp.

References llvm::TypeMap< ValType, TypeClass >::add(), and llvm::TypeMap< ValType, TypeClass >::get().

Referenced by llvm::ConstantFoldGetElementPtr(), llvm::ConvertExpressionToType(), ConvertOperandToType(), CreateArgv(), llvm::ExpressionConvertibleToType(), llvm::Module::getFunction(), llvm::ConstantExpr::getGetElementPtr(), llvm::Module::getGlobalVariable(), llvm::Module::getMainFunction(), llvm::Module::getOrInsertFunction(), llvm::ConstantExpr::getSizeOf(), llvm::getTriggerCode(), llvm::InsertProfilingInitCall(), OperandConvertibleToType(), llvm::BytecodeReader::ParseType(), and llvm::ProfilePaths::runOnFunction().

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.

Implements llvm::AbstractTypeUser.

Definition at line 1281 of file Type.cpp.

References llvm::TypeMap< ValType, TypeClass >::finishRefinement().

Referenced by typeBecameConcrete().

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.

Implements llvm::AbstractTypeUser.

Definition at line 1286 of file Type.cpp.

References refineAbstractType().


Friends And Related Function Documentation

friend class TypeMap< PointerValType, PointerType > [friend]
 

Definition at line 348 of file DerivedTypes.h.


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