">

LLVM: lib/Transforms/Utils/LibCallsShrinkWrap.cpp File Reference (original) (raw)

#include "[llvm/Transforms/Utils/LibCallsShrinkWrap.h](LibCallsShrinkWrap%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"
#include "[llvm/ADT/Statistic.h](Statistic%5F8h%5Fsource.html)"
#include "[llvm/Analysis/DomTreeUpdater.h](DomTreeUpdater%5F8h%5Fsource.html)"
#include "[llvm/Analysis/GlobalsModRef.h](GlobalsModRef%5F8h%5Fsource.html)"
#include "[llvm/Analysis/TargetLibraryInfo.h](TargetLibraryInfo%5F8h%5Fsource.html)"
#include "[llvm/IR/Constants.h](Constants%5F8h%5Fsource.html)"
#include "[llvm/IR/Dominators.h](Dominators%5F8h%5Fsource.html)"
#include "[llvm/IR/Function.h](IR%5F2Function%5F8h%5Fsource.html)"
#include "[llvm/IR/IRBuilder.h](IRBuilder%5F8h%5Fsource.html)"
#include "[llvm/IR/InstVisitor.h](InstVisitor%5F8h%5Fsource.html)"
#include "[llvm/IR/Instructions.h](Instructions%5F8h%5Fsource.html)"
#include "[llvm/IR/MDBuilder.h](MDBuilder%5F8h%5Fsource.html)"
#include "[llvm/Transforms/Utils/BasicBlockUtils.h](BasicBlockUtils%5F8h%5Fsource.html)"
#include <cmath>

Go to the source code of this file.

Macros
#define DEBUG_TYPE "libcalls-shrinkwrap"
Functions
STATISTIC (NumWrappedOneCond, "Number of One-Condition Wrappers Inserted")
STATISTIC (NumWrappedTwoCond, "Number of Two-Condition Wrappers Inserted")
static bool runImpl (Function &F, const TargetLibraryInfo &TLI, DominatorTree *DT)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "libcalls-shrinkwrap"

Definition at line 47 of file LibCallsShrinkWrap.cpp.

Function Documentation

runImpl()

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

Definition at line 499 of file LibCallsShrinkWrap.cpp.

References assert(), Changed, F, llvm::GenericDomTreeUpdater< DerivedT, DomTreeT, PostDomTreeT >::getDomTree(), and llvm::DominatorTreeBase< NodeT, IsPostDom >::verify().

STATISTIC() [1/2]

STATISTIC ( NumWrappedOneCond ,
"Number of One-Condition Wrappers Inserted" )

STATISTIC() [2/2]

STATISTIC ( NumWrappedTwoCond ,
"Number of Two-Condition Wrappers Inserted" )