mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Run memsel inserter just before emit assembly to avoid tinkering by other passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -47,7 +47,7 @@ bool PIC16TargetMachine::addInstSelector(PassManagerBase &PM,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PIC16TargetMachine::addPostRegAlloc(PassManagerBase &PM,
|
bool PIC16TargetMachine::addPreEmitPass(PassManagerBase &PM,
|
||||||
CodeGenOpt::Level OptLevel) {
|
CodeGenOpt::Level OptLevel) {
|
||||||
PM.add(createPIC16MemSelOptimizerPass());
|
PM.add(createPIC16MemSelOptimizerPass());
|
||||||
return true; // -print-machineinstr should print after this.
|
return true; // -print-machineinstr should print after this.
|
||||||
|
@@ -59,7 +59,7 @@ public:
|
|||||||
|
|
||||||
virtual bool addInstSelector(PassManagerBase &PM,
|
virtual bool addInstSelector(PassManagerBase &PM,
|
||||||
CodeGenOpt::Level OptLevel);
|
CodeGenOpt::Level OptLevel);
|
||||||
virtual bool addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
|
virtual bool addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
|
||||||
}; // PIC16TargetMachine.
|
}; // PIC16TargetMachine.
|
||||||
|
|
||||||
/// CooperTargetMachine
|
/// CooperTargetMachine
|
||||||
|
Reference in New Issue
Block a user