[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp PPCInstrInfo.h PPCJITInfo.cpp PPCRelocations.h

Chris Lattner lattner at cs.uiuc.edu
Wed May 24 10:04:35 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.182 -> 1.183
PPCInstrInfo.h updated: 1.14 -> 1.15
PPCJITInfo.cpp updated: 1.21 -> 1.22
PPCRelocations.h updated: 1.6 -> 1.7
---
Log message:

Patches to make the LLVM sources more -pedantic clean.  Patch provided
by Anton Korobeynikov!  This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 .


---
Diffs of the changes:  (+5 -5)

 PPCISelLowering.cpp |    2 +-
 PPCInstrInfo.h      |    4 ++--
 PPCJITInfo.cpp      |    2 +-
 PPCRelocations.h    |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.182 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.183
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.182	Tue May 23 19:15:25 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Wed May 24 12:04:04 2006
@@ -1748,7 +1748,7 @@
     OP_VSPLTISW3,
     OP_VSLDOI4,
     OP_VSLDOI8,
-    OP_VSLDOI12,
+    OP_VSLDOI12
   };
   
   if (OpNum == OP_COPY) {


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.h
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.14 llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.15
--- llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.14	Sun Mar 12 23:15:10 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.h	Wed May 24 12:04:04 2006
@@ -44,7 +44,7 @@
   /// PPC970_Mask/Shift - This is a bitmask that selects the pipeline type that
   /// an instruction is issued to.
   PPC970_Shift = 3,
-  PPC970_Mask = 0x07 << PPC970_Shift,
+  PPC970_Mask = 0x07 << PPC970_Shift
 };
 enum PPC970_Unit {
   /// These are the various PPC970 execution unit pipelines.  Each instruction
@@ -56,7 +56,7 @@
   PPC970_CRU    = 4 << PPC970_Shift,   // Control Register Unit
   PPC970_VALU   = 5 << PPC970_Shift,   // Vector ALU
   PPC970_VPERM  = 6 << PPC970_Shift,   // Vector Permute Unit
-  PPC970_BRU    = 7 << PPC970_Shift,   // Branch Unit
+  PPC970_BRU    = 7 << PPC970_Shift    // Branch Unit
 };
 }
   


Index: llvm/lib/Target/PowerPC/PPCJITInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.21 llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.22
--- llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.21	Tue May  2 14:14:47 2006
+++ llvm/lib/Target/PowerPC/PPCJITInfo.cpp	Wed May 24 12:04:04 2006
@@ -165,7 +165,7 @@
 void *PPCJITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
   // If this is just a call to an external function, emit a branch instead of a
   // call.  The code is the same except for one bit of the last instruction.
-  if (Fn != PPC32CompilationCallback) {
+  if (Fn != (void*)PPC32CompilationCallback) {
     MCE.startFunctionStub(4*4);
     void *Addr = (void*)(intptr_t)MCE.getCurrentPCValue();
     MCE.emitWordBE(0);


Index: llvm/lib/Target/PowerPC/PPCRelocations.h
diff -u llvm/lib/Target/PowerPC/PPCRelocations.h:1.6 llvm/lib/Target/PowerPC/PPCRelocations.h:1.7
--- llvm/lib/Target/PowerPC/PPCRelocations.h:1.6	Sun Oct 16 00:39:50 2005
+++ llvm/lib/Target/PowerPC/PPCRelocations.h	Wed May 24 12:04:04 2006
@@ -50,7 +50,7 @@
       // relocated to point to a POINTER to the indicated global.  The low-16
       // bits of the instruction are rewritten with the low 16-bits of the
       // address of the pointer.
-      reloc_absolute_ptr_low,
+      reloc_absolute_ptr_low
     };
   }
 }






More information about the llvm-commits mailing list