1. Keep lines in 80 columns.
2. Remove unused function. 3. Correct indentation. llvm-svn: 131028
This commit is contained in:
		
							parent
							
								
									8c0487006e
								
							
						
					
					
						commit
						cbb7fa68ed
					
				| 
						 | 
					@ -679,7 +679,7 @@ the <tt class="docutils literal">llvmc</tt> program behaves when it needs to cho
 | 
				
			||||||
<a href="mailto:foldr@codedgers.com">Mikhail Glushenkov</a><br />
 | 
					<a href="mailto:foldr@codedgers.com">Mikhail Glushenkov</a><br />
 | 
				
			||||||
<a href="http://llvm.org">LLVM Compiler Infrastructure</a><br />
 | 
					<a href="http://llvm.org">LLVM Compiler Infrastructure</a><br />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $
 | 
					Last modified: $Date$
 | 
				
			||||||
</address></div>
 | 
					</address></div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,16 +1,16 @@
 | 
				
			||||||
//===-- MipsEmitGPRestore.cpp - Emit GP restore instruction-----------------===//
 | 
					//===-- MipsEmitGPRestore.cpp - Emit GP restore instruction----------------===//
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//                     The LLVM Compiler Infrastructure
 | 
					//                     The LLVM Compiler Infrastructure
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// This file is distributed under the University of Illinois Open Source
 | 
					// This file is distributed under the University of Illinois Open Source
 | 
				
			||||||
// License. See LICENSE.TXT for details.
 | 
					// License. See LICENSE.TXT for details.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//===-----------------------------------------------------------------------===//
 | 
					//===----------------------------------------------------------------------===//
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// This pass emits instructions that restore $gp right
 | 
					// This pass emits instructions that restore $gp right
 | 
				
			||||||
// after jalr instructions.
 | 
					// after jalr instructions.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//===-----------------------------------------------------------------------===//
 | 
					//===----------------------------------------------------------------------===//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define DEBUG_TYPE "emit-gp-restore"
 | 
					#define DEBUG_TYPE "emit-gp-restore"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,7 +38,6 @@ namespace {
 | 
				
			||||||
      return "Mips Emit GP Restore";
 | 
					      return "Mips Emit GP Restore";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
 | 
					 | 
				
			||||||
    bool runOnMachineFunction(MachineFunction &F);
 | 
					    bool runOnMachineFunction(MachineFunction &F);
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  char Inserter::ID = 0;
 | 
					  char Inserter::ID = 0;
 | 
				
			||||||
| 
						 | 
					@ -64,7 +63,8 @@ bool Inserter::runOnMachineFunction(MachineFunction &F) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      DebugLoc dl = I->getDebugLoc();
 | 
					      DebugLoc dl = I->getDebugLoc();
 | 
				
			||||||
      // emit lw $gp, ($gp save slot on stack) after jalr
 | 
					      // emit lw $gp, ($gp save slot on stack) after jalr
 | 
				
			||||||
      BuildMI(MBB, ++I, dl, TII->get(Mips::LW), Mips::GP).addImm(0).addFrameIndex(FI);
 | 
					      BuildMI(MBB, ++I, dl, TII->get(Mips::LW), Mips::GP).addImm(0)
 | 
				
			||||||
 | 
					        .addFrameIndex(FI);
 | 
				
			||||||
      Changed = true;
 | 
					      Changed = true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  } 
 | 
					  } 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -186,7 +186,7 @@ eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
 | 
				
			||||||
  unsigned OrigReg = getFrameRegister(MF);
 | 
					  unsigned OrigReg = getFrameRegister(MF);
 | 
				
			||||||
  int OrigImm = Offset;
 | 
					  int OrigImm = Offset;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// OrigImm fits in the 16-bit field
 | 
					  // OrigImm fits in the 16-bit field
 | 
				
			||||||
  if (OrigImm < 0x8000 && OrigImm >= -0x8000) {
 | 
					  if (OrigImm < 0x8000 && OrigImm >= -0x8000) {
 | 
				
			||||||
    NewReg = OrigReg;
 | 
					    NewReg = OrigReg;
 | 
				
			||||||
    NewImm = OrigImm;
 | 
					    NewImm = OrigImm;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue