[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstrAnnot.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Aug 4 00:34:54 PDT 2004



Changes in directory llvm/lib/CodeGen:

MachineInstrAnnot.cpp updated: 1.13 -> 1.14
---
Log message:

Tighten up some whitespace.  Include SparcV9TmpInstr.h to pick up
the def. of TmpInstruction, instead of InstrSelection.h, which is
dead.


---
Diffs of the changes:  (+4 -10)

Index: llvm/lib/CodeGen/MachineInstrAnnot.cpp
diff -u llvm/lib/CodeGen/MachineInstrAnnot.cpp:1.13 llvm/lib/CodeGen/MachineInstrAnnot.cpp:1.14
--- llvm/lib/CodeGen/MachineInstrAnnot.cpp:1.13	Thu Jul 29 12:20:54 2004
+++ llvm/lib/CodeGen/MachineInstrAnnot.cpp	Wed Aug  4 02:34:44 2004
@@ -13,7 +13,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "../Target/SparcV9/MachineInstrAnnot.h"
-#include "llvm/CodeGen/InstrSelection.h"
+#include "../Target/SparcV9/SparcV9TmpInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/Instructions.h"
 #include "llvm/Type.h"
@@ -27,8 +27,7 @@
             ? NULL : _callInstr->getCalledValue()),
     retAddrReg(_retAddrReg),
     isVarArgs(_isVarArgs),
-    noPrototype(_noPrototype)
-{
+    noPrototype(_noPrototype) {
   unsigned int numArgs = callInstr->getNumOperands();
   argInfoVec.reserve(numArgs);
   assert(callInstr->getOperand(0) == callInstr->getCalledValue()
@@ -41,14 +40,10 @@
   MachineCodeForInstruction::get(callInstr).setCallArgsDescriptor(this); 
 }
 
-
-CallInst*
-CallArgsDescriptor::getReturnValue() const
-{
+CallInst *CallArgsDescriptor::getReturnValue() const {
   return (callInstr->getType() == Type::VoidTy? NULL : callInstr);
 }
 
-
 // Mechanism to get the descriptor for a CALL MachineInstr.
 // We get the LLVM CallInstr from the ret. addr. register argument
 // of the CALL MachineInstr (which is explicit operand #3 for indirect
@@ -58,8 +53,7 @@
 // This is roundabout but avoids adding a new map or annotation just
 // to keep track of CallArgsDescriptors.
 // 
-CallArgsDescriptor *CallArgsDescriptor::get(const MachineInstr* MI)
-{
+CallArgsDescriptor *CallArgsDescriptor::get(const MachineInstr* MI) {
   const TmpInstruction* retAddrReg =
     cast<TmpInstruction>(isa<Function>(MI->getOperand(0).getVRegValue())
                          ? MI->getImplicitRef(MI->getNumImplicitRefs()-1)






More information about the llvm-commits mailing list