LLVM 17.0.0git
|
#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/Constants.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include <cmath>
Go to the source code of this file.
Classes | |
class | false::LibCallsShrinkWrap |
Namespaces | |
namespace | false |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
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, DominatorTree *DT) |
FunctionPass * | llvm::createLibCallsShrinkWrapPass () |
Variables | |
libcalls | shrinkwrap |
libcalls Conditionally eliminate dead library | calls |
libcalls Conditionally eliminate dead library | false |
char & | llvm::LibCallsShrinkWrapPassID = LibCallsShrinkWrapLegacyPass::ID |
#define DEBUG_TYPE "libcalls-shrinkwrap" |
Definition at line 48 of file LibCallsShrinkWrap.cpp.
INITIALIZE_PASS_BEGIN | ( | LibCallsShrinkWrapLegacyPass | , |
"libcalls-shrinkwrap" | , | ||
"Conditionally eliminate dead library calls" | , | ||
false | , | ||
false | |||
) |
|
static |
Definition at line 524 of file LibCallsShrinkWrap.cpp.
References assert(), F, and llvm::DominatorTreeBase< NodeT, IsPostDom >::verify().
STATISTIC | ( | NumWrappedOneCond | , |
"Number of One-Condition Wrappers Inserted" | |||
) |
STATISTIC | ( | NumWrappedTwoCond | , |
"Number of Two-Condition Wrappers Inserted" | |||
) |
Definition at line 72 of file LibCallsShrinkWrap.cpp.
Definition at line 72 of file LibCallsShrinkWrap.cpp.
libcalls shrinkwrap |
Definition at line 71 of file LibCallsShrinkWrap.cpp.