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

Static Public Member Functions

static bool classof (const CompositeType *)
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 VectorType

Definition at line 191 of file DerivedTypes.h.


Constructor & Destructor Documentation

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

Definition at line 193 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::ConstantFoldInsertValueInstruction(), llvm::generic_gep_type_iterator< ItTy >::getIndexedType(), and getIndexedTypeInternal().

virtual const Type* llvm::CompositeType::getTypeAtIndex ( unsigned  Idx  )  const [pure virtual]

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

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

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

Referenced by getIndexedTypeInternal().

virtual bool llvm::CompositeType::indexValid ( unsigned  Idx  )  const [pure virtual]

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

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

Definition at line 205 of file DerivedTypes.h.

static bool llvm::CompositeType::classof ( const Type  )  [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::VectorType, and llvm::PointerType.

Definition at line 206 of file DerivedTypes.h.

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


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



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