mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Move the Raise xform from opt to transforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
|
|
||||||
TOOLNAME = gccas
|
TOOLNAME = gccas
|
||||||
USEDLIBS = asmparser bcwriter analysis transforms opt vmcore asmwriter support
|
USEDLIBS = asmparser bcwriter analysis transforms opt vmcore asmwriter support target
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Assembly/Parser.h"
|
#include "llvm/Assembly/Parser.h"
|
||||||
#include "llvm/Transforms/CleanupGCCOutput.h"
|
#include "llvm/Transforms/CleanupGCCOutput.h"
|
||||||
#include "llvm/Optimizations/LevelChange.h"
|
#include "llvm/Transforms/LevelChange.h"
|
||||||
#include "llvm/Optimizations/ConstantProp.h"
|
#include "llvm/Optimizations/ConstantProp.h"
|
||||||
#include "llvm/Optimizations/DCE.h"
|
#include "llvm/Optimizations/DCE.h"
|
||||||
#include "llvm/Transforms/ConstantMerge.h"
|
#include "llvm/Transforms/ConstantMerge.h"
|
||||||
@ -64,7 +64,7 @@ int main(int argc, char **argv) {
|
|||||||
//
|
//
|
||||||
vector<Pass*> Passes;
|
vector<Pass*> Passes;
|
||||||
Passes.push_back(new CleanupGCCOutput()); // Fix gccisms
|
Passes.push_back(new CleanupGCCOutput()); // Fix gccisms
|
||||||
Passes.push_back(new opt::RaiseRepresentation());// Fix general low level code
|
Passes.push_back(new RaisePointerReferences()); // Fix general low level code
|
||||||
Passes.push_back(new opt::ConstantPropogation());// Trivial const prop
|
Passes.push_back(new opt::ConstantPropogation());// Trivial const prop
|
||||||
Passes.push_back(new opt::DeadCodeElimination());// Trivial DCE
|
Passes.push_back(new opt::DeadCodeElimination());// Trivial DCE
|
||||||
Passes.push_back(new ConstantMerge()); // Merge dup global constants
|
Passes.push_back(new ConstantMerge()); // Merge dup global constants
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
TOOLNAME = opt
|
TOOLNAME = opt
|
||||||
USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms
|
USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms target
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "llvm/Assembly/PrintModulePass.h"
|
#include "llvm/Assembly/PrintModulePass.h"
|
||||||
#include "llvm/Transforms/ConstantMerge.h"
|
#include "llvm/Transforms/ConstantMerge.h"
|
||||||
#include "llvm/Transforms/CleanupGCCOutput.h"
|
#include "llvm/Transforms/CleanupGCCOutput.h"
|
||||||
|
#include "llvm/Transforms/LevelChange.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
using namespace opt;
|
using namespace opt;
|
||||||
@ -43,7 +44,7 @@ struct {
|
|||||||
{ indvars , new opt::InductionVariableCannonicalize() },
|
{ indvars , new opt::InductionVariableCannonicalize() },
|
||||||
{ sccp , new opt::SCCPPass() },
|
{ sccp , new opt::SCCPPass() },
|
||||||
{ adce , new opt::AgressiveDCE() },
|
{ adce , new opt::AgressiveDCE() },
|
||||||
{ raise , new opt::RaiseRepresentation() },
|
{ raise , new RaisePointerReferences() },
|
||||||
{ trace , new InsertTraceCode(true, true) },
|
{ trace , new InsertTraceCode(true, true) },
|
||||||
{ tracem , new InsertTraceCode(false, true) },
|
{ tracem , new InsertTraceCode(false, true) },
|
||||||
{ print , new PrintModulePass("Current Method: \n",&cerr) },
|
{ print , new PrintModulePass("Current Method: \n",&cerr) },
|
||||||
|
Reference in New Issue
Block a user