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 306 of file DerivedTypes.h.
Definition at line 312 of file DerivedTypes.h.
References llvm::Type::ContainedTys, and llvm::Type::NumContainedTys.
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 322 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 319 of file DerivedTypes.h.
References llvm::Type::ContainedTys.
Referenced by BitCastConstantVector(), llvm::ComputeMaskedBits(), llvm::ConstantArray::ConstantArray(), llvm::ConstantFoldCastInstruction(), ConstantFoldGetElementPtrImpl(), llvm::ConstantVector::ConstantVector(), emitGlobalConstantDataSequential(), emitGlobalConstantVector(), llvm::AsmPrinter::EmitGlobalVariable(), llvm::ExecutionEngine::EmitGlobalVariable(), FoldBitCast(), llvm::ConstantArray::get(), llvm::AllocaInst::getAllocatedType(), llvm::Constant::getAllOnesValue(), llvm::getConstantStringInfo(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataSequential::getElementType(), llvm::EVT::getEVT(), llvm::VectorType::getExtendedElementVectorType(), llvm::ConstantInt::getFalse(), llvm::InlineAsm::getFunctionType(), llvm::Function::getFunctionType(), llvm::GetGVTypeString(), getIndexedTypeInternal(), llvm::VectorType::getInteger(), llvm::getMallocAllocatedType(), llvm::JIT::getMemoryForGV(), getNaturalGEPWithOffset(), getOpenCLAlignment(), llvm::DataLayout::getPreferredAlignment(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ConstantInt::getTrue(), llvm::VectorType::getTruncatedElementVectorType(), llvm::DataLayout::getTypeSizeInBits(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::TargetLoweringBase::getValueType(), llvm::MVT::getVT(), HasPadding(), llvm::InsertProfilingInitCall(), llvm::InsertProfilingShutdownCall(), InstallGlobalCtors(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::Type::isEmptyTy(), llvm::MBlazeTargetObjectFile::IsGlobalInSmallSection(), llvm::HexagonTargetObjectFile::IsGlobalInSmallSection(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isHomogeneousAggregate(), llvm::isImageOrSamplerVal(), isLeakCheckerRoot(), llvm::isSafeToLoadUnconditionally(), llvm::ShuffleVectorInst::isValidOperands(), isVectorPromotionViable(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), OptimizeGlobalAddressOfMalloc(), OptimizeIntegerToVectorInsertions(), OptimizeIntToFloatBitCast(), OptimizeVectorResize(), llvm::TargetLowering::ParseConstraints(), PerformHeapAllocSRoA(), llvm::TypePrinting::print(), llvm::AssemblyWriter::printGlobal(), llvm::AssemblyWriter::printInstruction(), llvm::GlobalVariable::setInitializer(), SimplifyGEPInst(), StripPtrCastKeepAS(), TryToShrinkGlobalToBoolean(), llvm::Interpreter::visitAllocaInst(), llvm::ObjectSizeOffsetVisitor::visitArgument(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::ObjectSizeOffsetVisitor::visitGlobalVariable(), llvm::InstCombiner::visitLandingPadInst(), and WriteTypeTable().