summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-26 21:12:44 +0000
committerChris Lattner <sabre@nondot.org>2002-07-26 21:12:44 +0000
commita2c098598058ae8466f6141804fdba50b758b0fd (patch)
tree0eb509aa12fe009ee16265c0bd5f1a1a226720a3 /llvm/lib/Transforms/IPO
parentd858d8087fae2b014bd5ee520e53e1e34f055794 (diff)
downloadbcm5719-llvm-a2c098598058ae8466f6141804fdba50b758b0fd.tar.gz
bcm5719-llvm-a2c098598058ae8466f6141804fdba50b758b0fd.zip
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses llvm-svn: 3112
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/ConstantMerge.cpp4
-rw-r--r--llvm/lib/Transforms/IPO/DeadTypeElimination.cpp2
-rw-r--r--llvm/lib/Transforms/IPO/FunctionResolution.cpp2
-rw-r--r--llvm/lib/Transforms/IPO/GlobalDCE.cpp2
-rw-r--r--llvm/lib/Transforms/IPO/Internalize.cpp2
-rw-r--r--llvm/lib/Transforms/IPO/OldPoolAllocate.cpp4
-rw-r--r--llvm/lib/Transforms/IPO/SimpleStructMutation.cpp12
7 files changed, 14 insertions, 14 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index 905c7a52eb9..b979104401c 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -31,8 +31,8 @@ namespace {
}
};
-Statistic<> NumMerged("constmerge\t\t- Number of global constants merged");
-RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
+ Statistic<> NumMerged("constmerge\t\t- Number of global constants merged");
+ RegisterOpt<ConstantMerge> X("constmerge","Merge Duplicate Global Constants");
}
Pass *createConstantMergePass() { return new ConstantMerge(); }
diff --git a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
index f276ca7c000..3473f526dcd 100644
--- a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
+++ b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
@@ -30,7 +30,7 @@ namespace {
AU.addRequired(FindUsedTypes::ID);
}
};
- RegisterPass<DTE> X("deadtypeelim", "Dead Type Elimination");
+ RegisterOpt<DTE> X("deadtypeelim", "Dead Type Elimination");
Statistic<> NumKilled("deadtypeelim\t- Number of unused typenames removed from symtab");
}
diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
index 0d05611c946..44f84851211 100644
--- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
@@ -32,7 +32,7 @@ namespace {
struct FunctionResolvingPass : public Pass {
bool run(Module &M);
};
- RegisterPass<FunctionResolvingPass> X("funcresolve", "Resolve Functions");
+ RegisterOpt<FunctionResolvingPass> X("funcresolve", "Resolve Functions");
}
Pass *createFunctionResolvingPass() {
diff --git a/llvm/lib/Transforms/IPO/GlobalDCE.cpp b/llvm/lib/Transforms/IPO/GlobalDCE.cpp
index a61b1ab592e..029456ef5e6 100644
--- a/llvm/lib/Transforms/IPO/GlobalDCE.cpp
+++ b/llvm/lib/Transforms/IPO/GlobalDCE.cpp
@@ -86,7 +86,7 @@ namespace {
AU.addRequired(CallGraph::ID);
}
};
- RegisterPass<GlobalDCE> X("globaldce", "Dead Global Elimination");
+ RegisterOpt<GlobalDCE> X("globaldce", "Dead Global Elimination");
}
Pass *createGlobalDCEPass() { return new GlobalDCE(); }
diff --git a/llvm/lib/Transforms/IPO/Internalize.cpp b/llvm/lib/Transforms/IPO/Internalize.cpp
index b6a48b4e22d..7ea7a6fff84 100644
--- a/llvm/lib/Transforms/IPO/Internalize.cpp
+++ b/llvm/lib/Transforms/IPO/Internalize.cpp
@@ -41,7 +41,7 @@ class InternalizePass : public Pass {
}
};
-RegisterPass<InternalizePass> X("internalize", "Internalize Functions");
+ RegisterOpt<InternalizePass> X("internalize", "Internalize Functions");
} // end anonymous namespace
Pass *createInternalizePass() {
diff --git a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp b/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp
index c22d53ef917..43fd162d8e6 100644
--- a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp
+++ b/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp
@@ -315,8 +315,8 @@ namespace {
};
- RegisterPass<PoolAllocate> X("poolalloc",
- "Pool allocate disjoint datastructures");
+ RegisterOpt<PoolAllocate> X("poolalloc",
+ "Pool allocate disjoint datastructures");
}
// isNotPoolableAlloc - This is a predicate that returns true if the specified
diff --git a/llvm/lib/Transforms/IPO/SimpleStructMutation.cpp b/llvm/lib/Transforms/IPO/SimpleStructMutation.cpp
index 464d628e10b..59871556aca 100644
--- a/llvm/lib/Transforms/IPO/SimpleStructMutation.cpp
+++ b/llvm/lib/Transforms/IPO/SimpleStructMutation.cpp
@@ -189,10 +189,10 @@ Pass *createSortElementsPass(const TargetData &TD) {
}
namespace {
- RegisterPass<SwapStructElements> X("swapstructs",
- "Swap structure types around",
- createSwapElementsPass);
- RegisterPass<SortStructElements> Y("sortstructs",
- "Sort structure elements by size",
- createSortElementsPass);
+ RegisterOpt<SwapStructElements> X("swapstructs",
+ "Swap structure types around",
+ createSwapElementsPass);
+ RegisterOpt<SortStructElements> Y("sortstructs",
+ "Sort structure elements by size",
+ createSortElementsPass);
}
OpenPOWER on IntegriCloud