LLVM 22.0.0git
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 33 of file VectorUtils.h.

Constructor & Destructor Documentation

◆ VFDatabase()

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

Constructor, requires a CallInst instance.

Definition at line 100 of file VectorUtils.h.

References getMappings(), and VFDatabase().

Referenced by VFDatabase().

Member Function Documentation

◆ getMappings()

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

Retrieve all the VFInfo instances associated to the CallInst CI.

Definition at line 74 of file VectorUtils.h.

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

◆ hasMaskedVariant()

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

Definition at line 85 of file VectorUtils.h.

References getMappings(), and Info.


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