LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
uint64_t | getNumElements () const |
Static Public Member Functions | |
static ArrayType * | get (Type *ElementType, uint64_t NumElements) |
static bool | isValidElementType (Type *ElemTy) |
static bool | classof (const Type *T) |
Methods for support type inquiry through isa, cast, and dyn_cast. |
ArrayType - Class to represent array types.
Definition at line 329 of file DerivedTypes.h.
static bool llvm::ArrayType::classof | ( | const Type * | T | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast.
Reimplemented from llvm::SequentialType.
Definition at line 348 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, and llvm::Type::getTypeID().
ArrayType * ArrayType::get | ( | Type * | ElementType, |
uint64_t | NumElements | ||
) | [static] |
ArrayType::get - This static method is the primary way to construct an ArrayType
Definition at line 685 of file Type.cpp.
References llvm::LLVMContextImpl::ArrayTypes, llvm::Type::getContext(), isValidElementType(), llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::TypeAllocator.
Referenced by appendToGlobalArray(), createLoweredType(), llvm::TypeBuilder< T[N], cross >::get(), llvm::TypeBuilder< T[], cross >::get(), LLVMArrayType(), LLVMConstArray(), OptimizeGlobalAddressOfMalloc(), setUsedInitializer(), upgradeGlobalArray(), llvm::InstCombiner::visitAllocaInst(), and llvm::InstCombiner::visitLandingPadInst().
uint64_t llvm::ArrayType::getNumElements | ( | ) | const [inline] |
Definition at line 345 of file DerivedTypes.h.
Referenced by llvm::ConstantArray::ConstantArray(), llvm::DataLayout::getTypeSizeInBits(), isDereferenceablePointer(), llvm::Type::isEmptyTy(), isHomogeneousAggregate(), isZeroLengthArray(), llvm::TypePrinting::print(), upgradeGlobalArray(), llvm::InstCombiner::visitLandingPadInst(), and WriteTypeTable().
bool ArrayType::isValidElementType | ( | Type * | ElemTy | ) | [static] |
isValidElementType - Return true if the specified type is valid as a element type.
Definition at line 698 of file Type.cpp.
References llvm::Type::isFunctionTy(), llvm::Type::isLabelTy(), llvm::Type::isMetadataTy(), and llvm::Type::isVoidTy().
Referenced by get().