Add command line arguments for Constant Pool Merging & Sparse Conditional Constant Prop

llvm-svn: 94
This commit is contained in:
Chris Lattner 2001-06-27 23:37:58 +00:00
parent e32de63e07
commit bef00adb40

View File

@ -31,12 +31,14 @@ struct {
const string ArgName, Name;
bool (*OptPtr)(Module *C);
} OptTable[] = {
{ "-dce", "Dead Code Elimination", DoDeadCodeElimination },
{ "-constprop","Constant Propogation", DoConstantPropogation },
{ "-inline" ,"Method Inlining", DoMethodInlining },
{ "-strip" ,"Strip Symbols", DoSymbolStripping },
{ "-mstrip" ,"Strip Module Symbols", DoFullSymbolStripping },
{ "-indvars" ,"Simplify Induction Vars", DoInductionVariableCannonicalize },
{ "-dce" , "Dead Code Elimination", DoDeadCodeElimination },
{ "-constprop" , "Constant Propogation", DoConstantPropogation },
{ "-inline" , "Method Inlining", DoMethodInlining },
{ "-strip" , "Strip Symbols", DoSymbolStripping },
{ "-mstrip" , "Strip Module Symbols", DoFullSymbolStripping },
{ "-indvars" , "Simplify Induction Vars",DoInductionVariableCannonicalize },
{ "-sccp" , "Sparse Conditional Constant Prop", DoSCCP<Module> },
{ "-cpm" , "Constant Pool Merging", DoConstantPoolMerging },
};
int main(int argc, char **argv) {