LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
| const Type * | getElementType () const |
| virtual bool | indexValid (const Value *V) const |
| virtual bool | indexValid (unsigned) const |
| virtual const Type * | getTypeAtIndex (const Value *) const |
| virtual const Type * | getTypeAtIndex (unsigned) const |
Static Public Member Functions | |
| static bool | classof (const SequentialType *) |
| static bool | classof (const Type *T) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
Protected Member Functions | |
| SequentialType (TypeID TID, const Type *ElType) | |
Definition at line 312 of file DerivedTypes.h.
Definition at line 320 of file DerivedTypes.h.
References llvm::Type::ContainedTys, and llvm::Type::NumContainedTys.
| const Type* llvm::SequentialType::getElementType | ( | ) | const [inline] |
Definition at line 327 of file DerivedTypes.h.
References llvm::Type::ContainedTys.
Referenced by AddModuleTypesToPrinter(), BitCastConstantVector(), CompareTypes(), llvm::ComputeMaskedBits(), llvm::ConstantArray::ConstantArray(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldInstOperands(), llvm::ConstantVector::ConstantVector(), llvm::ExecutionEngine::EmitGlobalVariable(), EvaluateFunction(), llvm::Interpreter::executeGEPOperation(), FindScalarElement(), llvm::AllocationInst::getAllocatedType(), llvm::PointerTracking::getAllocationElementCount(), llvm::Constant::getAllOnesValue(), llvm::GetConstantStringInfo(), llvm::EVT::getEVT(), llvm::VectorType::getExtendedElementVectorType(), llvm::InlineAsm::getFunctionType(), llvm::Function::getFunctionType(), llvm::GetElementPtrInst::getIndexedType(), getIndexedTypeInternal(), llvm::VectorType::getInteger(), llvm::JIT::getMemoryForGV(), llvm::ExecutionEngine::getMemoryForGV(), llvm::TargetData::getPreferredAlignment(), GetStringLengthH(), llvm::VectorType::getTruncatedElementVectorType(), llvm::TargetData::getTypeSizeInBits(), llvm::SelectionDAGLowering::getValue(), llvm::Constant::getVectorElements(), HasPadding(), llvm::InsertProfilingInitCall(), InstallGlobalCtors(), InstCombineLoadCast(), InstCombineStoreToCast(), IsConstantOffsetFromGlobal(), isEquivalentType(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isObjectSmallerThan(), llvm::ShuffleVectorInst::isValidOperands(), LinkAppendingVars(), LinkGlobals(), llvm::TargetLowering::LowerCallTo(), llvm::SelectionDAGLowering::LowerCallTo(), OptimizeGlobalAddressOfMalloc(), PerformHeapAllocSRoA(), llvm::MSILWriter::printFunctionCall(), RecursiveResolveTypesI(), TryToShrinkGlobalToBoolean(), TypesEqual(), llvm::Interpreter::visitAllocationInst(), WriteInstruction(), and WriteTypeTable().
Implements llvm::CompositeType.
Definition at line 1204 of file Type.cpp.
References llvm::Value::getType().
Referenced by llvm::GetElementPtrInst::getIndexedType().
getTypeAtIndex - Given an index value into the type, return the type of the element. For sequential types, there is only one subtype...
Implements llvm::CompositeType.
Definition at line 337 of file DerivedTypes.h.
References llvm::Type::ContainedTys.
Implements llvm::CompositeType.
Definition at line 340 of file DerivedTypes.h.
References llvm::Type::ContainedTys.
| static bool llvm::SequentialType::classof | ( | const SequentialType * | ) | [inline, static] |
Definition at line 345 of file DerivedTypes.h.
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::CompositeType.
Reimplemented in llvm::ArrayType, llvm::VectorType, and llvm::PointerType.
Definition at line 346 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, llvm::Type::getTypeID(), llvm::Type::PointerTyID, and llvm::Type::VectorTyID.