LLVM API Documentation

llvm::ArrayType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::ArrayType:
[legend]
Collaboration diagram for llvm::ArrayType:
[legend]

List of all members.

Public Member Functions

uint64_t getNumElements () const
virtual void refineAbstractType (const DerivedType *OldTy, const Type *NewTy)
virtual void typeBecameConcrete (const DerivedType *AbsTy)

Static Public Member Functions

static ArrayType * get (const Type *ElementType, uint64_t NumElements)
static bool isValidElementType (const Type *ElemTy)
static bool classof (const ArrayType *)
static bool classof (const Type *T)
 Methods for support type inquiry through isa, cast, and dyn_cast:.

Friends

class TypeMap< ArrayValType, ArrayType >


Detailed Description

ArrayType - Class to represent array types

Definition at line 356 of file DerivedTypes.h.


Member Function Documentation

ArrayType * ArrayType::get ( const Type *  ElementType,
uint64_t  NumElements 
) [static]

bool ArrayType::isValidElementType ( const Type *  ElemTy  )  [static]

isValidElementType - Return true if the specified type is valid as a element type.

Definition at line 830 of file Type.cpp.

References llvm::Type::getContext(), llvm::Type::getLabelTy(), llvm::Type::getMetadataTy(), and llvm::Type::getVoidTy().

Referenced by get().

uint64_t llvm::ArrayType::getNumElements (  )  const [inline]

void ArrayType::refineAbstractType ( const DerivedType *  OldTy,
const Type *  NewTy 
) [virtual]

refineAbstractType - The callback method invoked when an abstract type is resolved to another type. An object must override this method to update its internal state to reference NewType instead of OldType.

Reimplemented from llvm::Type.

Definition at line 1148 of file Type.cpp.

References llvm::LLVMContextImpl::ArrayTypes, llvm::Type::getContext(), and llvm::LLVMContext::pImpl.

void ArrayType::typeBecameConcrete ( const DerivedType *  AbsTy  )  [virtual]

The other case which AbstractTypeUsers must be aware of is when a type makes the transition from being abstract (where it has clients on it's AbstractTypeUsers list) to concrete (where it does not). This method notifies ATU's when this occurs for a type.

Reimplemented from llvm::Type.

Definition at line 1154 of file Type.cpp.

References llvm::LLVMContextImpl::ArrayTypes, llvm::Type::getContext(), and llvm::LLVMContext::pImpl.

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

Definition at line 380 of file DerivedTypes.h.

static bool llvm::ArrayType::classof ( const Type *   )  [inline, static]

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

Reimplemented from llvm::SequentialType.

Definition at line 381 of file DerivedTypes.h.

References llvm::Type::ArrayTyID, and llvm::Type::getTypeID().


Friends And Related Function Documentation

friend class TypeMap< ArrayValType, ArrayType > [friend]

Definition at line 357 of file DerivedTypes.h.


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