[llvm-commits] [llvm] r78369 - in /llvm/trunk/lib/Target/PIC16: PIC16TargetMachine.cpp PIC16TargetMachine.h

Sanjiv Gupta sanjiv.gupta at microchip.com
Thu Aug 6 22:44:27 PDT 2009


Author: sgupta
Date: Fri Aug  7 00:44:27 2009
New Revision: 78369

URL: http://llvm.org/viewvc/llvm-project?rev=78369&view=rev
Log:
Run memsel inserter just before emit assembly to avoid tinkering by other passes.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.cpp
    llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.h

Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.cpp?rev=78369&r1=78368&r2=78369&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.cpp Fri Aug  7 00:44:27 2009
@@ -47,7 +47,7 @@
   return false;
 }
 
-bool PIC16TargetMachine::addPostRegAlloc(PassManagerBase &PM, 
+bool PIC16TargetMachine::addPreEmitPass(PassManagerBase &PM, 
                                          CodeGenOpt::Level OptLevel) {
   PM.add(createPIC16MemSelOptimizerPass());
   return true;  // -print-machineinstr should print after this.

Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.h?rev=78369&r1=78368&r2=78369&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.h (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetMachine.h Fri Aug  7 00:44:27 2009
@@ -59,7 +59,7 @@
 
   virtual bool addInstSelector(PassManagerBase &PM,
                                CodeGenOpt::Level OptLevel);
-  virtual bool addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
+  virtual bool addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
 }; // PIC16TargetMachine.
 
 /// CooperTargetMachine





More information about the llvm-commits mailing list