LLVM API Documentation

llvm::ArrayType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::ArrayType:

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

Collaboration graph
[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 ArrayTypeget (const Type *ElementType, uint64_t NumElements)
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 321 of file DerivedTypes.h.


Member Function Documentation

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

ArrayType::get - This static method is the primary way to construct an ArrayType

Definition at line 1150 of file Type.cpp.

References DOUT.

Referenced by llvm::ConstantArray::get(), and OptimizeGlobalAddressOfMalloc().

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 1469 of file Type.cpp.

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 1474 of file Type.cpp.

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

Definition at line 341 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 342 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 322 of file DerivedTypes.h.


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



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