LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
Type * | getElementType () const |
Static Public Member Functions | |
static bool | classof (const Type *T) |
Methods for support type inquiry through isa, cast, and dyn_cast. | |
Protected Member Functions | |
SequentialType (TypeID TID, Type *ElType) |
SequentialType - This is the superclass of the array, pointer and vector type classes. All of these represent "arrays" in memory. The array type represents a specifically sized array, pointer types are unsized/unknown size arrays, vector types represent specifically sized arrays that allow for use of SIMD instructions. SequentialType holds the common features of all, which stem from the fact that all three lay their components out in memory identically.
Definition at line 303 of file DerivedTypes.h.
Definition at line 309 of file DerivedTypes.h.
References llvm::Type::ContainedTys, and llvm::Type::NumContainedTys.
static bool llvm::SequentialType::classof | ( | const Type * | T | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast.
Reimplemented from llvm::CompositeType.
Reimplemented in llvm::PointerType, llvm::VectorType, and llvm::ArrayType.
Definition at line 319 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, llvm::Type::getTypeID(), llvm::Type::PointerTyID, and llvm::Type::VectorTyID.
Type* llvm::SequentialType::getElementType | ( | ) | const [inline] |
Definition at line 316 of file DerivedTypes.h.
References llvm::Type::ContainedTys.
Referenced by appendToGlobalArray(), BitCastConstantVector(), computeKnownBits(), llvm::ConstantArray::ConstantArray(), llvm::ConstantFoldCastInstruction(), ConstantFoldGetElementPtrImpl(), ConstantFoldVectorCall(), llvm::ConstantVector::ConstantVector(), llvm::GlobalAlias::create(), emitGlobalConstantDataSequential(), emitGlobalConstantVector(), llvm::AsmPrinter::EmitGlobalVariable(), llvm::ExecutionEngine::EmitGlobalVariable(), fixupFPReturnAndCall(), FoldBitCast(), FoldReinterpretLoadFromConstPtr(), llvm::ConstantExpr::getAddrSpaceCast(), llvm::AllocaInst::getAllocatedType(), llvm::Constant::getAllOnesValue(), llvm::getConstantStringInfo(), llvm::ExecutionEngine::getConstantValue(), llvm::VectorType::getDoubleElementsVectorType(), llvm::ConstantDataSequential::getElementType(), llvm::EVT::getEVT(), llvm::VectorType::getExtendedElementVectorType(), llvm::ConstantInt::getFalse(), llvm::InlineAsm::getFunctionType(), llvm::Function::getFunctionType(), llvm::VectorType::getHalfElementsVectorType(), GetHeapSROAValue(), getIndexedTypeInternal(), llvm::VectorType::getInteger(), llvm::getMallocAllocatedType(), getNaturalGEPWithOffset(), getOpenCLAlignment(), llvm::DataLayout::getPreferredAlignment(), llvm::NVPTXTargetLowering::getPrototype(), getStrideFromPointer(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::ConstantInt::getTrue(), llvm::VectorType::getTruncatedElementVectorType(), llvm::DataLayout::getTypeSizeInBits(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::TargetLoweringBase::getValueType(), llvm::MVT::getVT(), HandleByValArgument(), HasPadding(), INITIALIZE_PASS(), InstCombineLoadCast(), InstCombineStoreToCast(), isArray(), llvm::Type::isEmptyTy(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), llvm::HexagonTargetObjectFile::IsGlobalInSmallSection(), isHomogeneousAggregate(), llvm::isImageOrSamplerVal(), isLeakCheckerRoot(), llvm::isSafeToLoadUnconditionally(), llvm::ShuffleVectorInst::isValidOperands(), isVectorPromotionViableForSlice(), isZero(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::NVPTXTargetLowering::LowerCall(), llvm::FastISel::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), OptimizeGlobalAddressOfMalloc(), OptimizeIntegerToVectorInsertions(), OptimizeIntToFloatBitCast(), OptimizeVectorResize(), llvm::TargetLowering::ParseConstraints(), PerformHeapAllocSRoA(), llvm::TypePrinting::print(), llvm::AssemblyWriter::printGlobal(), llvm::AssemblyWriter::printInstruction(), llvm::GlobalVariable::setInitializer(), SimplifyGEPInst(), StripPtrCastKeepAS(), TryToShrinkGlobalToBoolean(), upgradeGlobalArray(), llvm::InstCombiner::visitAddrSpaceCast(), llvm::Interpreter::visitAllocaInst(), llvm::ObjectSizeOffsetVisitor::visitArgument(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::ObjectSizeOffsetVisitor::visitGlobalVariable(), llvm::InstCombiner::visitLandingPadInst(), and WriteTypeTable().