mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Now with fewer extraneous semicolons!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e99219e03
commit
ce665bd2e2
@ -134,7 +134,7 @@ private:
|
||||
PassInfo::NormalCtor_t(callDefaultCtor< passName >), cfg, analysis); \
|
||||
Registry.registerPass(*PI); \
|
||||
} \
|
||||
static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis)
|
||||
static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis);
|
||||
|
||||
|
||||
template<typename PassName>
|
||||
@ -216,7 +216,7 @@ struct RegisterAnalysisGroup : public RegisterAGBase {
|
||||
PassInfo *AI = new PassInfo(name, & agName :: ID); \
|
||||
Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false); \
|
||||
} \
|
||||
static RegisterAnalysisGroup<agName> agName##_info (name)
|
||||
static RegisterAnalysisGroup<agName> agName##_info (name);
|
||||
|
||||
#define INITIALIZE_AG_PASS(passName, agName, arg, name, cfg, analysis, def) \
|
||||
void llvm::initialize##passName##Pass(PassRegistry &Registry) { \
|
||||
@ -228,7 +228,7 @@ struct RegisterAnalysisGroup : public RegisterAGBase {
|
||||
Registry.registerAnalysisGroup(& agName ::ID, & passName ::ID, *AI, def); \
|
||||
} \
|
||||
static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis); \
|
||||
static RegisterAnalysisGroup<agName, def> passName ## _ag(passName ## _info)
|
||||
static RegisterAnalysisGroup<agName, def> passName ## _ag(passName ## _info);
|
||||
|
||||
//===---------------------------------------------------------------------------
|
||||
/// PassRegistrationListener class - This class is meant to be derived from by
|
||||
|
@ -36,7 +36,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
// Register the AliasAnalysis interface, providing a nice name to refer to.
|
||||
INITIALIZE_ANALYSIS_GROUP(AliasAnalysis, "Alias Analysis");
|
||||
INITIALIZE_ANALYSIS_GROUP(AliasAnalysis, "Alias Analysis")
|
||||
char AliasAnalysis::ID = 0;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -113,7 +113,7 @@ namespace {
|
||||
|
||||
char AliasAnalysisCounter::ID = 0;
|
||||
INITIALIZE_AG_PASS(AliasAnalysisCounter, AliasAnalysis, "count-aa",
|
||||
"Count Alias Analysis Query Responses", false, true, false);
|
||||
"Count Alias Analysis Query Responses", false, true, false)
|
||||
|
||||
ModulePass *llvm::createAliasAnalysisCounterPass() {
|
||||
return new AliasAnalysisCounter();
|
||||
|
@ -75,7 +75,7 @@ namespace {
|
||||
|
||||
char AAEval::ID = 0;
|
||||
INITIALIZE_PASS(AAEval, "aa-eval",
|
||||
"Exhaustive Alias Analysis Precision Evaluator", false, true);
|
||||
"Exhaustive Alias Analysis Precision Evaluator", false, true)
|
||||
|
||||
FunctionPass *llvm::createAAEvalPass() { return new AAEval(); }
|
||||
|
||||
|
@ -130,7 +130,7 @@ namespace {
|
||||
|
||||
char AliasDebugger::ID = 0;
|
||||
INITIALIZE_AG_PASS(AliasDebugger, AliasAnalysis, "debug-aa",
|
||||
"AA use debugger", false, true, false);
|
||||
"AA use debugger", false, true, false)
|
||||
|
||||
Pass *llvm::createAliasDebugger() { return new AliasDebugger(); }
|
||||
|
||||
|
@ -608,4 +608,4 @@ namespace {
|
||||
|
||||
char AliasSetPrinter::ID = 0;
|
||||
INITIALIZE_PASS(AliasSetPrinter, "print-alias-sets",
|
||||
"Alias Set Printer", false, true);
|
||||
"Alias Set Printer", false, true)
|
||||
|
@ -190,7 +190,7 @@ namespace {
|
||||
char NoAA::ID = 0;
|
||||
INITIALIZE_AG_PASS(NoAA, AliasAnalysis, "no-aa",
|
||||
"No Alias Analysis (always returns 'may' alias)",
|
||||
true, true, false);
|
||||
true, true, false)
|
||||
|
||||
ImmutablePass *llvm::createNoAAPass() { return new NoAA(); }
|
||||
|
||||
@ -561,7 +561,7 @@ namespace {
|
||||
char BasicAliasAnalysis::ID = 0;
|
||||
INITIALIZE_AG_PASS(BasicAliasAnalysis, AliasAnalysis, "basicaa",
|
||||
"Basic Alias Analysis (default AA impl)",
|
||||
false, true, true);
|
||||
false, true, true)
|
||||
|
||||
ImmutablePass *llvm::createBasicAliasAnalysisPass() {
|
||||
return new BasicAliasAnalysis();
|
||||
|
@ -41,7 +41,7 @@ namespace {
|
||||
}
|
||||
|
||||
char CFGViewer::ID = 0;
|
||||
INITIALIZE_PASS(CFGViewer, "view-cfg", "View CFG of function", false, true);
|
||||
INITIALIZE_PASS(CFGViewer, "view-cfg", "View CFG of function", false, true)
|
||||
|
||||
namespace {
|
||||
struct CFGOnlyViewer : public FunctionPass {
|
||||
@ -63,7 +63,7 @@ namespace {
|
||||
|
||||
char CFGOnlyViewer::ID = 0;
|
||||
INITIALIZE_PASS(CFGOnlyViewer, "view-cfg-only",
|
||||
"View CFG of function (with no function bodies)", false, true);
|
||||
"View CFG of function (with no function bodies)", false, true)
|
||||
|
||||
namespace {
|
||||
struct CFGPrinter : public FunctionPass {
|
||||
@ -95,7 +95,7 @@ namespace {
|
||||
|
||||
char CFGPrinter::ID = 0;
|
||||
INITIALIZE_PASS(CFGPrinter, "dot-cfg", "Print CFG of function to 'dot' file",
|
||||
false, true);
|
||||
false, true)
|
||||
|
||||
namespace {
|
||||
struct CFGOnlyPrinter : public FunctionPass {
|
||||
@ -126,7 +126,7 @@ namespace {
|
||||
char CFGOnlyPrinter::ID = 0;
|
||||
INITIALIZE_PASS(CFGOnlyPrinter, "dot-cfg-only",
|
||||
"Print CFG of function to 'dot' file (with no function bodies)",
|
||||
false, true);
|
||||
false, true)
|
||||
|
||||
/// viewCFG - This function is meant for use from the debugger. You can just
|
||||
/// say 'call F->viewCFG()' and a ghostview window should pop up from the
|
||||
|
@ -51,7 +51,7 @@ namespace {
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(PrintDbgInfo, "print-dbginfo",
|
||||
"Print debug info in human readable form", false, false);
|
||||
"Print debug info in human readable form", false, false)
|
||||
|
||||
FunctionPass *llvm::createDbgInfoPrinterPass() { return new PrintDbgInfo(); }
|
||||
|
||||
|
@ -112,22 +112,22 @@ struct PostDomOnlyViewer
|
||||
|
||||
char DomViewer::ID = 0;
|
||||
INITIALIZE_PASS(DomViewer, "view-dom",
|
||||
"View dominance tree of function", false, false);
|
||||
"View dominance tree of function", false, false)
|
||||
|
||||
char DomOnlyViewer::ID = 0;
|
||||
INITIALIZE_PASS(DomOnlyViewer, "view-dom-only",
|
||||
"View dominance tree of function (with no function bodies)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
char PostDomViewer::ID = 0;
|
||||
INITIALIZE_PASS(PostDomViewer, "view-postdom",
|
||||
"View postdominance tree of function", false, false);
|
||||
"View postdominance tree of function", false, false)
|
||||
|
||||
char PostDomOnlyViewer::ID = 0;
|
||||
INITIALIZE_PASS(PostDomOnlyViewer, "view-postdom-only",
|
||||
"View postdominance tree of function "
|
||||
"(with no function bodies)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
namespace {
|
||||
struct DomPrinter
|
||||
@ -162,24 +162,24 @@ struct PostDomOnlyPrinter
|
||||
char DomPrinter::ID = 0;
|
||||
INITIALIZE_PASS(DomPrinter, "dot-dom",
|
||||
"Print dominance tree of function to 'dot' file",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
char DomOnlyPrinter::ID = 0;
|
||||
INITIALIZE_PASS(DomOnlyPrinter, "dot-dom-only",
|
||||
"Print dominance tree of function to 'dot' file "
|
||||
"(with no function bodies)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
char PostDomPrinter::ID = 0;
|
||||
INITIALIZE_PASS(PostDomPrinter, "dot-postdom",
|
||||
"Print postdominance tree of function to 'dot' file",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
char PostDomOnlyPrinter::ID = 0;
|
||||
INITIALIZE_PASS(PostDomOnlyPrinter, "dot-postdom-only",
|
||||
"Print postdominance tree of function to 'dot' file "
|
||||
"(with no function bodies)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
// Create methods available outside of this file, to use them
|
||||
// "include/llvm/LinkAllPasses.h". Otherwise the pass would be deleted by
|
||||
|
@ -171,9 +171,9 @@ private:
|
||||
|
||||
} //End anonymous namespace
|
||||
|
||||
INITIALIZE_ANALYSIS_GROUP(CallGraph, "Call Graph");
|
||||
INITIALIZE_ANALYSIS_GROUP(CallGraph, "Call Graph")
|
||||
INITIALIZE_AG_PASS(BasicCallGraph, CallGraph, "basiccg",
|
||||
"Basic CallGraph Construction", false, true, true);
|
||||
"Basic CallGraph Construction", false, true, true)
|
||||
|
||||
char CallGraph::ID = 0;
|
||||
char BasicCallGraph::ID = 0;
|
||||
|
@ -24,7 +24,7 @@ using namespace llvm;
|
||||
|
||||
char FindUsedTypes::ID = 0;
|
||||
INITIALIZE_PASS(FindUsedTypes, "print-used-types",
|
||||
"Find Used Types", false, true);
|
||||
"Find Used Types", false, true)
|
||||
|
||||
// IncorporateType - Incorporate one type and all of its subtypes into the
|
||||
// collection of used types.
|
||||
|
@ -178,7 +178,7 @@ namespace {
|
||||
char GlobalsModRef::ID = 0;
|
||||
INITIALIZE_AG_PASS(GlobalsModRef, AliasAnalysis,
|
||||
"globalsmodref-aa", "Simple mod/ref analysis for globals",
|
||||
false, true, false);
|
||||
false, true, false)
|
||||
|
||||
Pass *llvm::createGlobalsModRefPass() { return new GlobalsModRef(); }
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
char IVUsers::ID = 0;
|
||||
INITIALIZE_PASS(IVUsers, "iv-users", "Induction Variable Users", false, true);
|
||||
INITIALIZE_PASS(IVUsers, "iv-users", "Induction Variable Users", false, true)
|
||||
|
||||
Pass *llvm::createIVUsersPass() {
|
||||
return new IVUsers();
|
||||
|
@ -65,7 +65,7 @@ namespace {
|
||||
|
||||
char InstCount::ID = 0;
|
||||
INITIALIZE_PASS(InstCount, "instcount",
|
||||
"Counts the various types of Instructions", false, true);
|
||||
"Counts the various types of Instructions", false, true)
|
||||
|
||||
FunctionPass *llvm::createInstCountPass() { return new InstCount(); }
|
||||
|
||||
|
@ -17,7 +17,7 @@ using namespace llvm;
|
||||
|
||||
char IntervalPartition::ID = 0;
|
||||
INITIALIZE_PASS(IntervalPartition, "intervals",
|
||||
"Interval Partition Construction", true, true);
|
||||
"Interval Partition Construction", true, true)
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// IntervalPartition Implementation
|
||||
|
@ -32,7 +32,7 @@ using namespace llvm;
|
||||
|
||||
char LazyValueInfo::ID = 0;
|
||||
INITIALIZE_PASS(LazyValueInfo, "lazy-value-info",
|
||||
"Lazy Value Information Analysis", false, true);
|
||||
"Lazy Value Information Analysis", false, true)
|
||||
|
||||
namespace llvm {
|
||||
FunctionPass *createLazyValueInfoPass() { return new LazyValueInfo(); }
|
||||
|
@ -21,7 +21,7 @@ using namespace llvm;
|
||||
// Register this pass...
|
||||
char LibCallAliasAnalysis::ID = 0;
|
||||
INITIALIZE_AG_PASS(LibCallAliasAnalysis, AliasAnalysis, "libcall-aa",
|
||||
"LibCall Alias Analysis", false, true, false);
|
||||
"LibCall Alias Analysis", false, true, false)
|
||||
|
||||
FunctionPass *llvm::createLibCallAliasAnalysisPass(LibCallInfo *LCI) {
|
||||
return new LibCallAliasAnalysis(LCI);
|
||||
|
@ -145,7 +145,7 @@ namespace {
|
||||
}
|
||||
|
||||
char Lint::ID = 0;
|
||||
INITIALIZE_PASS(Lint, "lint", "Statically lint-checks LLVM IR", false, true);
|
||||
INITIALIZE_PASS(Lint, "lint", "Statically lint-checks LLVM IR", false, true)
|
||||
|
||||
// Assert - We know that cond should be true, if not print an error message.
|
||||
#define Assert(C, M) \
|
||||
|
@ -23,7 +23,7 @@ namespace llvm {
|
||||
|
||||
char LiveValues::ID = 0;
|
||||
INITIALIZE_PASS(LiveValues, "live-values",
|
||||
"Value Liveness Analysis", false, true);
|
||||
"Value Liveness Analysis", false, true)
|
||||
|
||||
LiveValues::LiveValues() : FunctionPass(ID) {}
|
||||
|
||||
|
@ -47,7 +47,7 @@ LoopPass *llvm::createLoopDependenceAnalysisPass() {
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(LoopDependenceAnalysis, "lda",
|
||||
"Loop Dependence Analysis", false, true);
|
||||
"Loop Dependence Analysis", false, true)
|
||||
char LoopDependenceAnalysis::ID = 0;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -38,7 +38,7 @@ VerifyLoopInfoX("verify-loop-info", cl::location(VerifyLoopInfo),
|
||||
cl::desc("Verify loop info (time consuming)"));
|
||||
|
||||
char LoopInfo::ID = 0;
|
||||
INITIALIZE_PASS(LoopInfo, "loops", "Natural Loop Information", true, true);
|
||||
INITIALIZE_PASS(LoopInfo, "loops", "Natural Loop Information", true, true)
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Loop implementation
|
||||
|
@ -50,7 +50,8 @@ namespace {
|
||||
}
|
||||
|
||||
char MemDepPrinter::ID = 0;
|
||||
INITIALIZE_PASS(MemDepPrinter, "print-memdeps", "Print MemDeps of function", false, true);
|
||||
INITIALIZE_PASS(MemDepPrinter, "print-memdeps", "Print MemDeps of function",
|
||||
false, true)
|
||||
|
||||
FunctionPass *llvm::createMemDepPrinter() {
|
||||
return new MemDepPrinter();
|
||||
|
@ -48,7 +48,7 @@ char MemoryDependenceAnalysis::ID = 0;
|
||||
|
||||
// Register this pass...
|
||||
INITIALIZE_PASS(MemoryDependenceAnalysis, "memdep",
|
||||
"Memory Dependence Analysis", false, true);
|
||||
"Memory Dependence Analysis", false, true)
|
||||
|
||||
MemoryDependenceAnalysis::MemoryDependenceAnalysis()
|
||||
: FunctionPass(ID), PredCache(0) {
|
||||
|
@ -43,7 +43,7 @@ namespace {
|
||||
|
||||
char ModuleDebugInfoPrinter::ID = 0;
|
||||
INITIALIZE_PASS(ModuleDebugInfoPrinter, "module-debuginfo",
|
||||
"Decodes module-level debug info", false, true);
|
||||
"Decodes module-level debug info", false, true)
|
||||
|
||||
ModulePass *llvm::createModuleDebugInfoPrinterPass() {
|
||||
return new ModuleDebugInfoPrinter();
|
||||
|
@ -29,7 +29,7 @@ using namespace llvm;
|
||||
char PostDominatorTree::ID = 0;
|
||||
char PostDominanceFrontier::ID = 0;
|
||||
INITIALIZE_PASS(PostDominatorTree, "postdomtree",
|
||||
"Post-Dominator Tree Construction", true, true);
|
||||
"Post-Dominator Tree Construction", true, true)
|
||||
|
||||
bool PostDominatorTree::runOnFunction(Function &F) {
|
||||
DT->recalculate(F);
|
||||
@ -54,7 +54,7 @@ FunctionPass* llvm::createPostDomTree() {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
INITIALIZE_PASS(PostDominanceFrontier, "postdomfrontier",
|
||||
"Post-Dominance Frontier Construction", true, true);
|
||||
"Post-Dominance Frontier Construction", true, true)
|
||||
|
||||
const DominanceFrontier::DomSetType &
|
||||
PostDominanceFrontier::calculate(const PostDominatorTree &DT,
|
||||
|
@ -73,7 +73,7 @@ namespace {
|
||||
|
||||
char ProfileEstimatorPass::ID = 0;
|
||||
INITIALIZE_AG_PASS(ProfileEstimatorPass, ProfileInfo, "profile-estimator",
|
||||
"Estimate profiling information", false, true, false);
|
||||
"Estimate profiling information", false, true, false)
|
||||
|
||||
namespace llvm {
|
||||
char &ProfileEstimatorPassID = ProfileEstimatorPass::ID;
|
||||
|
@ -29,7 +29,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
// Register the ProfileInfo interface, providing a nice name to refer to.
|
||||
INITIALIZE_ANALYSIS_GROUP(ProfileInfo, "Profile Information");
|
||||
INITIALIZE_ANALYSIS_GROUP(ProfileInfo, "Profile Information")
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -1098,6 +1098,6 @@ namespace {
|
||||
char NoProfileInfo::ID = 0;
|
||||
// Register this pass...
|
||||
INITIALIZE_AG_PASS(NoProfileInfo, ProfileInfo, "no-profile",
|
||||
"No Profile Information", false, true, true);
|
||||
"No Profile Information", false, true, true)
|
||||
|
||||
ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); }
|
||||
|
@ -80,7 +80,7 @@ namespace {
|
||||
|
||||
char LoaderPass::ID = 0;
|
||||
INITIALIZE_AG_PASS(LoaderPass, ProfileInfo, "profile-loader",
|
||||
"Load profile information from llvmprof.out", false, true, false);
|
||||
"Load profile information from llvmprof.out", false, true, false)
|
||||
|
||||
char &llvm::ProfileLoaderPassID = LoaderPass::ID;
|
||||
|
||||
|
@ -367,7 +367,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(ProfileVerifierPass, "profile-verifier",
|
||||
"Verify profiling information", false, true);
|
||||
"Verify profiling information", false, true)
|
||||
|
||||
namespace llvm {
|
||||
FunctionPass *createProfileVerifierPass() {
|
||||
|
@ -735,7 +735,7 @@ RegionInfo::getCommonRegion(SmallVectorImpl<BasicBlock*> &BBs) const {
|
||||
|
||||
char RegionInfo::ID = 0;
|
||||
INITIALIZE_PASS(RegionInfo, "regions",
|
||||
"Detect single entry single exit regions", true, true);
|
||||
"Detect single entry single exit regions", true, true)
|
||||
|
||||
// Create methods available outside of this file, to use them
|
||||
// "include/llvm/LinkAllPasses.h". Otherwise the pass would be deleted by
|
||||
|
@ -142,14 +142,14 @@ char RegionPrinter::ID = 0;
|
||||
} //end anonymous namespace
|
||||
|
||||
INITIALIZE_PASS(RegionPrinter, "dot-regions",
|
||||
"Print regions of function to 'dot' file", true, true);
|
||||
"Print regions of function to 'dot' file", true, true)
|
||||
|
||||
INITIALIZE_PASS(RegionViewer, "view-regions", "View regions of function",
|
||||
true, true);
|
||||
true, true)
|
||||
|
||||
INITIALIZE_PASS(RegionOnlyViewer, "view-regions-only",
|
||||
"View regions of function (with no function bodies)",
|
||||
true, true);
|
||||
true, true)
|
||||
|
||||
namespace {
|
||||
|
||||
@ -166,7 +166,7 @@ char RegionOnlyPrinter::ID = 0;
|
||||
INITIALIZE_PASS(RegionOnlyPrinter, "dot-regions-only",
|
||||
"Print regions of function to 'dot' file "
|
||||
"(with no function bodies)",
|
||||
true, true);
|
||||
true, true)
|
||||
|
||||
FunctionPass* llvm::createRegionViewerPass() {
|
||||
return new RegionViewer();
|
||||
|
@ -104,7 +104,7 @@ MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden,
|
||||
cl::init(100));
|
||||
|
||||
INITIALIZE_PASS(ScalarEvolution, "scalar-evolution",
|
||||
"Scalar Evolution Analysis", false, true);
|
||||
"Scalar Evolution Analysis", false, true)
|
||||
char ScalarEvolution::ID = 0;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -58,7 +58,7 @@ namespace {
|
||||
// Register this pass...
|
||||
char ScalarEvolutionAliasAnalysis::ID = 0;
|
||||
INITIALIZE_AG_PASS(ScalarEvolutionAliasAnalysis, AliasAnalysis, "scev-aa",
|
||||
"ScalarEvolution-based Alias Analysis", false, true, false);
|
||||
"ScalarEvolution-based Alias Analysis", false, true, false)
|
||||
|
||||
FunctionPass *llvm::createScalarEvolutionAliasAnalysisPass() {
|
||||
return new ScalarEvolutionAliasAnalysis();
|
||||
|
@ -104,7 +104,7 @@ namespace {
|
||||
// Register this pass...
|
||||
char TypeBasedAliasAnalysis::ID = 0;
|
||||
INITIALIZE_AG_PASS(TypeBasedAliasAnalysis, AliasAnalysis, "tbaa",
|
||||
"Type-Based Alias Analysis", false, true, false);
|
||||
"Type-Based Alias Analysis", false, true, false)
|
||||
|
||||
ImmutablePass *llvm::createTypeBasedAliasAnalysisPass() {
|
||||
return new TypeBasedAliasAnalysis();
|
||||
|
@ -26,7 +26,7 @@ using namespace llvm;
|
||||
|
||||
char CalculateSpillWeights::ID = 0;
|
||||
INITIALIZE_PASS(CalculateSpillWeights, "calcspillweights",
|
||||
"Calculate spill weights", false, false);
|
||||
"Calculate spill weights", false, false)
|
||||
|
||||
void CalculateSpillWeights::getAnalysisUsage(AnalysisUsage &au) const {
|
||||
au.addRequired<LiveIntervals>();
|
||||
|
@ -45,7 +45,7 @@ namespace {
|
||||
char DeadMachineInstructionElim::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(DeadMachineInstructionElim, "dead-mi-elimination",
|
||||
"Remove dead machine instructions", false, false);
|
||||
"Remove dead machine instructions", false, false)
|
||||
|
||||
FunctionPass *llvm::createDeadMachineInstructionElimPass() {
|
||||
return new DeadMachineInstructionElim();
|
||||
|
@ -55,7 +55,7 @@ namespace {
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(GCModuleInfo, "collector-metadata",
|
||||
"Create Garbage Collector Module Metadata", false, false);
|
||||
"Create Garbage Collector Module Metadata", false, false)
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
@ -245,7 +245,7 @@ namespace {
|
||||
char IfConverter::ID = 0;
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(IfConverter, "if-converter", "If Converter", false, false);
|
||||
INITIALIZE_PASS(IfConverter, "if-converter", "If Converter", false, false)
|
||||
|
||||
FunctionPass *llvm::createIfConverterPass() { return new IfConverter(); }
|
||||
|
||||
|
@ -56,7 +56,7 @@ STATISTIC(numSplits , "Number of intervals split");
|
||||
|
||||
char LiveIntervals::ID = 0;
|
||||
INITIALIZE_PASS(LiveIntervals, "liveintervals",
|
||||
"Live Interval Analysis", false, false);
|
||||
"Live Interval Analysis", false, false)
|
||||
|
||||
void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesCFG();
|
||||
|
@ -26,7 +26,7 @@ using namespace llvm;
|
||||
|
||||
char LiveStacks::ID = 0;
|
||||
INITIALIZE_PASS(LiveStacks, "livestacks",
|
||||
"Live Stack Slot Analysis", false, false);
|
||||
"Live Stack Slot Analysis", false, false)
|
||||
|
||||
void LiveStacks::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
|
@ -43,7 +43,7 @@ using namespace llvm;
|
||||
|
||||
char LiveVariables::ID = 0;
|
||||
INITIALIZE_PASS(LiveVariables, "livevars",
|
||||
"Live Variable Analysis", false, false);
|
||||
"Live Variable Analysis", false, false)
|
||||
|
||||
|
||||
void LiveVariables::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
|
@ -92,7 +92,7 @@ namespace {
|
||||
|
||||
char MachineCSE::ID = 0;
|
||||
INITIALIZE_PASS(MachineCSE, "machine-cse",
|
||||
"Machine Common Subexpression Elimination", false, false);
|
||||
"Machine Common Subexpression Elimination", false, false)
|
||||
|
||||
FunctionPass *llvm::createMachineCSEPass() { return new MachineCSE(); }
|
||||
|
||||
|
@ -25,7 +25,7 @@ TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
|
||||
char MachineDominatorTree::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(MachineDominatorTree, "machinedomtree",
|
||||
"MachineDominator Tree Construction", true, true);
|
||||
"MachineDominator Tree Construction", true, true)
|
||||
|
||||
char &llvm::MachineDominatorsID = MachineDominatorTree::ID;
|
||||
|
||||
|
@ -190,7 +190,7 @@ namespace {
|
||||
|
||||
char MachineLICM::ID = 0;
|
||||
INITIALIZE_PASS(MachineLICM, "machinelicm",
|
||||
"Machine Loop Invariant Code Motion", false, false);
|
||||
"Machine Loop Invariant Code Motion", false, false)
|
||||
|
||||
FunctionPass *llvm::createMachineLICMPass(bool PreRegAlloc) {
|
||||
return new MachineLICM(PreRegAlloc);
|
||||
|
@ -31,7 +31,7 @@ TEMPLATE_INSTANTIATION(MLIB);
|
||||
|
||||
char MachineLoopInfo::ID = 0;
|
||||
INITIALIZE_PASS(MachineLoopInfo, "machine-loops",
|
||||
"Machine Natural Loop Construction", true, true);
|
||||
"Machine Natural Loop Construction", true, true)
|
||||
|
||||
char &llvm::MachineLoopInfoID = MachineLoopInfo::ID;
|
||||
|
||||
|
@ -29,7 +29,7 @@ using namespace llvm::dwarf;
|
||||
|
||||
// Handle the Pass registration stuff necessary to use TargetData's.
|
||||
INITIALIZE_PASS(MachineModuleInfo, "machinemoduleinfo",
|
||||
"Machine Module Information", false, false);
|
||||
"Machine Module Information", false, false)
|
||||
char MachineModuleInfo::ID = 0;
|
||||
|
||||
// Out of line virtual method.
|
||||
|
@ -95,7 +95,7 @@ namespace {
|
||||
|
||||
char MachineSinking::ID = 0;
|
||||
INITIALIZE_PASS(MachineSinking, "machine-sink",
|
||||
"Machine code sinking", false, false);
|
||||
"Machine code sinking", false, false)
|
||||
|
||||
FunctionPass *llvm::createMachineSinkingPass() { return new MachineSinking(); }
|
||||
|
||||
|
@ -212,7 +212,7 @@ namespace {
|
||||
|
||||
char MachineVerifierPass::ID = 0;
|
||||
INITIALIZE_PASS(MachineVerifierPass, "machineverifier",
|
||||
"Verify generated machine code", false, false);
|
||||
"Verify generated machine code", false, false)
|
||||
|
||||
FunctionPass *llvm::createMachineVerifierPass() {
|
||||
return new MachineVerifierPass();
|
||||
|
@ -55,7 +55,7 @@ namespace {
|
||||
|
||||
char OptimizePHIs::ID = 0;
|
||||
INITIALIZE_PASS(OptimizePHIs, "opt-phis",
|
||||
"Optimize machine instruction PHIs", false, false);
|
||||
"Optimize machine instruction PHIs", false, false)
|
||||
|
||||
FunctionPass *llvm::createOptimizePHIsPass() { return new OptimizePHIs(); }
|
||||
|
||||
|
@ -39,7 +39,7 @@ STATISTIC(NumReused, "Number of reused lowered phis");
|
||||
|
||||
char PHIElimination::ID = 0;
|
||||
INITIALIZE_PASS(PHIElimination, "phi-node-elimination",
|
||||
"Eliminate PHI nodes for register allocation", false, false);
|
||||
"Eliminate PHI nodes for register allocation", false, false)
|
||||
|
||||
char &llvm::PHIEliminationID = PHIElimination::ID;
|
||||
|
||||
|
@ -85,7 +85,7 @@ namespace {
|
||||
|
||||
char PeepholeOptimizer::ID = 0;
|
||||
INITIALIZE_PASS(PeepholeOptimizer, "peephole-opts",
|
||||
"Peephole Optimizations", false, false);
|
||||
"Peephole Optimizations", false, false)
|
||||
|
||||
FunctionPass *llvm::createPeepholeOptimizerPass() {
|
||||
return new PeepholeOptimizer();
|
||||
|
@ -205,7 +205,7 @@ char PreAllocSplitting::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(PreAllocSplitting, "pre-alloc-splitting",
|
||||
"Pre-Register Allocation Live Interval Splitting",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
char &llvm::PreAllocSplittingID = PreAllocSplitting::ID;
|
||||
|
||||
|
@ -27,7 +27,7 @@ using namespace llvm;
|
||||
|
||||
char ProcessImplicitDefs::ID = 0;
|
||||
INITIALIZE_PASS(ProcessImplicitDefs, "processimpdefs",
|
||||
"Process Implicit Definitions.", false, false);
|
||||
"Process Implicit Definitions.", false, false)
|
||||
|
||||
void ProcessImplicitDefs::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesCFG();
|
||||
|
@ -45,7 +45,7 @@ using namespace llvm;
|
||||
char PEI::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(PEI, "prologepilog",
|
||||
"Prologue/Epilogue Insertion", false, false);
|
||||
"Prologue/Epilogue Insertion", false, false)
|
||||
|
||||
STATISTIC(NumVirtualFrameRegs, "Number of virtual frame regs encountered");
|
||||
STATISTIC(NumScavengedRegs, "Number of frame index regs scavenged");
|
||||
|
@ -371,7 +371,7 @@ namespace {
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(RALinScan, "linearscan-regalloc",
|
||||
"Linear Scan Register Allocator", false, false);
|
||||
"Linear Scan Register Allocator", false, false)
|
||||
|
||||
void RALinScan::ComputeRelatedRegClasses() {
|
||||
// First pass, add all reg classes to the union, and determine at least one
|
||||
|
@ -24,7 +24,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
// Register the RegisterCoalescer interface, providing a nice name to refer to.
|
||||
INITIALIZE_ANALYSIS_GROUP(RegisterCoalescer, "Register Coalescer");
|
||||
INITIALIZE_ANALYSIS_GROUP(RegisterCoalescer, "Register Coalescer")
|
||||
char RegisterCoalescer::ID = 0;
|
||||
|
||||
// RegisterCoalescer destructor: DO NOT move this to the header file
|
||||
|
@ -32,7 +32,7 @@ using namespace llvm;
|
||||
char RenderMachineFunction::ID = 0;
|
||||
INITIALIZE_PASS(RenderMachineFunction, "rendermf",
|
||||
"Render machine functions (and related info) to HTML pages",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
static cl::opt<std::string>
|
||||
outputFileSuffix("rmf-file-suffix",
|
||||
|
@ -66,7 +66,7 @@ DisablePhysicalJoin("disable-physical-join",
|
||||
|
||||
INITIALIZE_AG_PASS(SimpleRegisterCoalescing, RegisterCoalescer,
|
||||
"simple-register-coalescing", "Simple Register Coalescing",
|
||||
false, false, true);
|
||||
false, false, true)
|
||||
|
||||
char &llvm::SimpleRegisterCoalescingID = SimpleRegisterCoalescing::ID;
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace {
|
||||
|
||||
char SlotIndexes::ID = 0;
|
||||
INITIALIZE_PASS(SlotIndexes, "slotindexes",
|
||||
"Slot index numbering", false, false);
|
||||
"Slot index numbering", false, false)
|
||||
|
||||
IndexListEntry* IndexListEntry::getEmptyKeyEntry() {
|
||||
return &*IndexListEntryEmptyKey;
|
||||
|
@ -30,7 +30,7 @@ using namespace llvm;
|
||||
|
||||
char LoopSplitter::ID = 0;
|
||||
INITIALIZE_PASS(LoopSplitter, "loop-splitting",
|
||||
"Split virtual regists across loop boundaries.", false, false);
|
||||
"Split virtual regists across loop boundaries.", false, false)
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -72,7 +72,7 @@ namespace {
|
||||
|
||||
char StackProtector::ID = 0;
|
||||
INITIALIZE_PASS(StackProtector, "stack-protector",
|
||||
"Insert stack protectors", false, false);
|
||||
"Insert stack protectors", false, false)
|
||||
|
||||
FunctionPass *llvm::createStackProtectorPass(const TargetLowering *tli) {
|
||||
return new StackProtector(tli);
|
||||
|
@ -146,7 +146,7 @@ namespace {
|
||||
char StackSlotColoring::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(StackSlotColoring, "stack-slot-coloring",
|
||||
"Stack Slot Coloring", false, false);
|
||||
"Stack Slot Coloring", false, false)
|
||||
|
||||
FunctionPass *llvm::createStackSlotColoringPass(bool RegColor) {
|
||||
return new StackSlotColoring(RegColor);
|
||||
|
@ -151,7 +151,7 @@ namespace {
|
||||
|
||||
char StrongPHIElimination::ID = 0;
|
||||
INITIALIZE_PASS(StrongPHIElimination, "strong-phi-node-elimination",
|
||||
"Eliminate PHI nodes for register allocation, intelligently", false, false);
|
||||
"Eliminate PHI nodes for register allocation, intelligently", false, false)
|
||||
|
||||
char &llvm::StrongPHIEliminationID = StrongPHIElimination::ID;
|
||||
|
||||
|
@ -160,7 +160,7 @@ namespace {
|
||||
|
||||
char TwoAddressInstructionPass::ID = 0;
|
||||
INITIALIZE_PASS(TwoAddressInstructionPass, "twoaddressinstruction",
|
||||
"Two-Address instruction pass", false, false);
|
||||
"Two-Address instruction pass", false, false)
|
||||
|
||||
char &llvm::TwoAddressInstructionPassID = TwoAddressInstructionPass::ID;
|
||||
|
||||
|
@ -52,7 +52,7 @@ namespace {
|
||||
}
|
||||
char UnreachableBlockElim::ID = 0;
|
||||
INITIALIZE_PASS(UnreachableBlockElim, "unreachableblockelim",
|
||||
"Remove unreachable blocks from the CFG", false, false);
|
||||
"Remove unreachable blocks from the CFG", false, false)
|
||||
|
||||
FunctionPass *llvm::createUnreachableBlockEliminationPass() {
|
||||
return new UnreachableBlockElim();
|
||||
@ -106,7 +106,7 @@ namespace {
|
||||
char UnreachableMachineBlockElim::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(UnreachableMachineBlockElim, "unreachable-mbb-elimination",
|
||||
"Remove unreachable machine basic blocks", false, false);
|
||||
"Remove unreachable machine basic blocks", false, false)
|
||||
|
||||
char &llvm::UnreachableMachineBlockElimID = UnreachableMachineBlockElim::ID;
|
||||
|
||||
|
@ -48,7 +48,7 @@ STATISTIC(NumSpills , "Number of register spills");
|
||||
|
||||
char VirtRegMap::ID = 0;
|
||||
|
||||
INITIALIZE_PASS(VirtRegMap, "virtregmap", "Virtual Register Map", false, false);
|
||||
INITIALIZE_PASS(VirtRegMap, "virtregmap", "Virtual Register Map", false, false)
|
||||
|
||||
bool VirtRegMap::runOnMachineFunction(MachineFunction &mf) {
|
||||
MRI = &mf.getRegInfo();
|
||||
|
@ -34,7 +34,7 @@ using namespace llvm;
|
||||
// Handle the Pass registration stuff necessary to use TargetData's.
|
||||
|
||||
// Register the default SparcV9 implementation...
|
||||
INITIALIZE_PASS(TargetData, "targetdata", "Target Data Layout", false, true);
|
||||
INITIALIZE_PASS(TargetData, "targetdata", "Target Data Layout", false, true)
|
||||
char TargetData::ID = 0;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -85,7 +85,7 @@ namespace {
|
||||
|
||||
char ArgPromotion::ID = 0;
|
||||
INITIALIZE_PASS(ArgPromotion, "argpromotion",
|
||||
"Promote 'by reference' arguments to scalars", false, false);
|
||||
"Promote 'by reference' arguments to scalars", false, false)
|
||||
|
||||
Pass *llvm::createArgumentPromotionPass(unsigned maxElements) {
|
||||
return new ArgPromotion(maxElements);
|
||||
|
@ -44,7 +44,7 @@ namespace {
|
||||
|
||||
char ConstantMerge::ID = 0;
|
||||
INITIALIZE_PASS(ConstantMerge, "constmerge",
|
||||
"Merge Duplicate Global Constants", false, false);
|
||||
"Merge Duplicate Global Constants", false, false)
|
||||
|
||||
ModulePass *llvm::createConstantMergePass() { return new ConstantMerge(); }
|
||||
|
||||
|
@ -151,7 +151,7 @@ namespace {
|
||||
|
||||
|
||||
char DAE::ID = 0;
|
||||
INITIALIZE_PASS(DAE, "deadargelim", "Dead Argument Elimination", false, false);
|
||||
INITIALIZE_PASS(DAE, "deadargelim", "Dead Argument Elimination", false, false)
|
||||
|
||||
namespace {
|
||||
/// DAH - DeadArgumentHacking pass - Same as dead argument elimination, but
|
||||
@ -168,7 +168,7 @@ namespace {
|
||||
char DAH::ID = 0;
|
||||
INITIALIZE_PASS(DAH, "deadarghaX0r",
|
||||
"Dead Argument Hacking (BUGPOINT USE ONLY; DO NOT USE)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
/// createDeadArgEliminationPass - This pass removes arguments from functions
|
||||
/// which are not used by the body of the function.
|
||||
|
@ -45,7 +45,7 @@ namespace {
|
||||
}
|
||||
|
||||
char DTE::ID = 0;
|
||||
INITIALIZE_PASS(DTE, "deadtypeelim", "Dead Type Elimination", false, false);
|
||||
INITIALIZE_PASS(DTE, "deadtypeelim", "Dead Type Elimination", false, false)
|
||||
|
||||
ModulePass *llvm::createDeadTypeEliminationPass() {
|
||||
return new DTE();
|
||||
|
@ -70,7 +70,7 @@ namespace {
|
||||
|
||||
char FunctionAttrs::ID = 0;
|
||||
INITIALIZE_PASS(FunctionAttrs, "functionattrs",
|
||||
"Deduce function attributes", false, false);
|
||||
"Deduce function attributes", false, false)
|
||||
|
||||
Pass *llvm::createFunctionAttrsPass() { return new FunctionAttrs(); }
|
||||
|
||||
|
@ -52,7 +52,7 @@ namespace {
|
||||
|
||||
char GlobalDCE::ID = 0;
|
||||
INITIALIZE_PASS(GlobalDCE, "globaldce",
|
||||
"Dead Global Elimination", false, false);
|
||||
"Dead Global Elimination", false, false)
|
||||
|
||||
ModulePass *llvm::createGlobalDCEPass() { return new GlobalDCE(); }
|
||||
|
||||
|
@ -75,7 +75,7 @@ namespace {
|
||||
|
||||
char GlobalOpt::ID = 0;
|
||||
INITIALIZE_PASS(GlobalOpt, "globalopt",
|
||||
"Global Variable Optimizer", false, false);
|
||||
"Global Variable Optimizer", false, false)
|
||||
|
||||
ModulePass *llvm::createGlobalOptimizerPass() { return new GlobalOpt(); }
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace {
|
||||
|
||||
char IPCP::ID = 0;
|
||||
INITIALIZE_PASS(IPCP, "ipconstprop",
|
||||
"Interprocedural constant propagation", false, false);
|
||||
"Interprocedural constant propagation", false, false)
|
||||
|
||||
ModulePass *llvm::createIPConstantPropagationPass() { return new IPCP(); }
|
||||
|
||||
|
@ -62,7 +62,7 @@ namespace {
|
||||
|
||||
char AlwaysInliner::ID = 0;
|
||||
INITIALIZE_PASS(AlwaysInliner, "always-inline",
|
||||
"Inliner for always_inline functions", false, false);
|
||||
"Inliner for always_inline functions", false, false)
|
||||
|
||||
Pass *llvm::createAlwaysInlinerPass() { return new AlwaysInliner(); }
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace {
|
||||
|
||||
char SimpleInliner::ID = 0;
|
||||
INITIALIZE_PASS(SimpleInliner, "inline",
|
||||
"Function Integration/Inlining", false, false);
|
||||
"Function Integration/Inlining", false, false)
|
||||
|
||||
Pass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
|
||||
|
||||
|
@ -64,7 +64,7 @@ namespace {
|
||||
|
||||
char InternalizePass::ID = 0;
|
||||
INITIALIZE_PASS(InternalizePass, "internalize",
|
||||
"Internalize Global Symbols", false, false);
|
||||
"Internalize Global Symbols", false, false)
|
||||
|
||||
InternalizePass::InternalizePass(bool AllButMain)
|
||||
: ModulePass(ID), AllButMain(AllButMain){
|
||||
|
@ -51,7 +51,7 @@ namespace {
|
||||
|
||||
char LoopExtractor::ID = 0;
|
||||
INITIALIZE_PASS(LoopExtractor, "loop-extract",
|
||||
"Extract loops into new functions", false, false);
|
||||
"Extract loops into new functions", false, false)
|
||||
|
||||
namespace {
|
||||
/// SingleLoopExtractor - For bugpoint.
|
||||
@ -63,7 +63,7 @@ namespace {
|
||||
|
||||
char SingleLoopExtractor::ID = 0;
|
||||
INITIALIZE_PASS(SingleLoopExtractor, "loop-extract-single",
|
||||
"Extract at most one loop into a new function", false, false);
|
||||
"Extract at most one loop into a new function", false, false)
|
||||
|
||||
// createLoopExtractorPass - This pass extracts all natural loops from the
|
||||
// program into a function if it can.
|
||||
@ -159,7 +159,7 @@ namespace {
|
||||
char BlockExtractorPass::ID = 0;
|
||||
INITIALIZE_PASS(BlockExtractorPass, "extract-blocks",
|
||||
"Extract Basic Blocks From Module (for bugpoint use)",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
// createBlockExtractorPass - This pass extracts all blocks (except those
|
||||
// specified in the argument list) from the functions in the module.
|
||||
|
@ -122,7 +122,7 @@ namespace {
|
||||
} // end anonymous namespace
|
||||
|
||||
char LowerSetJmp::ID = 0;
|
||||
INITIALIZE_PASS(LowerSetJmp, "lowersetjmp", "Lower Set Jump", false, false);
|
||||
INITIALIZE_PASS(LowerSetJmp, "lowersetjmp", "Lower Set Jump", false, false)
|
||||
|
||||
// run - Run the transformation on the program. We grab the function
|
||||
// prototypes for longjmp and setjmp. If they are used in the program,
|
||||
|
@ -178,7 +178,7 @@ private:
|
||||
} // end anonymous namespace
|
||||
|
||||
char MergeFunctions::ID = 0;
|
||||
INITIALIZE_PASS(MergeFunctions, "mergefunc", "Merge Functions", false, false);
|
||||
INITIALIZE_PASS(MergeFunctions, "mergefunc", "Merge Functions", false, false)
|
||||
|
||||
ModulePass *llvm::createMergeFunctionsPass() {
|
||||
return new MergeFunctions();
|
||||
|
@ -41,7 +41,7 @@ namespace {
|
||||
|
||||
char PartialInliner::ID = 0;
|
||||
INITIALIZE_PASS(PartialInliner, "partial-inliner",
|
||||
"Partial Inliner", false, false);
|
||||
"Partial Inliner", false, false)
|
||||
|
||||
ModulePass* llvm::createPartialInliningPass() { return new PartialInliner(); }
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace {
|
||||
|
||||
char PartSpec::ID = 0;
|
||||
INITIALIZE_PASS(PartSpec, "partialspecialization",
|
||||
"Partial Specialization", false, false);
|
||||
"Partial Specialization", false, false)
|
||||
|
||||
// Specialize F by replacing the arguments (keys) in replacements with the
|
||||
// constants (values). Replace all calls to F with those constants with
|
||||
|
@ -49,7 +49,7 @@ namespace {
|
||||
|
||||
char PruneEH::ID = 0;
|
||||
INITIALIZE_PASS(PruneEH, "prune-eh",
|
||||
"Remove unused exception handling info", false, false);
|
||||
"Remove unused exception handling info", false, false)
|
||||
|
||||
Pass *llvm::createPruneEHPass() { return new PruneEH(); }
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
char StripDeadPrototypesPass::ID = 0;
|
||||
INITIALIZE_PASS(StripDeadPrototypesPass, "strip-dead-prototypes",
|
||||
"Strip Unused Function Prototypes", false, false);
|
||||
"Strip Unused Function Prototypes", false, false)
|
||||
|
||||
bool StripDeadPrototypesPass::runOnModule(Module &M) {
|
||||
bool MadeChange = false;
|
||||
|
@ -90,7 +90,7 @@ namespace {
|
||||
|
||||
char StripSymbols::ID = 0;
|
||||
INITIALIZE_PASS(StripSymbols, "strip",
|
||||
"Strip all symbols from a module", false, false);
|
||||
"Strip all symbols from a module", false, false)
|
||||
|
||||
ModulePass *llvm::createStripSymbolsPass(bool OnlyDebugInfo) {
|
||||
return new StripSymbols(OnlyDebugInfo);
|
||||
@ -99,7 +99,7 @@ ModulePass *llvm::createStripSymbolsPass(bool OnlyDebugInfo) {
|
||||
char StripNonDebugSymbols::ID = 0;
|
||||
INITIALIZE_PASS(StripNonDebugSymbols, "strip-nondebug",
|
||||
"Strip all symbols, except dbg symbols, from a module",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
ModulePass *llvm::createStripNonDebugSymbolsPass() {
|
||||
return new StripNonDebugSymbols();
|
||||
@ -107,7 +107,7 @@ ModulePass *llvm::createStripNonDebugSymbolsPass() {
|
||||
|
||||
char StripDebugDeclare::ID = 0;
|
||||
INITIALIZE_PASS(StripDebugDeclare, "strip-debug-declare",
|
||||
"Strip all llvm.dbg.declare intrinsics", false, false);
|
||||
"Strip all llvm.dbg.declare intrinsics", false, false)
|
||||
|
||||
ModulePass *llvm::createStripDebugDeclarePass() {
|
||||
return new StripDebugDeclare();
|
||||
@ -115,7 +115,7 @@ ModulePass *llvm::createStripDebugDeclarePass() {
|
||||
|
||||
char StripDeadDebugInfo::ID = 0;
|
||||
INITIALIZE_PASS(StripDeadDebugInfo, "strip-dead-debug-info",
|
||||
"Strip debug info for unused symbols", false, false);
|
||||
"Strip debug info for unused symbols", false, false)
|
||||
|
||||
ModulePass *llvm::createStripDeadDebugInfoPass() {
|
||||
return new StripDeadDebugInfo();
|
||||
|
@ -62,7 +62,7 @@ namespace {
|
||||
|
||||
char SRETPromotion::ID = 0;
|
||||
INITIALIZE_PASS(SRETPromotion, "sretpromotion",
|
||||
"Promote sret arguments to multiple ret values", false, false);
|
||||
"Promote sret arguments to multiple ret values", false, false)
|
||||
|
||||
Pass *llvm::createStructRetPromotionPass() {
|
||||
return new SRETPromotion();
|
||||
|
@ -70,7 +70,7 @@ void LLVMInitializeInstCombine(LLVMPassRegistryRef R) {
|
||||
|
||||
char InstCombiner::ID = 0;
|
||||
INITIALIZE_PASS(InstCombiner, "instcombine",
|
||||
"Combine redundant instructions", false, false);
|
||||
"Combine redundant instructions", false, false)
|
||||
|
||||
void InstCombiner::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addPreservedID(LCSSAID);
|
||||
|
@ -44,7 +44,7 @@ namespace {
|
||||
|
||||
char EdgeProfiler::ID = 0;
|
||||
INITIALIZE_PASS(EdgeProfiler, "insert-edge-profiling",
|
||||
"Insert instrumentation for edge profiling", false, false);
|
||||
"Insert instrumentation for edge profiling", false, false)
|
||||
|
||||
ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); }
|
||||
|
||||
|
@ -52,7 +52,7 @@ namespace {
|
||||
char OptimalEdgeProfiler::ID = 0;
|
||||
INITIALIZE_PASS(OptimalEdgeProfiler, "insert-optimal-edge-profiling",
|
||||
"Insert optimal instrumentation for edge profiling",
|
||||
false, false);
|
||||
false, false)
|
||||
|
||||
ModulePass *llvm::createOptimalEdgeProfilerPass() {
|
||||
return new OptimalEdgeProfiler();
|
||||
|
@ -45,7 +45,7 @@ namespace {
|
||||
}
|
||||
|
||||
char ADCE::ID = 0;
|
||||
INITIALIZE_PASS(ADCE, "adce", "Aggressive Dead Code Elimination", false, false);
|
||||
INITIALIZE_PASS(ADCE, "adce", "Aggressive Dead Code Elimination", false, false)
|
||||
|
||||
bool ADCE::runOnFunction(Function& F) {
|
||||
SmallPtrSet<Instruction*, 128> alive;
|
||||
|
@ -75,7 +75,7 @@ namespace {
|
||||
|
||||
char BlockPlacement::ID = 0;
|
||||
INITIALIZE_PASS(BlockPlacement, "block-placement",
|
||||
"Profile Guided Basic Block Placement", false, false);
|
||||
"Profile Guided Basic Block Placement", false, false)
|
||||
|
||||
FunctionPass *llvm::createBlockPlacementPass() { return new BlockPlacement(); }
|
||||
|
||||
|
@ -92,7 +92,7 @@ namespace {
|
||||
|
||||
char CodeGenPrepare::ID = 0;
|
||||
INITIALIZE_PASS(CodeGenPrepare, "codegenprepare",
|
||||
"Optimize for code generation", false, false);
|
||||
"Optimize for code generation", false, false)
|
||||
|
||||
FunctionPass *llvm::createCodeGenPreparePass(const TargetLowering *TLI) {
|
||||
return new CodeGenPrepare(TLI);
|
||||
|
@ -46,7 +46,7 @@ namespace {
|
||||
|
||||
char ConstantPropagation::ID = 0;
|
||||
INITIALIZE_PASS(ConstantPropagation, "constprop",
|
||||
"Simple constant propagation", false, false);
|
||||
"Simple constant propagation", false, false)
|
||||
|
||||
FunctionPass *llvm::createConstantPropagationPass() {
|
||||
return new ConstantPropagation();
|
||||
|
@ -51,7 +51,7 @@ namespace {
|
||||
|
||||
char CorrelatedValuePropagation::ID = 0;
|
||||
INITIALIZE_PASS(CorrelatedValuePropagation, "correlated-propagation",
|
||||
"Value Propagation", false, false);
|
||||
"Value Propagation", false, false)
|
||||
|
||||
// Public interface to the Value Propagation pass
|
||||
Pass *llvm::createCorrelatedValuePropagationPass() {
|
||||
|
@ -57,7 +57,7 @@ namespace {
|
||||
|
||||
char DeadInstElimination::ID = 0;
|
||||
INITIALIZE_PASS(DeadInstElimination, "die",
|
||||
"Dead Instruction Elimination", false, false);
|
||||
"Dead Instruction Elimination", false, false)
|
||||
|
||||
Pass *llvm::createDeadInstEliminationPass() {
|
||||
return new DeadInstElimination();
|
||||
@ -81,7 +81,7 @@ namespace {
|
||||
}
|
||||
|
||||
char DCE::ID = 0;
|
||||
INITIALIZE_PASS(DCE, "dce", "Dead Code Elimination", false, false);
|
||||
INITIALIZE_PASS(DCE, "dce", "Dead Code Elimination", false, false)
|
||||
|
||||
bool DCE::runOnFunction(Function &F) {
|
||||
// Start out with all of the instructions in the worklist...
|
||||
|
@ -82,7 +82,7 @@ namespace {
|
||||
}
|
||||
|
||||
char DSE::ID = 0;
|
||||
INITIALIZE_PASS(DSE, "dse", "Dead Store Elimination", false, false);
|
||||
INITIALIZE_PASS(DSE, "dse", "Dead Store Elimination", false, false)
|
||||
|
||||
FunctionPass *llvm::createDeadStoreEliminationPass() { return new DSE(); }
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace {
|
||||
|
||||
char GEPSplitter::ID = 0;
|
||||
INITIALIZE_PASS(GEPSplitter, "split-geps",
|
||||
"split complex GEPs into simple GEPs", false, false);
|
||||
"split complex GEPs into simple GEPs", false, false)
|
||||
|
||||
FunctionPass *llvm::createGEPSplitterPass() {
|
||||
return new GEPSplitter();
|
||||
|
@ -713,7 +713,7 @@ FunctionPass *llvm::createGVNPass(bool NoLoads) {
|
||||
return new GVN(NoLoads);
|
||||
}
|
||||
|
||||
INITIALIZE_PASS(GVN, "gvn", "Global Value Numbering", false, false);
|
||||
INITIALIZE_PASS(GVN, "gvn", "Global Value Numbering", false, false)
|
||||
|
||||
void GVN::dump(DenseMap<uint32_t, Value*>& d) {
|
||||
errs() << "{\n";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user