[llvm-commits] [llvm] r41154 - /llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Fri Aug 17 18:58:16 PDT 2007


Author: bruno
Date: Fri Aug 17 20:58:15 2007
New Revision: 41154

URL: http://llvm.org/viewvc/llvm-project?rev=41154&view=rev
Log:
createMipsDelaySlotFillerPass added to mips codegen runtime 

Modified:
    llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=41154&r1=41153&r2=41154&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Fri Aug 17 20:58:15 2007
@@ -64,11 +64,11 @@
 // Implemented by targets that want to run passes immediately before 
 // machine code is emitted. return true if -print-machineinstrs should 
 // print out the code after the passes.
-// TODO: Delay slot must be implemented here.
 bool MipsTargetMachine::
 addPreEmitPass(FunctionPassManager &PM, bool Fast) 
 {
-  return false;
+  PM.add(createMipsDelaySlotFillerPass(*this));
+  return true;
 }
 
 // Implements the AssemblyEmitter for the target. Must return





More information about the llvm-commits mailing list