LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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


Constructor & Destructor Documentation

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

Definition at line 161 of file DerivedTypes.h.


Member Function Documentation

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

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

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

Definition at line 171 of file DerivedTypes.h.

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().

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

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

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


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