LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
Type * | getTypeAtIndex (const Value *V) |
Type * | getTypeAtIndex (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) |
CompositeType - Common super class of ArrayType, StructType, PointerType and VectorType.
Definition at line 144 of file DerivedTypes.h.
llvm::CompositeType::CompositeType | ( | LLVMContext & | C, |
TypeID | tid | ||
) | [inline, explicit, protected] |
Definition at line 146 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 in llvm::PointerType, llvm::VectorType, llvm::ArrayType, llvm::SequentialType, and llvm::StructType.
Definition at line 158 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, llvm::Type::getTypeID(), llvm::Type::PointerTyID, llvm::Type::StructTyID, and llvm::Type::VectorTyID.
Type * CompositeType::getTypeAtIndex | ( | const Value * | V | ) |
getTypeAtIndex - Given an index value into the type, return the type of the element.
Definition at line 633 of file Type.cpp.
References indexValid().
Referenced by advanceToNextLeafType(), firstRealType(), llvm::generic_gep_type_iterator< ItTy >::getIndexedType(), getIndexedTypeInternal(), nextRealType(), and llvm::returnTypeIsEligibleForTailCall().
Type * CompositeType::getTypeAtIndex | ( | unsigned | Idx | ) |
Definition at line 643 of file Type.cpp.
References indexValid().
bool CompositeType::indexValid | ( | const Value * | V | ) | const |
Definition at line 651 of file Type.cpp.
References llvm::CallingConv::C, llvm::dyn_cast(), llvm::Type::getScalarType(), llvm::Constant::getSplatValue(), llvm::Value::getType(), llvm::ConstantInt::getZExtValue(), llvm::Type::isIntegerTy(), llvm::Type::isIntOrIntVectorTy(), and llvm::Type::isVectorTy().
Referenced by getIndexedTypeInternal(), and getTypeAtIndex().
bool CompositeType::indexValid | ( | unsigned | Idx | ) | const |