LLVM API Documentation
#include <DerivedTypes.h>
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 > |
Definition at line 416 of file DerivedTypes.h.
| 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] |
PointerType::getUnqual - This constructs a pointer to an object of the specified type in the generic address space (address space zero).
Definition at line 430 of file DerivedTypes.h.
References get().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), CreateArgv(), llvm::DIFactory::DIFactory(), GetHeapSROAValue(), llvm::Module::getOrInsertFunction(), llvm::Module::getOrInsertGlobal(), llvm::ConstantExpr::getSizeOf(), llvm::InlineFunction(), llvm::InsertProfilingInitCall(), PerformHeapAllocSRoA(), llvm::ExecutionEngine::runFunctionAsMain(), and llvm::UpgradeIntrinsicCall().
| unsigned llvm::PointerType::getAddressSpace | ( | ) | const [inline] |
Return the address space of the Pointer type.
Definition at line 435 of file DerivedTypes.h.
Referenced by calcTypeName(), llvm::ConstantFoldGetElementPtr(), getTypeDescription(), InstCombineStoreToCast(), LinkAppendingVars(), LinkGlobals(), RecursiveResolveTypesI(), SRAGlobal(), TypesEqual(), and WriteTypeTable().
| 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.
| 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.
| 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.
friend class TypeMap< PointerValType, PointerType > [friend] |
Definition at line 417 of file DerivedTypes.h.