mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
the ChangeAllocations.h header file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "llvm/Transforms/LevelChange.h"
|
||||
#include "llvm/Transforms/MethodInlining.h"
|
||||
#include "llvm/Transforms/SymbolStripping.h"
|
||||
#include "llvm/Transforms/LowerAllocations.h"
|
||||
#include "llvm/Transforms/IPO/SimpleStructMutation.h"
|
||||
#include "llvm/Transforms/IPO/GlobalDCE.h"
|
||||
#include "llvm/Transforms/Scalar/DCE.h"
|
||||
@ -34,7 +35,7 @@ enum Opts {
|
||||
dce, constprop, inlining, constmerge, strip, mstrip,
|
||||
|
||||
// Miscellaneous Transformations
|
||||
trace, tracem, print, cleangcc,
|
||||
trace, tracem, print, raiseallocs, cleangcc,
|
||||
|
||||
// More powerful optimizations
|
||||
indvars, instcombine, sccp, adce, raise,
|
||||
@ -61,6 +62,7 @@ struct {
|
||||
{ trace , new InsertTraceCode(true, true) },
|
||||
{ tracem , new InsertTraceCode(false, true) },
|
||||
{ print , new PrintMethodPass("Current Method: \n",&cerr) },
|
||||
{ raiseallocs, new RaiseAllocations() },
|
||||
{ cleangcc , new CleanupGCCOutput() },
|
||||
{ globaldce , new GlobalDCE() },
|
||||
{ swapstructs, new SimpleStructMutation(SimpleStructMutation::SwapElements) },
|
||||
@ -88,6 +90,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags,
|
||||
clEnumVal(swapstructs, "Swap structure types around"),
|
||||
clEnumVal(sortstructs, "Sort structure elements"),
|
||||
|
||||
clEnumVal(raiseallocs, "Raise allocations from calls to instructions"),
|
||||
clEnumVal(cleangcc , "Cleanup GCC Output"),
|
||||
clEnumVal(raise , "Raise to Higher Level"),
|
||||
clEnumVal(trace , "Insert BB & Method trace code"),
|
||||
|
Reference in New Issue
Block a user