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 bool indexValid (unsigned) const
virtual const TypegetTypeAtIndex (const Value *) const
virtual const TypegetTypeAtIndex (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)


Detailed Description

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


Constructor & Destructor Documentation

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

Definition at line 285 of file DerivedTypes.h.

References llvm::Type::ContainedTys, and llvm::Type::NumContainedTys.


Member Function Documentation

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

Definition at line 292 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

Referenced by BitCastConstantVector(), calcTypeName(), llvm::ComputeMaskedBits(), llvm::ConstantArray::ConstantArray(), llvm::ConstantFoldCastInstruction(), llvm::ConstantVector::ConstantVector(), llvm::ExecutionEngine::EmitGlobalVariable(), EvaluateFunction(), EvalVectorOp(), llvm::Interpreter::executeGEPOperation(), FindScalarElement(), llvm::AllocationInst::getAllocatedType(), llvm::ConstantVector::getAllOnesValue(), llvm::GetConstantStringInfo(), llvm::InlineAsm::getFunctionType(), llvm::Function::getFunctionType(), llvm::GetElementPtrInst::getIndexedType(), getIndexedTypeInternal(), llvm::VectorType::getInteger(), llvm::MVT::getMVT(), llvm::JIT::getOrEmitGlobalVariable(), llvm::TargetData::getPreferredAlignment(), GetStringLengthH(), getTypeDescription(), llvm::TargetData::getTypeSizeInBits(), llvm::SelectionDAGLowering::getValue(), llvm::Constant::getVectorElements(), llvm::ConstantExpr::getVFCmp(), llvm::ConstantExpr::getVICmp(), llvm::InsertProfilingInitCall(), InstallGlobalCtors(), IsConstantOffsetFromGlobal(), isObjectSmallerThan(), llvm::ShuffleVectorInst::isValidOperands(), LinkAppendingVars(), LinkGlobals(), llvm::TargetLowering::LowerArguments(), llvm::TargetLowering::LowerCallTo(), llvm::SelectionDAGLowering::LowerCallTo(), llvm::ELFTargetAsmInfo::MergeableStringSection(), MergeInType(), OptimizeGlobalAddressOfMalloc(), RecursiveResolveTypesI(), llvm::MipsTargetAsmInfo::SectionKindForGlobal(), TryToShrinkGlobalToBoolean(), TypesEqual(), llvm::Interpreter::visitAllocationInst(), WriteInstruction(), and WriteTypeTable().

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

Implements llvm::CompositeType.

Definition at line 1517 of file Type.cpp.

References llvm::Value::getType().

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

virtual bool llvm::SequentialType::indexValid ( unsigned   )  const [inline, virtual]

Implements llvm::CompositeType.

Definition at line 295 of file DerivedTypes.h.

virtual const Type* llvm::SequentialType::getTypeAtIndex ( const Value  )  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 302 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

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

Implements llvm::CompositeType.

Definition at line 305 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

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

Definition at line 310 of file DerivedTypes.h.

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

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

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


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.