LLVM API Documentation
#include <DerivedTypes.h>
Inheritance diagram for llvm::PointerType:
Public Member Functions | |
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) |
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 > |
Definition at line 347 of file DerivedTypes.h.
|
Definition at line 422 of file Type.cpp. References llvm::Type::isAbstract(), and llvm::Type::setAbstract(). |
|
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. |
|
Definition at line 368 of file DerivedTypes.h. |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 348 of file DerivedTypes.h. |