class PointerType
Declaration
class PointerType : public Type { /* full declaration omitted */ };
Description
Class to represent pointers.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:579
Inherits from: Type
Member Variables
Inherited from Type:
- protected NumContainedTys = 0
- protected ContainedTys = nullptr
Method Overview
- public PointerType(const llvm::PointerType &)
- public static bool classof(const llvm::Type * T)
- public static llvm::PointerType * get(llvm::Type * ElementType, unsigned int AddressSpace)
- public inline unsigned int getAddressSpace() const
- public llvm::Type * getElementType() const
- public static llvm::PointerType * getUnqual(llvm::Type * ElementType)
- public static bool isLoadableOrStorableType(llvm::Type * ElemTy)
- public static bool isValidElementType(llvm::Type * ElemTy)
Inherited from Type:
- public canLosslesslyBitCastTo
- public dump
- public getArrayElementType
- public getArrayNumElements
- public getContainedType
- public getContext
- public getDoublePtrTy
- public getDoubleTy
- public getExtendedType
- public getFP128PtrTy
- public getFP128Ty
- public getFPMantissaWidth
- public getFloatPtrTy
- public getFloatTy
- public getFltSemantics
- public getFunctionNumParams
- public getFunctionParamType
- public getHalfPtrTy
- public getHalfTy
- public getInt128Ty
- public getInt16PtrTy
- public getInt16Ty
- public getInt1PtrTy
- public getInt1Ty
- public getInt32PtrTy
- public getInt32Ty
- public getInt64PtrTy
- public getInt64Ty
- public getInt8PtrTy
- public getInt8Ty
- public getIntNPtrTy
- public getIntNTy
- public getIntegerBitWidth
- public getLabelTy
- public getMetadataTy
- public getNumContainedTypes
- public getPPC_FP128PtrTy
- public getPPC_FP128Ty
- public getPointerAddressSpace
- public getPointerElementType
- public getPointerTo
- public getPrimitiveSizeInBits
- public getPrimitiveType
- public getScalarSizeInBits
- public getScalarTy
- public getScalarType
- public getSequentialElementType
- public getStructElementType
- public getStructName
- public getStructNumElements
- protected getSubclassData
- public getTokenTy
- public getTypeID
- public getVectorElementCount
- public getVectorElementType
- public getVectorIsScalable
- public getVectorNumElements
- public getVoidTy
- public getWithNewBitWidth
- public getX86_FP80PtrTy
- public getX86_FP80Ty
- public getX86_MMXPtrTy
- public getX86_MMXTy
- public isAggregateType
- public isArrayTy
- public isDoubleTy
- public isEmptyTy
- public isFP128Ty
- public isFPOrFPVectorTy
- public isFirstClassType
- public isFloatTy
- public isFloatingPointTy
- public isFunctionTy
- public isFunctionVarArg
- public isHalfTy
- public isIntOrIntVectorTy
- public isIntOrIntVectorTy
- public isIntOrPtrTy
- public isIntegerTy
- public isIntegerTy
- public isLabelTy
- public isMetadataTy
- public isPPC_FP128Ty
- public isPointerTy
- public isPtrOrPtrVectorTy
- protected isSequentialType
- public isSingleValueType
- public isSized
- public isStructTy
- public isTokenTy
- public isVectorTy
- public isVoidTy
- public isX86_FP80Ty
- public isX86_MMXTy
- public print
- protected setSubclassData
- public subtype_begin
- public subtype_end
- public subtype_rbegin
- public subtype_rend
- public subtypes
Methods
¶PointerType(const llvm::PointerType&)
PointerType(const llvm::PointerType&)
Declared at: llvm/include/llvm/IR/DerivedTypes.h:585
Parameters
- const llvm::PointerType&
¶static bool classof(const llvm::Type* T)
static bool classof(const llvm::Type* T)
Description
Implement support type inquiry through isa, cast, and dyn_cast.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:610
Parameters
- const llvm::Type* T
¶static llvm::PointerType* get(
llvm::Type* ElementType,
unsigned int AddressSpace)
static llvm::PointerType* get(
llvm::Type* ElementType,
unsigned int AddressSpace)
Description
This constructs a pointer to an object of the specified type in a numbered address space.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:590
Parameters
- llvm::Type* ElementType
- unsigned int AddressSpace
¶inline unsigned int getAddressSpace() const
inline unsigned int getAddressSpace() const
Description
Return the address space of the Pointer type.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:607
¶llvm::Type* getElementType() const
llvm::Type* getElementType() const
Declared at: llvm/include/llvm/IR/DerivedTypes.h:598
¶static llvm::PointerType* getUnqual(
llvm::Type* ElementType)
static llvm::PointerType* getUnqual(
llvm::Type* ElementType)
Description
This constructs a pointer to an object of the specified type in the generic address space (address space zero).
Declared at: llvm/include/llvm/IR/DerivedTypes.h:594
Parameters
- llvm::Type* ElementType
¶static bool isLoadableOrStorableType(
llvm::Type* ElemTy)
static bool isLoadableOrStorableType(
llvm::Type* ElemTy)
Description
Return true if we can load or store from a pointer to this type.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:604
Parameters
- llvm::Type* ElemTy
¶static bool isValidElementType(llvm::Type* ElemTy)
static bool isValidElementType(llvm::Type* ElemTy)
Description
Return true if the specified type is valid as a element type.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:601
Parameters
- llvm::Type* ElemTy