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 | isValidElementType (const Type *ElemTy) |
| 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 459 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 928 of file Type.cpp.
References DOUT, llvm::Type::getContext(), llvm::Type::getVoidTy(), isValidElementType(), L, llvm::LLVMContext::pImpl, llvm::LLVMContextImpl::PointerTypes, and llvm::LLVMContextImpl::TypeMapLock.
Referenced by llvm::ConstantFoldGetElementPtr(), llvm::findDbgGlobalDeclare(), llvm::ConstantExpr::getGetElementPtr(), llvm::Type::getPointerTo(), 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 473 of file DerivedTypes.h.
References get().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), CreateArgv(), llvm::DIFactory::DIFactory(), llvm::PointerTracking::doInitialization(), llvm::TypeBuilder< T *, cross >::get(), llvm::ScalarEvolution::getAllocSizeExpr(), llvm::ScalarEvolution::getFieldOffsetExpr(), GetHeapSROAValue(), llvm::ConstantExpr::getOffsetOf(), llvm::Module::getOrInsertFunction(), llvm::Module::getOrInsertGlobal(), llvm::ConstantExpr::getSizeOf(), llvm::InlineFunction(), llvm::InsertProfilingInitCall(), PerformHeapAllocSRoA(), llvm::MSILWriter::printIntrinsicCall(), llvm::MSILWriter::printLocalVariables(), llvm::MSILWriter::printVAArgInstruction(), llvm::ExecutionEngine::runFunctionAsMain(), and llvm::UpgradeIntrinsicCall().
isValidElementType - Return true if the specified type is valid as a element type.
Definition at line 956 of file Type.cpp.
References llvm::Type::getContext(), llvm::Type::getLabelTy(), llvm::Type::getMetadataTy(), and llvm::Type::getVoidTy().
Referenced by get().
| unsigned llvm::PointerType::getAddressSpace | ( | ) | const [inline] |
Return the address space of the Pointer type.
Definition at line 482 of file DerivedTypes.h.
Referenced by llvm::ConstantFoldGetElementPtr(), llvm::GlobalAddressSDNode::getAddressSpace(), InstCombineLoadCast(), InstCombineStoreToCast(), isEquivalentType(), LinkAppendingVars(), LinkGlobals(), RecursiveResolveTypesI(), llvm::PIC16TargetObjectFile::SelectSectionForGlobal(), 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.
Definition at line 1193 of file Type.cpp.
References llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::PointerTypes.
| 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.
Definition at line 1199 of file Type.cpp.
References llvm::Type::getContext(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::PointerTypes.
| static bool llvm::PointerType::classof | ( | const PointerType * | ) | [inline, static] |
Definition at line 489 of file DerivedTypes.h.
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::SequentialType.
Definition at line 490 of file DerivedTypes.h.
References llvm::Type::getTypeID(), and llvm::Type::PointerTyID.
friend class TypeMap< PointerValType, PointerType > [friend] |
Definition at line 460 of file DerivedTypes.h.