LLVM  4.0.0
Classes | Namespaces | Macros | Functions | Variables
LibCallsShrinkWrap.cpp File Reference
#include "llvm/Transforms/Utils/LibCallsShrinkWrap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
Include dependency graph for LibCallsShrinkWrap.cpp:

Go to the source code of this file.

Classes

class  false::LibCallsShrinkWrap
 

Namespaces

 false
 
 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define DEBUG_TYPE   "libcalls-shrinkwrap"
 

Functions

 STATISTIC (NumWrappedOneCond,"Number of One-Condition Wrappers Inserted")
 
 STATISTIC (NumWrappedTwoCond,"Number of Two-Condition Wrappers Inserted")
 
 INITIALIZE_PASS_BEGIN (LibCallsShrinkWrapLegacyPass,"libcalls-shrinkwrap","Conditionally eliminate dead library calls", false, false) INITIALIZE_PASS_END(LibCallsShrinkWrapLegacyPass
 
static bool runImpl (Function &F, const TargetLibraryInfo &TLI)
 
FunctionPassllvm::createLibCallsShrinkWrapPass ()
 

Variables

static cl::opt< boolLibCallsShrinkWrapDoDomainError ("libcalls-shrinkwrap-domain-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with domain errors"))
 
static cl::opt< boolLibCallsShrinkWrapDoRangeError ("libcalls-shrinkwrap-range-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with range errors"))
 
static cl::opt< boolLibCallsShrinkWrapDoPoleError ("libcalls-shrinkwrap-pole-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with pole errors"))
 
libcalls shrinkwrap
 
libcalls Conditionally
eliminate dead library 
calls
 
libcalls Conditionally
eliminate dead library 
false
 
char & llvm::LibCallsShrinkWrapPassID = LibCallsShrinkWrapLegacyPass::ID
 

Macro Definition Documentation

#define DEBUG_TYPE   "libcalls-shrinkwrap"

Definition at line 46 of file LibCallsShrinkWrap.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( LibCallsShrinkWrapLegacyPass  ,
"libcalls-shrinkwrap ,
"Conditionally eliminate dead library calls ,
false  ,
false   
)
static bool runImpl ( Function F,
const TargetLibraryInfo TLI 
)
static
STATISTIC ( NumWrappedOneCond  ,
"Number of One-Condition Wrappers Inserted"   
)
STATISTIC ( NumWrappedTwoCond  ,
"Number of Two-Condition Wrappers Inserted"   
)

Variable Documentation

libcalls Conditionally eliminate dead library calls

Definition at line 79 of file LibCallsShrinkWrap.cpp.

libcalls Conditionally eliminate dead library false

Definition at line 79 of file LibCallsShrinkWrap.cpp.

cl::opt<bool> LibCallsShrinkWrapDoDomainError("libcalls-shrinkwrap-domain-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with domain errors"))
static
cl::opt<bool> LibCallsShrinkWrapDoPoleError("libcalls-shrinkwrap-pole-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with pole errors"))
static
cl::opt<bool> LibCallsShrinkWrapDoRangeError("libcalls-shrinkwrap-range-error", cl::init(true), cl::Hidden, cl::desc("Perform shrink-wrap on lib calls with range errors"))
static
libcalls shrinkwrap

Definition at line 79 of file LibCallsShrinkWrap.cpp.