LLVM 22.0.0git
InjectTLIMappings.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "inject-tli-mappings"

Functions

 STATISTIC (NumCallInjected, "Number of calls in which the mappings have been injected.")
 STATISTIC (NumVFDeclAdded, "Number of function declarations that have been added.")
 STATISTIC (NumCompUsedAdded, "Number of `@llvm.compiler.used` operands that have been added.")
static void addVariantDeclaration (CallInst &CI, const ElementCount &VF, const VecDesc *VD)
 A helper function that adds the vector variant declaration for vectorizing the CallInst CI with a vectorization factor of VF lanes.
static void addMappingsFromTLI (const TargetLibraryInfo &TLI, CallInst &CI)
static bool runImpl (const TargetLibraryInfo &TLI, Function &F)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inject-tli-mappings"

Definition at line 26 of file InjectTLIMappings.cpp.

Function Documentation

◆ addMappingsFromTLI()

◆ addVariantDeclaration()

void addVariantDeclaration ( CallInst & CI,
const ElementCount & VF,
const VecDesc * VD )
static

◆ runImpl()

bool runImpl ( const TargetLibraryInfo & TLI,
Function & F )
static

Definition at line 125 of file InjectTLIMappings.cpp.

References addMappingsFromTLI(), llvm::dyn_cast(), F, I, and instructions.

◆ STATISTIC() [1/3]

STATISTIC ( NumCallInjected ,
"Number of calls in which the mappings have been injected."  )

◆ STATISTIC() [2/3]

STATISTIC ( NumCompUsedAdded ,
"Number of `@llvm.compiler.used` operands that have been added."  )

◆ STATISTIC() [3/3]

STATISTIC ( NumVFDeclAdded ,
"Number of function declarations that have been added."  )