class ArrayType

Declaration

class ArrayType : public Type { /* full declaration omitted */ };

Description

Class to represent array types.

Declared at: llvm/include/llvm/IR/DerivedTypes.h:357

Inherits from: Type

Member Variables

private llvm::Type* ContainedType
The element type of the array.
private uint64_t NumElements
Number of elements in the array.

Inherited from Type:

protected NumContainedTys = 0
protected ContainedTys = nullptr

Method Overview

Inherited from Type:

Methods

ArrayType(llvm::Type* ElType, uint64_t NumEl)

Declared at: llvm/include/llvm/IR/DerivedTypes.h:363

Parameters

llvm::Type* ElType
uint64_t NumEl

ArrayType(const llvm::ArrayType&)

Declared at: llvm/include/llvm/IR/DerivedTypes.h:366

Parameters

const llvm::ArrayType&

static bool classof(const llvm::Type* T)

Description

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

Declared at: llvm/include/llvm/IR/DerivedTypes.h:379

Parameters

const llvm::Type* T

static llvm::ArrayType* get(
    llvm::Type* ElementType,
    uint64_t NumElements)

Description

This static method is the primary way to construct an ArrayType

Declared at: llvm/include/llvm/IR/DerivedTypes.h:373

Parameters

llvm::Type* ElementType
uint64_t NumElements

llvm::Type* getElementType() const

Declared at: llvm/include/llvm/IR/DerivedTypes.h:370

uint64_t getNumElements() const

Declared at: llvm/include/llvm/IR/DerivedTypes.h:369

static bool isValidElementType(llvm::Type* ElemTy)

Description

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

Declared at: llvm/include/llvm/IR/DerivedTypes.h:376

Parameters

llvm::Type* ElemTy