class ArrayType

Declaration

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

Description

Class to represent array types.

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

Inherits from: SequentialType

Member Variables

Inherited from Type:

protected NumContainedTys = 0
protected ContainedTys = nullptr

Method Overview

  • public ArrayType(const llvm::ArrayType &)
  • public static bool classof(const llvm::Type * T)
  • public static llvm::ArrayType * get(llvm::Type * ElementType, uint64_t NumElements)
  • public static bool isValidElementType(llvm::Type * ElemTy)

Inherited from SequentialType:

Inherited from CompositeType:

Inherited from Type:

Methods

ArrayType(const llvm::ArrayType&)

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

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:422

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:416

Parameters

llvm::Type* ElementType
uint64_t NumElements

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:419

Parameters

llvm::Type* ElemTy