diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-12 18:21:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-12 18:21:13 +0000 |
commit | 9d6e7eb74fce8dccaeb3f42c6392de727baff310 (patch) | |
tree | 9fb45eb359a47bca845fd0dea164607ba2feb03a /tools/opt/opt.cpp | |
parent | 23f0ce610224e8cfd820ee2dcfc3a4c295ca2ced (diff) | |
download | llvm-9d6e7eb74fce8dccaeb3f42c6392de727baff310.tar.gz llvm-9d6e7eb74fce8dccaeb3f42c6392de727baff310.tar.bz2 llvm-9d6e7eb74fce8dccaeb3f42c6392de727baff310.tar.xz |
Expose funcresolve pass through opt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index ce60d9453e..c2c2620966 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -40,7 +40,7 @@ enum Opts { dce, die, constprop, inlining, constmerge, strip, mstrip, mergereturn, // Miscellaneous Transformations - raiseallocs, cleangcc, lowerrefs, + raiseallocs, funcresolve, cleangcc, lowerrefs, // Printing and verifying... print, verify, @@ -91,12 +91,14 @@ struct { { raiseallocs, createRaiseAllocationsPass }, { cleangcc , createCleanupGCCOutputPass }, + { funcresolve, createFunctionResolvingPass }, { globaldce , createGlobalDCEPass }, { swapstructs, createSwapElementsPass }, { sortstructs, createSortElementsPass }, { poolalloc , createPoolAllocatePass }, }; + // Command line option handling code... // cl::String InputFilename ("", "Load <arg> file to optimize", cl::NoFlags, "-"); @@ -128,6 +130,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags, clEnumVal(raiseallocs, "Raise allocations from calls to instructions"), clEnumVal(cleangcc , "Cleanup GCC Output"), + clEnumVal(funcresolve, "Resolve calls to foo(...) to foo(<concrete types>)"), clEnumVal(raise , "Raise to Higher Level"), clEnumVal(trace , "Insert BB & Method trace code"), clEnumVal(tracem , "Insert Method trace code only"), |