class ArrayType
Declaration
class ArrayType : public Type { /* full declaration omitted */ };
Description
Class to represent array types.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:357
Inherits from: Type
Member Variables
- private llvm::Type* ContainedType
- The element type of the array.
- private uint64_t NumElements
- Number of elements in the array.
Inherited from Type:
- protected NumContainedTys = 0
- protected ContainedTys = nullptr
Method Overview
- private ArrayType(llvm::Type * ElType, uint64_t NumEl)
- public ArrayType(const llvm::ArrayType &)
- public static bool classof(const llvm::Type * T)
- public static llvm::ArrayType * get(llvm::Type * ElementType, uint64_t NumElements)
- public llvm::Type * getElementType() const
- public uint64_t getNumElements() const
- public static bool isValidElementType(llvm::Type * ElemTy)
Inherited from Type:
- public canLosslesslyBitCastTo
- public dump
- public getArrayElementType
- public getArrayNumElements
- public getBFloatPtrTy
- public getBFloatTy
- public getContainedType
- public getContext
- public getDoublePtrTy
- public getDoubleTy
- public getExtendedType
- public getFP128PtrTy
- public getFP128Ty
- public getFPMantissaWidth
- public getFloatPtrTy
- public getFloatTy
- public getFloatingPointTy
- 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 getNonOpaquePointerElementType
- 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 getStructElementType
- public getStructName
- public getStructNumElements
- protected getSubclassData
- public getTokenTy
- public getTypeID
- public getVoidTy
- public getWithNewBitWidth
- public getWithNewType
- public getX86_AMXPtrTy
- public getX86_AMXTy
- public getX86_FP80PtrTy
- public getX86_FP80Ty
- public getX86_MMXPtrTy
- public getX86_MMXTy
- public is16bitFPTy
- public isAggregateType
- public isArrayTy
- public isBFloatTy
- public isDoubleTy
- public isEmptyTy
- public isFP128Ty
- public isFPOrFPVectorTy
- public isFirstClassType
- public isFloatTy
- public isFloatingPointTy
- public isFunctionTy
- public isFunctionVarArg
- public isHalfTy
- public isIEEE
- public isIntOrIntVectorTy
- public isIntOrIntVectorTy
- public isIntOrPtrTy
- public isIntegerTy
- public isIntegerTy
- public isLabelTy
- public isMetadataTy
- public isOpaquePointerTy
- public isPPC_FP128Ty
- public isPointerTy
- public isPtrOrPtrVectorTy
- public isSingleValueType
- public isSized
- public isStructTy
- public isTokenTy
- public isVectorTy
- public isVoidTy
- public isX86_AMXTy
- 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
¶ArrayType(llvm::Type* ElType, uint64_t NumEl)
ArrayType(llvm::Type* ElType, uint64_t NumEl)
Declared at: llvm/include/llvm/IR/DerivedTypes.h:363
Parameters
- llvm::Type* ElType
- uint64_t NumEl
¶ArrayType(const llvm::ArrayType&)
ArrayType(const llvm::ArrayType&)
Declared at: llvm/include/llvm/IR/DerivedTypes.h:366
Parameters
- const llvm::ArrayType&
¶static bool classof(const llvm::Type* T)
static bool classof(const llvm::Type* T)
Description
Methods for support type inquiry through isa, cast, and dyn_cast.
Declared at: llvm/include/llvm/IR/DerivedTypes.h:379
Parameters
- const llvm::Type* T
¶static llvm::ArrayType* get(
llvm::Type* ElementType,
uint64_t NumElements)
static llvm::ArrayType* get(
llvm::Type* ElementType,
uint64_t NumElements)
Description
This static method is the primary way to construct an ArrayType
Declared at: llvm/include/llvm/IR/DerivedTypes.h:373
Parameters
- llvm::Type* ElementType
- uint64_t NumElements
¶llvm::Type* getElementType() const
llvm::Type* getElementType() const
Declared at: llvm/include/llvm/IR/DerivedTypes.h:370
¶uint64_t getNumElements() const
uint64_t getNumElements() const
Declared at: llvm/include/llvm/IR/DerivedTypes.h:369
¶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:376
Parameters
- llvm::Type* ElemTy