struct FixedScalableVFPair

Declaration

struct FixedScalableVFPair { /* full declaration omitted */ };

Description

A class that represents two vectorization factors (initialized with 0 by default). One for fixed-width vectorization and one for scalable vectorization. This can be used by the vectorizer to choose from a range of fixed and/or scalable VFs in order to find the most cost-effective VF to vectorize with.

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:224

Member Variables

public llvm::ElementCount FixedVF
public llvm::ElementCount ScalableVF

Method Overview

Methods

FixedScalableVFPair()

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:228

FixedScalableVFPair(const llvm::ElementCount& Max)

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:231

Parameters

const llvm::ElementCount& Max

FixedScalableVFPair(
    const llvm::ElementCount& FixedVF,
    const llvm::ElementCount& ScalableVF)

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:234

Parameters

const llvm::ElementCount& FixedVF
const llvm::ElementCount& ScalableVF

static llvm::FixedScalableVFPair getNone()

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:241

bool hasVector() const

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:247

Returns

true if either fixed- or scalable VF is a valid vector VF.

bool operator bool() const

Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:244

Returns

true if either fixed- or scalable VF is non-zero.