LLVM API Documentation
#include <DerivedTypes.h>


Public Member Functions | |
| unsigned | getAddressSpace () const |
| Return the address space of the Pointer type. | |
Static Public Member Functions | |
| static PointerType * | get (Type *ElementType, unsigned AddressSpace) |
| static PointerType * | getUnqual (Type *ElementType) |
| static bool | isValidElementType (Type *ElemTy) |
| static bool | classof (const Type *T) |
| Implement support type inquiry through isa, cast, and dyn_cast. | |
PointerType - Class to represent pointers.
Definition at line 425 of file DerivedTypes.h.
Implement support type inquiry through isa, cast, and dyn_cast.
Reimplemented from llvm::SequentialType.
Definition at line 448 of file DerivedTypes.h.
References llvm::Type::getTypeID(), and llvm::Type::PointerTyID.
| PointerType * PointerType::get | ( | 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 734 of file Type.cpp.
References llvm::LLVMContextImpl::ASPointerTypes, llvm::Type::getContext(), isValidElementType(), llvm::LLVMContext::pImpl, llvm::LLVMContextImpl::PointerTypes, and llvm::LLVMContextImpl::TypeAllocator.
Referenced by ConstantFoldGetElementPtrImpl(), convertMemSetToLoop(), DecodeFixedType(), getAccessType(), getFoldedAlignOf(), getFoldedSizeOf(), llvm::GetElementPtrInst::getGEPReturnType(), GetLoadValueForLoad(), llvm::Type::getPointerTo(), InstCombineStoreToCast(), LLVMPointerType(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), and SimplifyGEPInst().
| unsigned llvm::PointerType::getAddressSpace | ( | ) | const [inline] |
Return the address space of the Pointer type.
Definition at line 445 of file DerivedTypes.h.
References llvm::Type::getSubclassData().
Referenced by canDemoteGlobalVar(), ConstantFoldGetElementPtrImpl(), llvm::GlobalAddressSDNode::getAddressSpace(), llvm::SelectionDAG::getGlobalAddress(), INITIALIZE_PASS(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::TypePrinting::print(), llvm::AssemblyWriter::printGlobal(), SimplifyGEPInst(), SRAGlobal(), TryToShrinkGlobalToBoolean(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitGetElementPtrInst(), and WriteTypeTable().
| static PointerType* llvm::PointerType::getUnqual | ( | 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 436 of file DerivedTypes.h.
References llvm::IntegerType::get().
Referenced by AnalyzeLoadFromClobberingMemInst(), appendToGlobalArray(), createMalloc(), FoldReinterpretLoadFromConstPtr(), GenerateARCBBEntranceAnnotation(), GenerateARCBBTerminatorAnnotation(), llvm::InlineAsm::get(), llvm::TypeBuilder< T *, cross >::get(), llvm::ScalarEvolution::getAlignOfExpr(), GetHeapSROAValue(), getMemCmpLoad(), GetMemInstValueForLoad(), llvm::ConstantExpr::getOffsetOf(), llvm::ScalarEvolution::getOffsetOfExpr(), llvm::Module::getOrInsertFunction(), llvm::Module::getOrInsertGlobal(), llvm::ConstantExpr::getSizeOf(), llvm::ScalarEvolution::getSizeOfExpr(), InstallGlobalCtors(), llvm::SelectionDAGBuilder::LowerCallTo(), PerformHeapAllocSRoA(), llvm::UpgradeIntrinsicCall(), and llvm::InstCombiner::visitCallInst().
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().