LLVM API Documentation

llvm::CompositeType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::CompositeType:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual const TypegetTypeAtIndex (const Value *V) const=0
virtual bool indexValid (const Value *V) const=0

Static Public Member Functions

static bool classof (const CompositeType *T)
static bool classof (const Type *T)
 Methods for support type inquiry through isa, cast, and dyn_cast:.

Protected Member Functions

 CompositeType (TypeID id)

Detailed Description

CompositeType - Common super class of ArrayType, StructType, PointerType and PackedType

Definition at line 130 of file DerivedTypes.h.


Constructor & Destructor Documentation

llvm::CompositeType::CompositeType ( TypeID  id  )  [inline, protected]

Definition at line 132 of file DerivedTypes.h.


Member Function Documentation

virtual const Type* llvm::CompositeType::getTypeAtIndex ( const Value V  )  const [pure virtual]

getTypeAtIndex - Given an index value into the type, return the type of the element.

Implemented in llvm::StructType, and llvm::SequentialType.

Referenced by llvm::GetElementPtrInst::getIndexedType(), and llvm::generic_gep_type_iterator< ItTy >::getIndexedType().

virtual bool llvm::CompositeType::indexValid ( const Value V  )  const [pure virtual]

Implemented in llvm::StructType, and llvm::SequentialType.

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

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

Definition at line 142 of file DerivedTypes.h.

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

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::DerivedType.

Reimplemented in llvm::StructType, llvm::SequentialType, llvm::ArrayType, llvm::PackedType, and llvm::PointerType.

Definition at line 143 of file DerivedTypes.h.

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


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