LLVM 18.0.0git
Macros | Functions | Variables
ReplaceWithVeclib.cpp File Reference
#include "llvm/CodeGen/ReplaceWithVeclib.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/DemandedBits.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/VectorUtils.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "replace-with-veclib"
 

Functions

 STATISTIC (NumCallsReplaced, "Number of calls to intrinsics that have been replaced.")
 
 STATISTIC (NumTLIFuncDeclAdded, "Number of vector library function declarations added.")
 
 STATISTIC (NumFuncUsedAdded, "Number of functions added to `llvm.compiler.used`")
 
static bool replaceWithTLIFunction (CallInst &CI, const StringRef TLIName)
 
static bool replaceWithCallToVeclib (const TargetLibraryInfo &TLI, CallInst &CI)
 
static bool runImpl (const TargetLibraryInfo &TLI, Function &F)
 
 INITIALIZE_PASS_BEGIN (ReplaceWithVeclibLegacy, DEBUG_TYPE, "Replace intrinsics with calls to vector library", false, false) INITIALIZE_PASS_END(ReplaceWithVeclibLegacy
 

Variables

 DEBUG_TYPE
 
Replace intrinsics with calls to vector library
 
Replace intrinsics with calls to vector false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "replace-with-veclib"

Definition at line 30 of file ReplaceWithVeclib.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( ReplaceWithVeclibLegacy  ,
DEBUG_TYPE  ,
"Replace intrinsics with calls to vector library"  ,
false  ,
false   
)

◆ replaceWithCallToVeclib()

static bool replaceWithCallToVeclib ( const TargetLibraryInfo TLI,
CallInst CI 
)
static

◆ replaceWithTLIFunction()

static bool replaceWithTLIFunction ( CallInst CI,
const StringRef  TLIName 
)
static

◆ runImpl()

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

◆ STATISTIC() [1/3]

STATISTIC ( NumCallsReplaced  ,
"Number of calls to intrinsics that have been replaced."   
)

◆ STATISTIC() [2/3]

STATISTIC ( NumFuncUsedAdded  ,
"Number of functions added to `llvm.compiler.used`"   
)

◆ STATISTIC() [3/3]

STATISTIC ( NumTLIFuncDeclAdded  ,
"Number of vector library function declarations added."   
)

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 245 of file ReplaceWithVeclib.cpp.

◆ false

Replace intrinsics with calls to vector false

Definition at line 246 of file ReplaceWithVeclib.cpp.

◆ library

Replace intrinsics with calls to vector library

Definition at line 246 of file ReplaceWithVeclib.cpp.