LLVM API Documentation

Public Member Functions | Static Public Member Functions
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

Static Public Member Functions

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

Detailed Description

ArrayType - Class to represent array types.

Definition at line 329 of file DerivedTypes.h.


Member Function Documentation

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

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

Reimplemented from llvm::SequentialType.

Definition at line 348 of file DerivedTypes.h.

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

ArrayType * ArrayType::get ( Type ElementType,
uint64_t  NumElements 
) [static]
uint64_t llvm::ArrayType::getNumElements ( ) const [inline]
bool ArrayType::isValidElementType ( Type ElemTy) [static]

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

Definition at line 698 of file Type.cpp.

References llvm::Type::isFunctionTy(), llvm::Type::isLabelTy(), llvm::Type::isMetadataTy(), and llvm::Type::isVoidTy().

Referenced by get().


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