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 332 of file DerivedTypes.h.
Methods for support type inquiry through isa, cast, and dyn_cast.
Reimplemented from llvm::SequentialType.
Definition at line 351 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, and llvm::Type::getTypeID().
ArrayType::get - This static method is the primary way to construct an ArrayType
Definition at line 683 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(), InstallGlobalCtors(), llvm::IntegersSubset::IntegersSubset(), LLVMArrayType(), LLVMConstArray(), OptimizeGlobalAddressOfMalloc(), llvm::InstCombiner::visitAllocaInst(), and llvm::InstCombiner::visitLandingPadInst().
| uint64_t llvm::ArrayType::getNumElements | ( | ) | const [inline] |
Definition at line 348 of file DerivedTypes.h.
Referenced by llvm::ConstantArray::ConstantArray(), llvm::DataLayout::getTypeSizeInBits(), isDereferenceablePointer(), llvm::Type::isEmptyTy(), isHomogeneousAggregate(), isZeroLengthArray(), llvm::TypePrinting::print(), llvm::InstCombiner::visitLandingPadInst(), and WriteTypeTable().
isValidElementType - Return true if the specified type is valid as a element type.
Definition at line 696 of file Type.cpp.
References llvm::Type::isFunctionTy(), llvm::Type::isLabelTy(), llvm::Type::isMetadataTy(), and llvm::Type::isVoidTy().
Referenced by get().