LLVM  12.0.0git
Macros | Functions | Variables
InjectTLIMappings.cpp File Reference
#include "llvm/Transforms/Utils/InjectTLIMappings.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/DemandedBits.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/VectorUtils.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/Transforms/Utils.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
Include dependency graph for InjectTLIMappings.cpp:

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 unsigned VF, const StringRef VFName)
 A helper function that adds the vector function declaration that vectorizes the CallInst CI with a vectorization factor of VF lanes. More...
 
static void addMappingsFromTLI (const TargetLibraryInfo &TLI, CallInst &CI)
 
static bool runImpl (const TargetLibraryInfo &TLI, Function &F)
 
 INITIALIZE_PASS_BEGIN (InjectTLIMappingsLegacy, DEBUG_TYPE, "Inject TLI Mappings", false, false) INITIALIZE_PASS_END(InjectTLIMappingsLegacy
 

Variables

 DEBUG_TYPE
 
Inject TLI Mappings
 
Inject TLI false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inject-tli-mappings"

Function Documentation

◆ addMappingsFromTLI()

static void addMappingsFromTLI ( const TargetLibraryInfo TLI,
CallInst CI 
)
static

◆ addVariantDeclaration()

static void addVariantDeclaration ( CallInst CI,
const unsigned  VF,
const StringRef  VFName 
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( InjectTLIMappingsLegacy  ,
DEBUG_TYPE  ,
"Inject TLI Mappings ,
false  ,
false   
)

◆ runImpl()

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

◆ STATISTIC() [1/3]

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

◆ STATISTIC() [2/3]

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

◆ STATISTIC() [3/3]

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

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 159 of file InjectTLIMappings.cpp.

◆ false

Inject TLI false

Definition at line 159 of file InjectTLIMappings.cpp.

◆ Mappings

Inject TLI Mappings