mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 06:38:41 +00:00
Expose funcresolve pass through opt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23f0ce6102
commit
9d6e7eb74f
@ -40,7 +40,7 @@ enum Opts {
|
|||||||
dce, die, constprop, inlining, constmerge, strip, mstrip, mergereturn,
|
dce, die, constprop, inlining, constmerge, strip, mstrip, mergereturn,
|
||||||
|
|
||||||
// Miscellaneous Transformations
|
// Miscellaneous Transformations
|
||||||
raiseallocs, cleangcc, lowerrefs,
|
raiseallocs, funcresolve, cleangcc, lowerrefs,
|
||||||
|
|
||||||
// Printing and verifying...
|
// Printing and verifying...
|
||||||
print, verify,
|
print, verify,
|
||||||
@ -91,12 +91,14 @@ struct {
|
|||||||
|
|
||||||
{ raiseallocs, createRaiseAllocationsPass },
|
{ raiseallocs, createRaiseAllocationsPass },
|
||||||
{ cleangcc , createCleanupGCCOutputPass },
|
{ cleangcc , createCleanupGCCOutputPass },
|
||||||
|
{ funcresolve, createFunctionResolvingPass },
|
||||||
{ globaldce , createGlobalDCEPass },
|
{ globaldce , createGlobalDCEPass },
|
||||||
{ swapstructs, createSwapElementsPass },
|
{ swapstructs, createSwapElementsPass },
|
||||||
{ sortstructs, createSortElementsPass },
|
{ sortstructs, createSortElementsPass },
|
||||||
{ poolalloc , createPoolAllocatePass },
|
{ poolalloc , createPoolAllocatePass },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Command line option handling code...
|
// Command line option handling code...
|
||||||
//
|
//
|
||||||
cl::String InputFilename ("", "Load <arg> file to optimize", cl::NoFlags, "-");
|
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(raiseallocs, "Raise allocations from calls to instructions"),
|
||||||
clEnumVal(cleangcc , "Cleanup GCC Output"),
|
clEnumVal(cleangcc , "Cleanup GCC Output"),
|
||||||
|
clEnumVal(funcresolve, "Resolve calls to foo(...) to foo(<concrete types>)"),
|
||||||
clEnumVal(raise , "Raise to Higher Level"),
|
clEnumVal(raise , "Raise to Higher Level"),
|
||||||
clEnumVal(trace , "Insert BB & Method trace code"),
|
clEnumVal(trace , "Insert BB & Method trace code"),
|
||||||
clEnumVal(tracem , "Insert Method trace code only"),
|
clEnumVal(tracem , "Insert Method trace code only"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user