class SequentialType

Declaration

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

Description

This is the superclass of the array and vector type classes. Both of these represent "arrays" in memory. The array type represents a specifically sized array, and the vector type represents a specifically sized array that allows for use of SIMD instructions. SequentialType holds the common features of both, which stem from the fact that both lay their components out in memory identically.

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

Inherits from: CompositeType

Member Variables

Inherited from Type:

protected NumContainedTys = 0
protected ContainedTys = nullptr

Method Overview

Inherited from CompositeType:

Inherited from Type:

Methods

SequentialType(llvm::Type::TypeID TID,
               llvm::Type* ElType,
               uint64_t NumElements)

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

Parameters

llvm::Type::TypeID TID
llvm::Type* ElType
uint64_t NumElements

SequentialType(const llvm::SequentialType&)

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

Parameters

const llvm::SequentialType&

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

Parameters

const llvm::Type* T

llvm::Type* getElementType() const

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

uint64_t getNumElements() const

Description

For scalable vectors, this will return the minimum number of elements in the vector.

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