LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::CompositeType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::CompositeType:
Inheritance graph
Collaboration diagram for llvm::CompositeType:
Collaboration graph

List of all members.

Public Member Functions

TypegetTypeAtIndex (const Value *V)
TypegetTypeAtIndex (unsigned Idx)
bool indexValid (const Value *V) const
bool indexValid (unsigned Idx) const

Static Public Member Functions

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

Protected Member Functions

 CompositeType (LLVMContext &C, TypeID tid)

Detailed Description

CompositeType - Common super class of ArrayType, StructType, PointerType and VectorType.

Definition at line 147 of file DerivedTypes.h.

Constructor & Destructor Documentation

llvm::CompositeType::CompositeType ( LLVMContext C,
TypeID  tid 
) [inline, explicit, protected]

Definition at line 149 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 in llvm::PointerType, llvm::VectorType, llvm::ArrayType, llvm::SequentialType, and llvm::StructType.

Definition at line 161 of file DerivedTypes.h.

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

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

Definition at line 630 of file Type.cpp.

References indexValid().

Referenced by advanceToNextLeafType(), firstRealType(), llvm::generic_gep_type_iterator< ItTy >::getIndexedType(), getIndexedTypeInternal(), nextRealType(), and llvm::returnTypeIsEligibleForTailCall().

Definition at line 640 of file Type.cpp.

References indexValid().

Definition at line 665 of file Type.cpp.

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