Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::FixedScalableVFPair Struct Reference

A class that represents two vectorization factors (initialized with 0 by default). More...

#include "Transforms/Vectorize/LoopVectorizationPlanner.h"

Public Member Functions

 FixedScalableVFPair ()
 FixedScalableVFPair (const ElementCount &Max)
 FixedScalableVFPair (const ElementCount &FixedVF, const ElementCount &ScalableVF)
 operator bool () const
bool hasVector () const

Static Public Member Functions

static FixedScalableVFPair getNone ()

Public Attributes

ElementCount FixedVF
ElementCount ScalableVF

Detailed 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.

Definition at line 406 of file LoopVectorizationPlanner.h.

Constructor & Destructor Documentation

◆ FixedScalableVFPair() [1/3]

llvm::FixedScalableVFPair::FixedScalableVFPair ( )
inline

Definition at line 410 of file LoopVectorizationPlanner.h.

References FixedVF, and ScalableVF.

Referenced by FixedScalableVFPair(), and getNone().

◆ FixedScalableVFPair() [2/3]

llvm::FixedScalableVFPair::FixedScalableVFPair ( const ElementCount & Max)
inline

Definition at line 413 of file LoopVectorizationPlanner.h.

References FixedScalableVFPair(), FixedVF, and ScalableVF.

◆ FixedScalableVFPair() [3/3]

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

Definition at line 416 of file LoopVectorizationPlanner.h.

References assert(), FixedVF, and ScalableVF.

Member Function Documentation

◆ getNone()

FixedScalableVFPair llvm::FixedScalableVFPair::getNone ( )
inlinestatic

◆ hasVector()

bool llvm::FixedScalableVFPair::hasVector ( ) const
inline
Returns
true if either fixed- or scalable VF is a valid vector VF.

Definition at line 429 of file LoopVectorizationPlanner.h.

References FixedVF, and ScalableVF.

◆ operator bool()

llvm::FixedScalableVFPair::operator bool ( ) const
inlineexplicit
Returns
true if either fixed- or scalable VF is non-zero.

Definition at line 426 of file LoopVectorizationPlanner.h.

References FixedVF, and ScalableVF.

Member Data Documentation

◆ FixedVF

◆ ScalableVF


The documentation for this struct was generated from the following file: