LLVM 18.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::VFShape Struct Reference

Contains the information about the kind of vectorization available. More...

#include "llvm/Analysis/VectorUtils.h"

Public Member Functions

bool operator== (const VFShape &Other) const
 
void updateParam (VFParameter P)
 Update the parameter in position P.ParamPos to P.
 
bool hasValidParameterList () const
 Validation check on the Parameters in the VFShape.
 

Static Public Member Functions

static VFShape getScalarShape (const CallInst &CI)
 
static VFShape get (const CallInst &CI, ElementCount EC, bool HasGlobalPred)
 

Public Attributes

ElementCount VF
 
SmallVector< VFParameter, 8 > Parameters
 

Detailed Description

Contains the information about the kind of vectorization available.

This object in independent on the paradigm used to represent vector functions. in particular, it is not attached to any target-specific ABI.

Definition at line 82 of file VectorUtils.h.

Member Function Documentation

◆ get()

static VFShape llvm::VFShape::get ( const CallInst CI,
ElementCount  EC,
bool  HasGlobalPred 
)
inlinestatic

◆ getScalarShape()

static VFShape llvm::VFShape::getScalarShape ( const CallInst CI)
inlinestatic

Definition at line 99 of file VectorUtils.h.

References get(), and llvm::ElementCount::getFixed().

Referenced by llvm::VFDatabase::getVectorizedFunction().

◆ hasValidParameterList()

bool VFShape::hasValidParameterList ( ) const

◆ operator==()

bool llvm::VFShape::operator== ( const VFShape Other) const
inline

Definition at line 86 of file VectorUtils.h.

References llvm::Other, Parameters, and VF.

◆ updateParam()

void llvm::VFShape::updateParam ( VFParameter  P)
inline

Update the parameter in position P.ParamPos to P.

Definition at line 91 of file VectorUtils.h.

References assert(), hasValidParameterList(), P, and Parameters.

Member Data Documentation

◆ Parameters

SmallVector<VFParameter, 8> llvm::VFShape::Parameters

◆ VF

ElementCount llvm::VFShape::VF

Definition at line 83 of file VectorUtils.h.

Referenced by operator==().


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