LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::VFDatabase Class Reference

The Vector Function Database. More...

#include "llvm/Analysis/VectorUtils.h"

Public Member Functions

 VFDatabase (CallInst &CI)
 Constructor, requires a CallInst instance.
 
FunctiongetVectorizedFunction (const VFShape &Shape) const
 

Static Public Member Functions

static SmallVector< VFInfo, 8 > getMappings (const CallInst &CI)
 Retrieve all the VFInfo instances associated to the CallInst CI.
 
static bool hasMaskedVariant (const CallInst &CI, std::optional< ElementCount > VF=std::nullopt)
 

Detailed Description

The Vector Function Database.

Helper class used to find the vector functions associated to a scalar CallInst.

Definition at line 29 of file VectorUtils.h.

Constructor & Destructor Documentation

◆ VFDatabase()

llvm::VFDatabase::VFDatabase ( CallInst CI)
inline

Constructor, requires a CallInst instance.

Definition at line 96 of file VectorUtils.h.

Member Function Documentation

◆ getMappings()

static SmallVector< VFInfo, 8 > llvm::VFDatabase::getMappings ( const CallInst CI)
inlinestatic

Retrieve all the VFInfo instances associated to the CallInst CI.

Definition at line 70 of file VectorUtils.h.

Referenced by generateKeySubkey(), getSameOpcode(), hasMaskedVariant(), and llvm::LoopVectorizationCostModel::setVectorizedCallDecision().

◆ hasMaskedVariant()

static bool llvm::VFDatabase::hasMaskedVariant ( const CallInst CI,
std::optional< ElementCount VF = std::nullopt 
)
inlinestatic

Definition at line 81 of file VectorUtils.h.

References getMappings(), and Info.


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