LLVM API Documentation

llvm::SequentialType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::SequentialType:

Inheritance graph
[legend]
Collaboration diagram for llvm::SequentialType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const TypegetElementType () const
virtual bool indexValid (const Value *V) const
virtual const TypegetTypeAtIndex (const Value *V) const

Static Public Member Functions

static bool classof (const SequentialType *T)
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)

Detailed Description

SequentialType - This is the superclass of the array, pointer and packed type classes. All of these represent "arrays" in memory. The array type represents a specifically sized array, pointer types are unsized/unknown size arrays, packed 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 212 of file DerivedTypes.h.


Constructor & Destructor Documentation

llvm::SequentialType::SequentialType ( TypeID  TID,
const Type ElType 
) [inline, protected]

Definition at line 216 of file DerivedTypes.h.

References llvm::Type::ContainedTys.


Member Function Documentation

const Type* llvm::SequentialType::getElementType (  )  const [inline]

Definition at line 222 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

Referenced by DIDeserializeVisitor::Apply(), calcTypeName(), CastConstantPacked(), llvm::ConstantFoldCastInstruction(), llvm::ConvertExpressionToType(), ConvertOperandToType(), llvm::FunctionLoweringInfo::CreateRegForValue(), llvm::ExecutionEngine::EmitGlobalVariable(), EvaluateFunction(), llvm::Interpreter::executeGEPOperation(), llvm::ExpressionConvertibleToType(), FindScalarElement(), llvm::PointerValType::get(), llvm::PackedValType::get(), llvm::ArrayValType::get(), llvm::AllocationInst::getAllocatedType(), llvm::InlineAsm::getFunctionType(), llvm::Function::getFunctionType(), llvm::GetElementPtrInst::getIndexedType(), GetKnownAlignment(), llvm::SelectionDAGLowering::getLoadFrom(), llvm::JIT::getOrEmitGlobalVariable(), llvm::TargetLowering::getPackedTypeBreakdown(), llvm::getPointedToComposite(), llvm::AsmPrinter::getPreferredAlignmentLog(), getTypeDescription(), getTypeInfo(), getValNonImprovising(), llvm::SelectionDAGLowering::getValue(), llvm::InsertProfilingInitCall(), InstallGlobalCtors(), LinkAppendingVars(), llvm::TargetLowering::LowerArguments(), llvm::TargetLowering::LowerCallTo(), MergeInType(), llvm::DSNode::mergeTypeInfo(), OperandConvertibleToType(), OptimizeGlobalAddressOfMalloc(), llvm::BytecodeReader::ParseConstantPoolValue(), llvm::BytecodeReader::ParseInstruction(), llvm::BytecodeReader::ParseModule(), llvm::BytecodeReader::ParseStringConstants(), ProcessGlobalsWithSameName(), RecursiveResolveTypesI(), SCCPSolver::TrackValueOfGlobalVariable(), TypesEqual(), llvm::Interpreter::visitAllocationInst(), llvm::SelectionDAGLowering::visitBinary(), llvm::SelectionDAGLowering::visitCall(), llvm::SelectionDAGLowering::visitCast(), llvm::SelectionDAGLowering::visitMalloc(), and llvm::SelectionDAGLowering::visitTargetIntrinsic().

bool SequentialType::indexValid ( const Value V  )  const [virtual]

Implements llvm::CompositeType.

Definition at line 1419 of file Type.cpp.

References llvm::Type::getTypeID(), llvm::Type::IntTyID, llvm::Type::LongTyID, Ty, llvm::Type::UIntTyID, llvm::Type::ULongTyID, and V.

Referenced by llvm::GetElementPtrInst::getIndexedType().

virtual const Type* llvm::SequentialType::getTypeAtIndex ( const Value V  )  const [inline, virtual]

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 229 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

static bool llvm::SequentialType::classof ( const SequentialType T  )  [inline, static]

Definition at line 234 of file DerivedTypes.h.

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::ArrayType, llvm::PackedType, and llvm::PointerType.

Definition at line 235 of file DerivedTypes.h.

References llvm::Type::ArrayTyID, llvm::Type::getTypeID(), llvm::Type::PackedTyID, llvm::Type::PointerTyID, and T.


The documentation for this class was generated from the following files: