[llvm-commits] CVS: llvm/test/FrontendAda/asm.adb

2007-05-02 Thread Duncan Sands


Changes in directory llvm/test/FrontendAda:

asm.adb added (r1.1)
---
Log message:

Test that inline assembler compiles (llvm-gcc added an extra "uses" parameter
to ASM_EXPR).


---
Diffs of the changes:  (+6 -0)

 asm.adb |6 ++
 1 files changed, 6 insertions(+)


Index: llvm/test/FrontendAda/asm.adb
diff -c /dev/null llvm/test/FrontendAda/asm.adb:1.1
*** /dev/null   Wed May  2 02:41:32 2007
--- llvm/test/FrontendAda/asm.adb   Wed May  2 02:41:22 2007
***
*** 0 
--- 1,6 
+ -- RUN: %llvmgcc -c %s -o /dev/null
+ with System.Machine_Code;
+ procedure Asm is
+ begin
+System.Machine_Code.Asm ("");
+ end;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/test/FrontendAda/unc_constructor.adb unc_constructor.ads

2007-05-02 Thread Duncan Sands


Changes in directory llvm/test/FrontendAda:

unc_constructor.adb added (r1.1)
unc_constructor.ads added (r1.1)
---
Log message:

Test that TREE_CONSTANT is being set correctly.


---
Diffs of the changes:  (+17 -0)

 unc_constructor.adb |9 +
 unc_constructor.ads |8 
 2 files changed, 17 insertions(+)


Index: llvm/test/FrontendAda/unc_constructor.adb
diff -c /dev/null llvm/test/FrontendAda/unc_constructor.adb:1.1
*** /dev/null   Wed May  2 02:43:24 2007
--- llvm/test/FrontendAda/unc_constructor.adb   Wed May  2 02:43:14 2007
***
*** 0 
--- 1,9 
+ -- RUN: %llvmgcc -c %s -o /dev/null
+ package body Unc_Constructor is
+procedure P (X : A) is
+begin
+   if X = A0 then
+  null;
+   end if;
+end;
+ end;


Index: llvm/test/FrontendAda/unc_constructor.ads
diff -c /dev/null llvm/test/FrontendAda/unc_constructor.ads:1.1
*** /dev/null   Wed May  2 02:43:33 2007
--- llvm/test/FrontendAda/unc_constructor.ads   Wed May  2 02:43:14 2007
***
*** 0 
--- 1,8 
+ package Unc_Constructor is
+type C is null record;
+type A is array (Positive range <>) of C;
+A0 : constant A;
+procedure P (X : A);
+ private
+A0 : aliased constant A := (1 .. 0 => (null record));
+ end;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.td

2007-05-02 Thread Anton Korobeynikov


Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.217 -> 1.218
X86RegisterInfo.td updated: 1.42 -> 1.43
---
Log message:

Emit correct DWARF reg # for RA (return address) register


---
Diffs of the changes:  (+7 -1)

 X86RegisterInfo.cpp |5 -
 X86RegisterInfo.td  |3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.217 
llvm/lib/Target/X86/X86RegisterInfo.cpp:1.218
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.217   Tue May  1 04:13:03 2007
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Wed May  2 03:46:03 2007
@@ -1235,7 +1235,10 @@
 }
 
 unsigned X86RegisterInfo::getRARegister() const {
-  return X86::ST0;  // use a non-register register
+  if (Is64Bit)
+return X86::RIP;  // Should have dwarf #16
+  else
+return X86::EIP;  // Should have dwarf #8
 }
 
 unsigned X86RegisterInfo::getFrameRegister(MachineFunction &MF) const {


Index: llvm/lib/Target/X86/X86RegisterInfo.td
diff -u llvm/lib/Target/X86/X86RegisterInfo.td:1.42 
llvm/lib/Target/X86/X86RegisterInfo.td:1.43
--- llvm/lib/Target/X86/X86RegisterInfo.td:1.42 Fri Apr 20 16:15:21 2007
+++ llvm/lib/Target/X86/X86RegisterInfo.td  Wed May  2 03:46:03 2007
@@ -60,6 +60,7 @@
   def BP : RegisterWithSubRegs<"BP", [BPL]>, DwarfRegNum<5>;
   def SI : RegisterWithSubRegs<"SI", [SIL]>, DwarfRegNum<6>;
   def DI : RegisterWithSubRegs<"DI", [DIL]>, DwarfRegNum<7>;
+  def IP : Register<"IP">, DwarfRegNum<8>;  
   
   // X86-64 only
   def R8W  : RegisterWithSubRegs<"R8W", [R8B]>, DwarfRegNum<8>;
@@ -80,6 +81,7 @@
   def EBP : RegisterWithSubRegs<"EBP", [BP]>, DwarfRegNum<5>;
   def ESI : RegisterWithSubRegs<"ESI", [SI]>, DwarfRegNum<6>;
   def EDI : RegisterWithSubRegs<"EDI", [DI]>, DwarfRegNum<7>;
+  def EIP : RegisterWithSubRegs<"EIP", [IP]>, DwarfRegNum<8>;  
   
   // X86-64 only
   def R8D  : RegisterWithSubRegs<"R8D", [R8W]>, DwarfRegNum<8>;
@@ -109,6 +111,7 @@
   def R13 : RegisterWithSubRegs<"R13", [R13D]>, DwarfRegNum<13>;
   def R14 : RegisterWithSubRegs<"R14", [R14D]>, DwarfRegNum<14>;
   def R15 : RegisterWithSubRegs<"R15", [R15D]>, DwarfRegNum<15>;
+  def RIP : RegisterWithSubRegs<"RIP", [EIP]>,  DwarfRegNum<16>;
 
   // MMX Registers. These are actually aliased to ST0 .. ST7
   def MM0 : Register<"MM0">, DwarfRegNum<29>;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] Patch for bug in llvm-ld

2007-05-02 Thread jlh
Chris Lattner wrote:
> Thanks, but this doesn't seem safe.  If the args_temp vector is
> reallocated, it will move all the std::string objects, invalidating the
> pointers.

Right, I wasn't thinking enough.  One solution would be to use
std::list instead.  But anyway, I only wanted to point out the
problem.  Fix it the way you think is best.

jlh
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.td

2007-05-02 Thread Evan Cheng
Anton, I believe different OS / target / DWARF imeplementations  
assign different DWARF numbers to register. On Mac OS X, I am fairly  
certain x86 and x86-64 assign different numbers. :-(  We need a  
better way to handle this.

Evan

On May 2, 2007, at 1:46 AM, Anton Korobeynikov wrote:

>
>
> Changes in directory llvm/lib/Target/X86:
>
> X86RegisterInfo.cpp updated: 1.217 -> 1.218
> X86RegisterInfo.td updated: 1.42 -> 1.43
> ---
> Log message:
>
> Emit correct DWARF reg # for RA (return address) register
>
>
> ---
> Diffs of the changes:  (+7 -1)
>
>  X86RegisterInfo.cpp |5 -
>  X86RegisterInfo.td  |3 +++
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
>
> Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
> diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.217 llvm/lib/ 
> Target/X86/X86RegisterInfo.cpp:1.218
> --- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.217 Tue May  1  
> 04:13:03 2007
> +++ llvm/lib/Target/X86/X86RegisterInfo.cpp   Wed May  2 03:46:03 2007
> @@ -1235,7 +1235,10 @@
>  }
>
>  unsigned X86RegisterInfo::getRARegister() const {
> -  return X86::ST0;  // use a non-register register
> +  if (Is64Bit)
> +return X86::RIP;  // Should have dwarf #16
> +  else
> +return X86::EIP;  // Should have dwarf #8
>  }
>
>  unsigned X86RegisterInfo::getFrameRegister(MachineFunction &MF)  
> const {
>
>
> Index: llvm/lib/Target/X86/X86RegisterInfo.td
> diff -u llvm/lib/Target/X86/X86RegisterInfo.td:1.42 llvm/lib/Target/ 
> X86/X86RegisterInfo.td:1.43
> --- llvm/lib/Target/X86/X86RegisterInfo.td:1.42   Fri Apr 20 16:15:21  
> 2007
> +++ llvm/lib/Target/X86/X86RegisterInfo.tdWed May  2 03:46:03 2007
> @@ -60,6 +60,7 @@
>def BP : RegisterWithSubRegs<"BP", [BPL]>, DwarfRegNum<5>;
>def SI : RegisterWithSubRegs<"SI", [SIL]>, DwarfRegNum<6>;
>def DI : RegisterWithSubRegs<"DI", [DIL]>, DwarfRegNum<7>;
> +  def IP : Register<"IP">, DwarfRegNum<8>;
>
>// X86-64 only
>def R8W  : RegisterWithSubRegs<"R8W", [R8B]>, DwarfRegNum<8>;
> @@ -80,6 +81,7 @@
>def EBP : RegisterWithSubRegs<"EBP", [BP]>, DwarfRegNum<5>;
>def ESI : RegisterWithSubRegs<"ESI", [SI]>, DwarfRegNum<6>;
>def EDI : RegisterWithSubRegs<"EDI", [DI]>, DwarfRegNum<7>;
> +  def EIP : RegisterWithSubRegs<"EIP", [IP]>, DwarfRegNum<8>;
>
>// X86-64 only
>def R8D  : RegisterWithSubRegs<"R8D", [R8W]>, DwarfRegNum<8>;
> @@ -109,6 +111,7 @@
>def R13 : RegisterWithSubRegs<"R13", [R13D]>, DwarfRegNum<13>;
>def R14 : RegisterWithSubRegs<"R14", [R14D]>, DwarfRegNum<14>;
>def R15 : RegisterWithSubRegs<"R15", [R15D]>, DwarfRegNum<15>;
> +  def RIP : RegisterWithSubRegs<"RIP", [EIP]>,  DwarfRegNum<16>;
>
>// MMX Registers. These are actually aliased to ST0 .. ST7
>def MM0 : Register<"MM0">, DwarfRegNum<29>;
>
>
>
> ___
> llvm-commits mailing list
> llvm-commits@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.td

2007-05-02 Thread Anton Korobeynikov
Evan,

> Anton, I believe different OS / target / DWARF imeplementations  
> assign different DWARF numbers to register. On Mac OS X, I am fairly  
> certain x86 and x86-64 assign different numbers. :-(  We need a  
> better way to handle this.
I've specially checked this case. DWARF register numbers are fixed for
all i386-based platforms (at least ones, supported by GCC). The only
special case seems to be cygwin/mingw, but I'll handle this case
separately.

Currently, I'm interested only in narrowing necessary bits (probably,
platform-dependent). Anyway, this won't hurt :)
-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.


___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.td

2007-05-02 Thread Evan Cheng

On May 2, 2007, at 11:11 AM, Anton Korobeynikov wrote:

> Evan,
>
>> Anton, I believe different OS / target / DWARF imeplementations
>> assign different DWARF numbers to register. On Mac OS X, I am fairly
>> certain x86 and x86-64 assign different numbers. :-(  We need a
>> better way to handle this.
> I've specially checked this case. DWARF register numbers are fixed for
> all i386-based platforms (at least ones, supported by GCC). The only
> special case seems to be cygwin/mingw, but I'll handle this case
> separately.

Ok. Did you check both FSF and Apple gcc (llvm-gcc)?

>
> Currently, I'm interested only in narrowing necessary bits (probably,
> platform-dependent). Anyway, this won't hurt :)

Right. I figured since you are touching this you are taking  
ownership. :-) Perhaps you want to handle it.

Evan

> -- 
> With best regards, Anton Korobeynikov.
>
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
>
>
> ___
> llvm-commits mailing list
> llvm-commits@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp X86RegisterInfo.cpp

2007-05-02 Thread Anton Korobeynikov


Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.397 -> 1.398
X86RegisterInfo.cpp updated: 1.218 -> 1.219
---
Log message:

Emit correct register move information in eh frames for X86. This allows 
Shootout-C++/except to pass on x86/linux 
with non-llvm-compiled (e.g. "native") unwind runtime.


---
Diffs of the changes:  (+56 -8)

 X86ISelLowering.cpp |   13 +
 X86RegisterInfo.cpp |   51 +++
 2 files changed, 56 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.397 
llvm/lib/Target/X86/X86ISelLowering.cpp:1.398
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.397   Tue Apr 24 16:16:55 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed May  2 14:53:33 2007
@@ -226,6 +226,19 @@
   !Subtarget->isTargetCygMing())
 setOperationAction(ISD::LABEL, MVT::Other, Expand);
 
+  setOperationAction(ISD::EXCEPTIONADDR, MVT::i64, Expand);
+  setOperationAction(ISD::EHSELECTION,   MVT::i64, Expand);
+  setOperationAction(ISD::EXCEPTIONADDR, MVT::i32, Expand);
+  setOperationAction(ISD::EHSELECTION,   MVT::i32, Expand);
+  if (Subtarget->is64Bit()) {
+// FIXME: Verify
+setExceptionPointerRegister(X86::RAX);
+setExceptionSelectorRegister(X86::RDX);
+  } else {
+setExceptionPointerRegister(X86::EAX);
+setExceptionSelectorRegister(X86::EDX);
+  }
+  
   // VASTART needs to be custom lowered to use the VarArgsFrameIndex
   setOperationAction(ISD::VASTART   , MVT::Other, Custom);
   setOperationAction(ISD::VAARG , MVT::Other, Expand);


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.218 
llvm/lib/Target/X86/X86RegisterInfo.cpp:1.219
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.218   Wed May  2 03:46:03 2007
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Wed May  2 14:53:33 2007
@@ -26,6 +26,7 @@
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineLocation.h"
+#include "llvm/Target/TargetAsmInfo.h"
 #include "llvm/Target/TargetFrameInfo.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/TargetMachine.h"
@@ -1060,11 +1061,17 @@
   MachineModuleInfo *MMI = MFI->getMachineModuleInfo();
   
   // Prepare for frame info.
-  unsigned FrameLabelId = 0;
+  unsigned FrameLabelId = 0, StartLabelId = 0;
   
   // Get the number of bytes to allocate from the FrameInfo
   uint64_t NumBytes = MFI->getStackSize();
 
+  if (MMI && MMI->needsFrameInfo()) {
+// Mark function start
+StartLabelId = MMI->NextLabelID();
+BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(StartLabelId);
+  }
+
   if (NumBytes) {   // adjust stack pointer: ESP -= numbytes
 if (NumBytes >= 4096 && Subtarget->isTargetCygMing()) {
   // Check, whether EAX is livein for this function
@@ -1138,17 +1145,38 @@
 
   if (MMI && MMI->needsFrameInfo()) {
 std::vector &Moves = MMI->getFrameMoves();
-
+const TargetAsmInfo *TAI = MF.getTarget().getTargetAsmInfo();
+
+// Calculate amount of bytes used for return address storing
+int stackGrowth =
+  (MF.getTarget().getFrameInfo()->getStackGrowthDirection() ==
+   TargetFrameInfo::StackGrowsUp ?
+   TAI->getAddressSize() : -TAI->getAddressSize());
+
+// Add return address to move list
+MachineLocation CSDst(StackPtr, stackGrowth);
+MachineLocation CSSrc(getRARegister());
+Moves.push_back(MachineMove(StartLabelId, CSDst, CSSrc));
+
 if (NumBytes) {
   // Show update of SP.
-  MachineLocation SPDst(MachineLocation::VirtualFP);
-  MachineLocation SPSrc(MachineLocation::VirtualFP, -NumBytes);
-  Moves.push_back(MachineMove(FrameLabelId, SPDst, SPSrc));
+  if (hasFP(MF)) {
+// Adjust SP
+MachineLocation SPDst(MachineLocation::VirtualFP);
+MachineLocation SPSrc(MachineLocation::VirtualFP, 2*stackGrowth);
+Moves.push_back(MachineMove(FrameLabelId, SPDst, SPSrc));
+  } else {
+MachineLocation SPDst(MachineLocation::VirtualFP);
+MachineLocation SPSrc(MachineLocation::VirtualFP, 
-NumBytes+stackGrowth);
+Moves.push_back(MachineMove(FrameLabelId, SPDst, SPSrc));
+  }
 } else {
-  MachineLocation SP(StackPtr);
-  Moves.push_back(MachineMove(FrameLabelId, SP, SP));
+  //FIXME: Verify & implement for FP
+  MachineLocation SPDst(StackPtr);
+  MachineLocation SPSrc(StackPtr, stackGrowth);
+  Moves.push_back(MachineMove(FrameLabelId, SPDst, SPSrc));
 }
-
+
 // Add callee saved registers to move list.
 const std::vector &CSI = MFI->getCalleeSavedInfo();
 for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
@@ -1162,6 +1190,13 @@
 // Mark effective beginning of when frame pointer is ready.
 unsigned ReadyLabelId = MMI->NextLabelID();
 BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(Read

Re: [llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp AliasDebugger.cpp AliasSetTracker.cpp BasicAliasAnalysis.cpp CFGPrinter.cpp InstCount.cp

2007-05-02 Thread Lauro Ramos Venancio

The following build error is occurring.

Lauro

make[2]: Entering directory
`/armel-chroot/home/laurov/test/build/llvm/lib/Analysis'
llvm[2]: Compiling AliasAnalysis.cpp for Release build
AliasAnalysis.cpp:37: error: definition of 'llvm::AliasAnalysis::ID' is not
in namespace enclosing 'llvm::AliasAnalysis'
make[2]: ***
[/armel-chroot/home/laurov/test/build/llvm/lib/Analysis/Release/AliasAnalysis.o]
Error 1
make[2]: Leaving directory
`/armel-chroot/home/laurov/test/build/llvm/lib/Analysis'
make[1]: *** [Analysis/.makeall] Error 2

2007/5/1, Devang Patel <[EMAIL PROTECTED]>:




Changes in directory llvm/lib/Analysis:

AliasAnalysis.cpp updated: 1.30 -> 1.31
AliasAnalysisCounter.cpp updated: 1.20 -> 1.21
AliasAnalysisEvaluator.cpp updated: 1.33 -> 1.34
AliasDebugger.cpp updated: 1.3 -> 1.4
AliasSetTracker.cpp updated: 1.46 -> 1.47
BasicAliasAnalysis.cpp updated: 1.108 -> 1.109
CFGPrinter.cpp updated: 1.22 -> 1.23
InstCount.cpp updated: 1.20 -> 1.21
IntervalPartition.cpp updated: 1.32 -> 1.33
LoadValueNumbering.cpp updated: 1.39 -> 1.40
LoopInfo.cpp updated: 1.83 -> 1.84
LoopPass.cpp updated: 1.18 -> 1.19
PostDominators.cpp updated: 1.67 -> 1.68
ProfileInfo.cpp updated: 1.11 -> 1.12
ProfileInfoLoaderPass.cpp updated: 1.18 -> 1.19
ScalarEvolution.cpp updated: 1.112 -> 1.113
ValueNumbering.cpp updated: 1.25 -> 1.26
---
Log message:

Do not use typeinfo to identify pass in pass manager.


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

AliasAnalysis.cpp  |1 +
AliasAnalysisCounter.cpp   |4 +++-
AliasAnalysisEvaluator.cpp |4 
AliasDebugger.cpp  |4 
AliasSetTracker.cpp|4 
BasicAliasAnalysis.cpp |6 ++
CFGPrinter.cpp |6 ++
InstCount.cpp  |4 
IntervalPartition.cpp  |4 +++-
LoadValueNumbering.cpp |3 +++
LoopInfo.cpp   |1 +
LoopPass.cpp   |5 -
PostDominators.cpp |3 +++
ProfileInfo.cpp|7 ++-
ProfileInfoLoaderPass.cpp  |4 +++-
ScalarEvolution.cpp|1 +
ValueNumbering.cpp |5 +
17 files changed, 61 insertions(+), 5 deletions(-)


Index: llvm/lib/Analysis/AliasAnalysis.cpp
diff -u 
llvm/lib/Analysis/AliasAnalysis.cpp:1.30llvm/lib/Analysis/AliasAnalysis.cpp:
1.31
--- llvm/lib/Analysis/AliasAnalysis.cpp:1.30Fri Nov 17 01:10:51 2006
+++ llvm/lib/Analysis/AliasAnalysis.cpp Tue May  1 16:15:46 2007
@@ -34,6 +34,7 @@

// Register the AliasAnalysis interface, providing a nice name to refer
to.
namespace {
+  const int AliasAnalysis::ID = 0;
   RegisterAnalysisGroup Z("Alias Analysis");
}



Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u 
llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.20llvm/lib/Analysis/AliasAnalysisCounter.cpp:
1.21
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.20 Mon Feb  5
17:42:17 2007
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp  Tue May  1 16:15:46 2007
@@ -34,7 +34,8 @@
 const char *Name;
 Module *M;
   public:
-AliasAnalysisCounter() {
+static const int ID; // Class identification, replacement for
typeinfo
+AliasAnalysisCounter() : ModulePass((intptr_t) &ID) {
   No = May = Must = 0;
   NoMR = JustRef = JustMod = MR = 0;
 }
@@ -107,6 +108,7 @@
 }
   };

+  const int AliasAnalysisCounter::ID = 0;
   RegisterPass
   X("count-aa", "Count Alias Analysis Query Responses");
   RegisterAnalysisGroup Y(X);


Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u 
llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.33llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:
1.34
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.33   Mon Feb  5
17:42:17 2007
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cppTue May  1
16:15:46 2007
@@ -50,6 +50,9 @@
 unsigned NoModRef, Mod, Ref, ModRef;

   public:
+static const int ID; // Pass identifcation, replacement for typeid
+AAEval() : FunctionPass((intptr_t)&ID) {}
+
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
   AU.addRequired();
   AU.setPreservesAll();
@@ -70,6 +73,7 @@
 bool doFinalization(Module &M);
   };

+  const int AAEval::ID = 0;
   RegisterPass
   X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator");
}


Index: llvm/lib/Analysis/AliasDebugger.cpp
diff -u 
llvm/lib/Analysis/AliasDebugger.cpp:1.3llvm/lib/Analysis/AliasDebugger.cpp:
1.4
--- llvm/lib/Analysis/AliasDebugger.cpp:1.3 Mon Feb  5 17:42:17 2007
+++ llvm/lib/Analysis/AliasDebugger.cpp Tue May  1 16:15:46 2007
@@ -40,6 +40,9 @@
 std::set Vals;

   public:
+static const int ID; // Class identification, replacement for
typeinfo
+AliasDebugger() : ModulePass((intptr_t)&ID) {}
+
 bool runOnModule(Module &M) {
   InitializeAliasAnalysis(this); // set up super
class

@@ -119,6 +122,7 @@

   };

+  const int AliasDebugger::ID = 0;
   RegisterPass X("debug-aa", "AA use debugger");
   RegisterAnalysisGroup Y(X);
}


Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -

Re: [llvm-commits] ELF sections in X86AsmTargetAsm.cpp

2007-05-02 Thread Evan Cheng
Looks safe to me. :-) But I don't have access to a Linux box to  
verify. Anton, can you check?

Evan
On May 1, 2007, at 6:50 AM, Dan Gohman wrote:

> The attached patch sets the section names for fixed-size constants for
> ELF on x86 to match what GCC uses, and it uses the mergeable flag so
> that duplicate constants can be merged.
>
> This works for me with GAS; are there other assemblers (or linkers?)
> being used with LLVM on x86 ELF targets that don't support this?
> It looks like nasm/yasm wouldn't accept some of the other things
> that LLVM currently emits anyway..
>
> Dan
>
> -- 
> Dan Gohman, Cray Inc.
> 
> ___
> llvm-commits mailing list
> llvm-commits@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp AliasDebugger.cpp AliasSetTracker.cpp BasicAliasAnalysis.cpp CFGPrinter.cpp InstCount.cp

2007-05-02 Thread Devang Patel

On May 2, 2007, at 12:55 PM, Lauro Ramos Venancio wrote:

> The following build error is occurring.
>
> Lauro
>
> make[2]: Entering directory `/armel-chroot/home/laurov/test/build/ 
> llvm/lib/Analysis'
> llvm[2]: Compiling AliasAnalysis.cpp for Release build
> AliasAnalysis.cpp :37: error: definition of  
> 'llvm::AliasAnalysis::ID' is not in namespace enclosing  
> 'llvm::AliasAnalysis'
> make[2]: *** [/armel-chroot/home/laurov/test/build/llvm/lib/Analysis/ 
> Release/AliasAnalysis.o] Error 1
> make[2]: Leaving directory `/armel-chroot/home/laurov/test/build/ 
> llvm/lib/Analysis'
> make[1]: *** [Analysis/.makeall] Error 2

hmm.. I did not get this error.
Does it help to move 'const int AliasAnalysis::ID = 0;' outside  
anonymous namespace ?

Thanks,
-
Devang
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp AliasDebugger.cpp AliasSetTracker.cpp BasicAliasAnalysis.cpp CFGPrinter.cpp InstCount.cp

2007-05-02 Thread Lauro Ramos Venancio



hmm.. I did not get this error.
Does it help to move 'const int AliasAnalysis::ID = 0;' outside
anonymous namespace ?



Yes, to move the definition resolves the problem. I already fixed this
problem. I will commit in few minutes.

Lauro
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraph.cpp

2007-05-02 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Analysis/IPA:

CallGraph.cpp updated: 1.66 -> 1.67
---
Log message:

Fix build error.


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

 CallGraph.cpp |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.66 
llvm/lib/Analysis/IPA/CallGraph.cpp:1.67
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.66Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/IPA/CallGraph.cpp Wed May  2 15:37:47 2007
@@ -190,14 +190,16 @@
   }
 };
 
-const int CallGraph::ID = 0;
+
 RegisterAnalysisGroup X("Call Graph");
-const int BasicCallGraph::ID = 0;
 RegisterPass Y("basiccg", "Basic CallGraph Construction");
 RegisterAnalysisGroup Z(Y);
 
 } //End anonymous namespace
 
+const int CallGraph::ID = 0;
+const int BasicCallGraph::ID = 0;
+
 void CallGraph::initialize(Module &M) {
   Mod = &M;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp

2007-05-02 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Transforms/Instrumentation:

RSProfiling.cpp updated: 1.24 -> 1.25
---
Log message:

Fix build error.


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

 RSProfiling.cpp |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.24 
llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.25
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.24Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp Wed May  2 15:37:47 2007
@@ -81,9 +81,7 @@
 }
   };
 
-  const int RSProfilers::ID = 0;
   static RegisterAnalysisGroup A("Profiling passes");
-  const int NullProfilerRS::ID = 0;
   static RegisterPass NP("insert-null-profiling-rs",
  "Measure profiling framework 
overhead");
   static RegisterAnalysisGroup NPT(NP);
@@ -160,11 +158,14 @@
 virtual void getAnalysisUsage(AnalysisUsage &AU) const;
   };
 
-  const int ProfilerRS::ID = 0;
   RegisterPass X("insert-rs-profiling-framework",
  "Insert random sampling instrumentation 
framework");
 }
 
+const int RSProfilers::ID = 0;
+const int NullProfilerRS::ID = 0;
+const int ProfilerRS::ID = 0;
+
 //Local utilities
 static void ReplacePhiPred(BasicBlock* btarget, 
BasicBlock* bold, BasicBlock* bnew);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp ProfileInfo.cpp ScalarEvolution.cpp

2007-05-02 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Analysis:

AliasAnalysis.cpp updated: 1.31 -> 1.32
ProfileInfo.cpp updated: 1.12 -> 1.13
ScalarEvolution.cpp updated: 1.113 -> 1.114
---
Log message:

Fix build error.


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

 AliasAnalysis.cpp   |2 +-
 ProfileInfo.cpp |2 +-
 ScalarEvolution.cpp |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Analysis/AliasAnalysis.cpp
diff -u llvm/lib/Analysis/AliasAnalysis.cpp:1.31 
llvm/lib/Analysis/AliasAnalysis.cpp:1.32
--- llvm/lib/Analysis/AliasAnalysis.cpp:1.31Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/AliasAnalysis.cpp Wed May  2 15:37:47 2007
@@ -34,9 +34,9 @@
 
 // Register the AliasAnalysis interface, providing a nice name to refer to.
 namespace {
-  const int AliasAnalysis::ID = 0;
   RegisterAnalysisGroup Z("Alias Analysis");
 }
+const int AliasAnalysis::ID = 0;
 
 
//===--===//
 // Default chaining methods


Index: llvm/lib/Analysis/ProfileInfo.cpp
diff -u llvm/lib/Analysis/ProfileInfo.cpp:1.12 
llvm/lib/Analysis/ProfileInfo.cpp:1.13
--- llvm/lib/Analysis/ProfileInfo.cpp:1.12  Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/ProfileInfo.cpp   Wed May  2 15:37:47 2007
@@ -22,9 +22,9 @@
 
 // Register the ProfileInfo interface, providing a nice name to refer to.
 namespace {
-  const int ProfileInfo::ID = 0;
   RegisterAnalysisGroup Z("Profile Information");
 }
+const int ProfileInfo::ID = 0;
 
 ProfileInfo::~ProfileInfo() {}
 


Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.113 
llvm/lib/Analysis/ScalarEvolution.cpp:1.114
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.113 Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/ScalarEvolution.cpp   Wed May  2 15:37:47 2007
@@ -102,10 +102,10 @@
 cl::init(100));
 
 namespace {
-  const int ScalarEvolution::ID = 0;
   RegisterPass
   R("scalar-evolution", "Scalar Evolution Analysis");
 }
+const int ScalarEvolution::ID = 0;
 
 
//===--===//
 //   SCEV class definitions



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


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

2007-05-02 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.240 -> 1.241
MachineModuleInfo.cpp updated: 1.6 -> 1.7
---
Log message:

Fix build error.


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

 LiveIntervalAnalysis.cpp |2 +-
 MachineModuleInfo.cpp|2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.240 
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.241
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.240 Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp   Wed May  2 15:37:47 2007
@@ -44,8 +44,8 @@
 STATISTIC(numFolded   , "Number of loads/stores folded into instructions");
 STATISTIC(numAborts   , "Number of times interval joining aborted");
 
+const int LiveIntervals::ID = 0;
 namespace {
-  const int LiveIntervals::ID = 0;
   RegisterPass X("liveintervals", "Live Interval Analysis");
 
   static cl::opt


Index: llvm/lib/CodeGen/MachineModuleInfo.cpp
diff -u llvm/lib/CodeGen/MachineModuleInfo.cpp:1.6 
llvm/lib/CodeGen/MachineModuleInfo.cpp:1.7
--- llvm/lib/CodeGen/MachineModuleInfo.cpp:1.6  Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/MachineModuleInfo.cpp  Wed May  2 15:37:47 2007
@@ -28,9 +28,9 @@
 
 // Handle the Pass registration stuff necessary to use TargetData's.
 namespace {
-  const int MachineModuleInfo::ID = 0;
   RegisterPass X("machinemoduleinfo", "Module Information");
 }
+const int MachineModuleInfo::ID = 0;
 
 
//===--===//
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

2007-05-02 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.108 -> 1.109
---
Log message:

Fix build error.


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

 TargetData.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.108 
llvm/lib/Target/TargetData.cpp:1.109
--- llvm/lib/Target/TargetData.cpp:1.108Tue May  1 16:15:46 2007
+++ llvm/lib/Target/TargetData.cpp  Wed May  2 15:37:47 2007
@@ -33,9 +33,9 @@
 // Handle the Pass registration stuff necessary to use TargetData's.
 namespace {
   // Register the default SparcV9 implementation...
-  const int TargetData::ID = 0;
   RegisterPass X("targetdata", "Target Data Layout");
 }
+const int TargetData::ID = 0;
 
 
//===--===//
 // Support for StructLayout



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/VMCore/Pass.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/VMCore:

Pass.cpp updated: 1.90 -> 1.91
---
Log message:

Re-install patch to enable use of PassID.
I am preparing another patch to address the failure that prompted
Chris to revert this patch earlier.


---
Diffs of the changes:  (+14 -15)

 Pass.cpp |   29 ++---
 1 files changed, 14 insertions(+), 15 deletions(-)


Index: llvm/lib/VMCore/Pass.cpp
diff -u llvm/lib/VMCore/Pass.cpp:1.90 llvm/lib/VMCore/Pass.cpp:1.91
--- llvm/lib/VMCore/Pass.cpp:1.90   Tue May  1 23:25:31 2007
+++ llvm/lib/VMCore/Pass.cppWed May  2 15:38:25 2007
@@ -133,7 +133,7 @@
 class PassRegistrar {
   /// PassInfoMap - Keep track of the passinfo object for each registered llvm
   /// pass.
-  std::map PassInfoMap;
+  std::map PassInfoMap;
   
   /// AnalysisGroupInfo - Keep track of information for each analysis group.
   struct AnalysisGroupInfo {
@@ -147,19 +147,19 @@
 
 public:
   
-  const PassInfo *GetPassInfo(const std::type_info &TI) const {
-std::map::const_iterator I = PassInfoMap.find(TI);
+  const PassInfo *GetPassInfo(intptr_t TI) const {
+std::map::const_iterator I = PassInfoMap.find(TI);
 return I != PassInfoMap.end() ? I->second : 0;
   }
   
   void RegisterPass(PassInfo &PI) {
 bool Inserted =
-  
PassInfoMap.insert(std::make_pair(TypeInfo(PI.getTypeInfo()),&PI)).second;
+  PassInfoMap.insert(std::make_pair(PI.getTypeInfo(),&PI)).second;
 assert(Inserted && "Pass registered multiple times!");
   }
   
   void UnregisterPass(PassInfo &PI) {
-std::map::iterator I =
+std::map::iterator I =
   PassInfoMap.find(PI.getTypeInfo());
 assert(I != PassInfoMap.end() && "Pass registered but not in map!");
 
@@ -168,7 +168,7 @@
   }
   
   void EnumerateWith(PassRegistrationListener *L) {
-for (std::map::const_iterator I = PassInfoMap.begin(),
+for (std::map::const_iterator I = PassInfoMap.begin(),
  E = PassInfoMap.end(); I != E; ++I)
   L->passEnumerate(I->second);
   }
@@ -210,11 +210,10 @@
 // getPassInfo - Return the PassInfo data structure that corresponds to this
 // pass...
 const PassInfo *Pass::getPassInfo() const {
-  if (PassInfoCache) return PassInfoCache;
-  return lookupPassInfo(typeid(*this));
+  return lookupPassInfo(PassID);
 }
 
-const PassInfo *Pass::lookupPassInfo(const std::type_info &TI) {
+const PassInfo *Pass::lookupPassInfo(intptr_t TI) {
   return getPassRegistrar()->GetPassInfo(TI);
 }
 
@@ -238,12 +237,12 @@
 
 // RegisterAGBase implementation
 //
-RegisterAGBase::RegisterAGBase(const std::type_info &Interface,
-   const std::type_info *Pass, bool isDefault)
-  : RegisterPassBase(Interface),
+RegisterAGBase::RegisterAGBase(intptr_t InterfaceID,
+   intptr_t PassID, bool isDefault)
+  : RegisterPassBase(InterfaceID),
 ImplementationInfo(0), isDefaultImplementation(isDefault) {
 
-  InterfaceInfo = const_cast(Pass::lookupPassInfo(Interface));
+  InterfaceInfo = const_cast(Pass::lookupPassInfo(InterfaceID));
   if (InterfaceInfo == 0) {
 // First reference to Interface, register it now.
 registerPass();
@@ -252,8 +251,8 @@
   assert(PIObj.isAnalysisGroup() &&
  "Trying to join an analysis group that is a normal pass!");
 
-  if (Pass) {
-ImplementationInfo = Pass::lookupPassInfo(*Pass);
+  if (PassID) {
+ImplementationInfo = Pass::lookupPassInfo(PassID);
 assert(ImplementationInfo &&
"Must register pass before adding to AnalysisGroup!");
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Pass.h PassSupport.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm:

Pass.h updated: 1.88 -> 1.89
PassSupport.h updated: 1.40 -> 1.41
---
Log message:

Re-install patch to enable use of PassID.
I am preparing another patch to address the failure that prompted
Chris to revert this patch earlier.


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

 Pass.h|   14 +++---
 PassSupport.h |   26 +-
 2 files changed, 20 insertions(+), 20 deletions(-)


Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.88 llvm/include/llvm/Pass.h:1.89
--- llvm/include/llvm/Pass.h:1.88   Tue May  1 23:25:30 2007
+++ llvm/include/llvm/Pass.hWed May  2 15:38:25 2007
@@ -34,8 +34,8 @@
 #include 
 #include 
 #include 
-#include 
 #include 
+#include 
 
 namespace llvm {
 
@@ -77,7 +77,7 @@
 ///
 class Pass {
   AnalysisResolver *Resolver;  // Used to resolve analysis
-  const PassInfo *PassInfoCache;
+  intptr_t PassID;
 
   // AnalysisImpls - This keeps track of which passes implement the interfaces
   // that are required by the current pass (to implement getAnalysis()).
@@ -87,7 +87,7 @@
   void operator=(const Pass&);  // DO NOT IMPLEMENT
   Pass(const Pass &);   // DO NOT IMPLEMENT
 public:
-  Pass(intptr_t pid = 0) : Resolver(0), PassInfoCache(0) {}
+  Pass(intptr_t pid) : Resolver(0), PassID(pid) {}
   virtual ~Pass();
 
   /// getPassName - Return a nice clean name for a pass.  This usually
@@ -163,12 +163,12 @@
 
   template
   static const PassInfo *getClassPassInfo() {
-return lookupPassInfo(typeid(AnalysisClass));
+return lookupPassInfo((intptr_t)&AnalysisClass::ID);
   }
 
   // lookupPassInfo - Return the pass info object for the specified pass class,
   // or null if it is not known.
-  static const PassInfo *lookupPassInfo(const std::type_info &TI);
+  static const PassInfo *lookupPassInfo(intptr_t TI);
 
   /// getAnalysisToUpdate() - This function is used by subclasses
   /// to get to the analysis information that might be around that needs to be
@@ -274,7 +274,7 @@
 class FunctionPass : public Pass {
 public:
   FunctionPass(intptr_t pid) : Pass(pid) {}
-  
+
   /// doInitialization - Virtual method overridden by subclasses to do
   /// any necessary per-module initialization.
   ///
@@ -325,7 +325,7 @@
 class BasicBlockPass : public Pass {
 public:
   BasicBlockPass(intptr_t pid) : Pass(pid) {}
-  
+
   /// doInitialization - Virtual method overridden by subclasses to do
   /// any necessary per-module initialization.
   ///


Index: llvm/include/llvm/PassSupport.h
diff -u llvm/include/llvm/PassSupport.h:1.40 
llvm/include/llvm/PassSupport.h:1.41
--- llvm/include/llvm/PassSupport.h:1.40Tue May  1 23:25:30 2007
+++ llvm/include/llvm/PassSupport.h Wed May  2 15:38:25 2007
@@ -37,19 +37,19 @@
 class PassInfo {
   const char   *PassName;  // Nice name for Pass
   const char   *PassArgument;  // Command Line argument to run this 
pass
-  const std::type_info &TypeInfo;  // type_info object for this Pass class
+  intptr_t PassID;  
   bool IsCFGOnlyPass;  // Pass only looks at the CFG.
   bool IsAnalysisGroup;// True if an analysis group.
   std::vector ItfImpl;// Interfaces implemented by this pass
 
-  Pass *(*NormalCtor)();   // No argument ctor
+  Pass *(*NormalCtor)();
 
 public:
   /// PassInfo ctor - Do not call this directly, this should only be invoked
   /// through RegisterPass.
-  PassInfo(const char *name, const char *arg, const std::type_info &ti,
+  PassInfo(const char *name, const char *arg, intptr_t pi,
Pass *(*normal)() = 0, bool isCFGOnly = false)
-: PassName(name), PassArgument(arg), TypeInfo(ti), 
+: PassName(name), PassArgument(arg), PassID(pi), 
   IsCFGOnlyPass(isCFGOnly), IsAnalysisGroup(false), NormalCtor(normal) {
   }
 
@@ -65,8 +65,8 @@
   const char *getPassArgument() const { return PassArgument; }
 
   /// getTypeInfo - Return the type_info object for the pass...
-  ///
-  const std::type_info &getTypeInfo() const { return TypeInfo; }
+  /// TODO : Rename
+  intptr_t getTypeInfo() const { return PassID; }
 
   /// isAnalysisGroup - Return true if this is an analysis group, not a normal
   /// pass.
@@ -139,12 +139,12 @@
 
   typedef Pass* (*NormalCtor_t)();
   
-  RegisterPassBase(const char *Name, const char *Arg, const std::type_info &TI,
+  RegisterPassBase(const char *Name, const char *Arg, intptr_t TI,
NormalCtor_t NormalCtor = 0, bool CFGOnly = false)
 : PIObj(Name, Arg, TI, NormalCtor, CFGOnly) {
 registerPass();
   }
-  RegisterPassBase(const std::type_info &TI)
+  RegisterPassBase(intptr_t TI)
 : PIObj("", "", TI) {
 // This ctor may only be used for analysis groups: it does not 
auto-register
 // the pass.
@@ -165,7 +165,7 @@
 
   // Register Pass using default constructor...
   RegisterPass(const char *PassArg, const char *Name, bool CFGOnly = false)
-  : RegisterPassBase(Name, Pass

[llvm-commits] CVS: llvm/Makefile.rules

2007-05-02 Thread Reid Spencer


Changes in directory llvm:

Makefile.rules updated: 1.432 -> 1.433
---
Log message:

Add a rule to get the footprint of binaries and libraries.


---
Diffs of the changes:  (+14 -0)

 Makefile.rules |   14 ++
 1 files changed, 14 insertions(+)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.432 llvm/Makefile.rules:1.433
--- llvm/Makefile.rules:1.432   Mon Apr 16 13:10:22 2007
+++ llvm/Makefile.rules Wed May  2 16:29:39 2007
@@ -244,6 +244,11 @@
   CXX.Flags += -fno-exceptions
 endif
 
+# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id
+ifndef REQUIRES_RTTI
+  CXX.Flags += -fno-rtti
+endif
+
 # If DISABLE_ASSERTIONS=1 is specified (make command line or configured),
 # then disable assertions by defining the appropriate preprocessor symbols.
 ifdef DISABLE_ASSERTIONS
@@ -1730,6 +1735,15 @@
 
 check-for-tabs:
@egrep -n ' ' $(Sources)
+check-footprint:
+   @ls -l $(LibDir) | awk '\
+ BEGIN { sum = 0; } \
+   { sum += $$5; } \
+ END   { printf("Libraries: %6.3f MBytes\n", sum/(1024.0*1024.0)); }'
+   @ls -l $(ToolDir) | awk '\
+ BEGIN { sum = 0; } \
+   { sum += $$5; } \
+ END   { printf("Programs:  %6.3f MBytes\n", sum/(1024.0*1024.0)); }'
 #
 # Print out the directories used for building
 #



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/Makefile.rules

2007-05-02 Thread Reid Spencer


Changes in directory llvm:

Makefile.rules updated: 1.433 -> 1.434
---
Log message:

Disable RTTI handling until we're ready.


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

 Makefile.rules |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.433 llvm/Makefile.rules:1.434
--- llvm/Makefile.rules:1.433   Wed May  2 16:29:39 2007
+++ llvm/Makefile.rules Wed May  2 16:31:09 2007
@@ -246,7 +246,7 @@
 
 # IF REQUIRES_RTTI=1 is specified then don't disable run-time type id
 ifndef REQUIRES_RTTI
-  CXX.Flags += -fno-rtti
+#  CXX.Flags += -fno-rtti
 endif
 
 # If DISABLE_ASSERTIONS=1 is specified (make command line or configured),



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.109 -> 1.110
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 TargetData.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.109 
llvm/lib/Target/TargetData.cpp:1.110
--- llvm/lib/Target/TargetData.cpp:1.109Wed May  2 15:37:47 2007
+++ llvm/lib/Target/TargetData.cpp  Wed May  2 16:39:19 2007
@@ -35,7 +35,7 @@
   // Register the default SparcV9 implementation...
   RegisterPass X("targetdata", "Target Data Layout");
 }
-const int TargetData::ID = 0;
+const char TargetData::ID = 0;
 
 
//===--===//
 // Support for StructLayout



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp ARMLoadStoreOptimizer.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/ARM:

ARMConstantIslandPass.cpp updated: 1.40 -> 1.41
ARMLoadStoreOptimizer.cpp updated: 1.9 -> 1.10
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 ARMConstantIslandPass.cpp |4 ++--
 ARMLoadStoreOptimizer.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.40 
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.41
--- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.40  Tue May  1 16:15:46 2007
+++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp   Wed May  2 16:39:19 2007
@@ -128,7 +128,7 @@
 ARMFunctionInfo *AFI;
 bool isThumb;
   public:
-static const int ID;
+static const char ID;
 ARMConstantIslands() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &Fn);
@@ -174,7 +174,7 @@
 void dumpBBs();
 void verify(MachineFunction &Fn);
   };
-  const int ARMConstantIslands::ID = 0;
+  const char ARMConstantIslands::ID = 0;
 }
 
 /// verify - check BBOffsets, BBSizes, alignment of islands


Index: llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff -u llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.9 
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.10
--- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.9   Tue May  1 16:15:46 2007
+++ llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp   Wed May  2 16:39:19 2007
@@ -38,7 +38,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN ARMLoadStoreOpt : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 ARMLoadStoreOpt() : MachineFunctionPass((intptr_t)&ID) {}
 
 const TargetInstrInfo *TII;
@@ -73,7 +73,7 @@
 bool LoadStoreMultipleOpti(MachineBasicBlock &MBB);
 bool MergeReturnIntoLDM(MachineBasicBlock &MBB);
   };
-  const int ARMLoadStoreOpt::ID = 0;
+  const char ARMLoadStoreOpt::ID = 0;
 }
 
 /// createARMLoadStoreOptimizationPass - returns an instance of the load / 
store



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp TestPasses.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/tools/bugpoint:

ExtractFunction.cpp updated: 1.59 -> 1.60
TestPasses.cpp updated: 1.11 -> 1.12
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 ExtractFunction.cpp |4 ++--
 TestPasses.cpp  |8 
 2 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.59 
llvm/tools/bugpoint/ExtractFunction.cpp:1.60
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.59Tue May  1 16:15:47 2007
+++ llvm/tools/bugpoint/ExtractFunction.cpp Wed May  2 16:39:20 2007
@@ -306,10 +306,10 @@
   class BlockExtractorPass : public ModulePass {
 bool runOnModule(Module &M);
   public:
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
   };
-  const int BlockExtractorPass::ID = 0;
+  const char BlockExtractorPass::ID = 0;
   RegisterPass
   XX("extract-bbs", "Extract Basic Blocks From Module (for bugpoint use)");
 }


Index: llvm/tools/bugpoint/TestPasses.cpp
diff -u llvm/tools/bugpoint/TestPasses.cpp:1.11 
llvm/tools/bugpoint/TestPasses.cpp:1.12
--- llvm/tools/bugpoint/TestPasses.cpp:1.11 Tue May  1 16:15:47 2007
+++ llvm/tools/bugpoint/TestPasses.cpp  Wed May  2 16:39:20 2007
@@ -26,7 +26,7 @@
   /// crashes on any call instructions.
   class CrashOnCalls : public BasicBlockPass {
   public:
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 CrashOnCalls() : BasicBlockPass((intptr_t)&ID) {}
   private:
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -42,7 +42,7 @@
 }
   };
 
-  const int CrashOnCalls::ID = 0;
+  const char CrashOnCalls::ID = 0;
   RegisterPass
   X("bugpoint-crashcalls",
 "BugPoint Test Pass - Intentionally crash on CallInsts");
@@ -53,7 +53,7 @@
   /// deletes some call instructions, "misoptimizing" the program.
   class DeleteCalls : public BasicBlockPass {
   public:
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 DeleteCalls() : BasicBlockPass((intptr_t)&ID) {}
   private:
 bool runOnBasicBlock(BasicBlock &BB) {
@@ -68,7 +68,7 @@
 }
   };
  
-  const int DeleteCalls::ID = 0;
+  const char DeleteCalls::ID = 0;
   RegisterPass
   Y("bugpoint-deletecalls",
 "BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Assembly:

PrintModulePass.h updated: 1.22 -> 1.23
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 PrintModulePass.h |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.22 
llvm/include/llvm/Assembly/PrintModulePass.h:1.23
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.22   Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Assembly/PrintModulePass.hWed May  2 16:39:18 2007
@@ -28,7 +28,7 @@
   OStream *Out;   // ostream to print on
   bool DeleteStream;  // Delete the ostream in our dtor?
 public:
-  static const int ID;
+  static const char ID;
   PrintModulePass() : ModulePass((intptr_t)&ID), Out(&cerr), 
DeleteStream(false) {}
   PrintModulePass(OStream *o, bool DS = false)
 : ModulePass((intptr_t)&ID), Out(o), DeleteStream(DS) {}
@@ -52,7 +52,7 @@
   OStream *Out;   // ostream to print on
   bool DeleteStream;  // Delete the ostream in our dtor?
 public:
-  static const int ID;
+  static const char ID;
   PrintFunctionPass() : FunctionPass((intptr_t)&ID), Banner(""), Out(&cerr), 
 DeleteStream(false) {}
   PrintFunctionPass(const std::string &B, OStream *o = &cout,



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


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

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.443 -> 1.444
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 SelectionDAGISel.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.443 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.444
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.443Tue May  1 
16:15:46 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Wed May  2 16:39:19 2007
@@ -5012,4 +5012,4 @@
 Ops.push_back(InOps.back());
 }
 
-const int SelectionDAGISel::ID = 0;
+const char SelectionDAGISel::ID = 0;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/Sparc/DelaySlotFiller.cpp FPMover.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/Sparc:

DelaySlotFiller.cpp updated: 1.14 -> 1.15
FPMover.cpp updated: 1.19 -> 1.20
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 DelaySlotFiller.cpp |4 ++--
 FPMover.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/Sparc/DelaySlotFiller.cpp
diff -u llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.14 
llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.15
--- llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.14  Tue May  1 16:15:46 2007
+++ llvm/lib/Target/Sparc/DelaySlotFiller.cpp   Wed May  2 16:39:19 2007
@@ -30,7 +30,7 @@
 TargetMachine &TM;
 const TargetInstrInfo *TII;
 
-static const int ID;
+static const char ID;
 Filler(TargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm), TII(tm.getInstrInfo()) { }
 
@@ -48,7 +48,7 @@
 }
 
   };
-  const int Filler::ID = 0;
+  const char Filler::ID = 0;
 } // end of anonymous namespace
 
 /// createSparcDelaySlotFillerPass - Returns a pass that fills in delay


Index: llvm/lib/Target/Sparc/FPMover.cpp
diff -u llvm/lib/Target/Sparc/FPMover.cpp:1.19 
llvm/lib/Target/Sparc/FPMover.cpp:1.20
--- llvm/lib/Target/Sparc/FPMover.cpp:1.19  Tue May  1 16:15:46 2007
+++ llvm/lib/Target/Sparc/FPMover.cpp   Wed May  2 16:39:19 2007
@@ -32,7 +32,7 @@
 ///
 TargetMachine &TM;
 
-static const int ID;
+static const char ID;
 FPMover(TargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm) { }
 
@@ -43,7 +43,7 @@
 bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
 bool runOnMachineFunction(MachineFunction &F);
   };
-  const int FPMover::ID = 0;
+  const char FPMover::ID = 0;
 } // end of anonymous namespace
 
 /// createSparcFPMoverPass - Returns a pass that turns FpMOVD



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp X86FloatingPoint.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.134 -> 1.135
X86FloatingPoint.cpp updated: 1.69 -> 1.70
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 X86CodeEmitter.cpp   |4 ++--
 X86FloatingPoint.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.134 
llvm/lib/Target/X86/X86CodeEmitter.cpp:1.135
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.134Tue May  1 16:15:46 2007
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp  Wed May  2 16:39:19 2007
@@ -39,7 +39,7 @@
 MachineCodeEmitter  &MCE;
 bool Is64BitMode;
   public:
-static const int ID;
+static const char ID;
 explicit Emitter(TargetMachine &tm, MachineCodeEmitter &mce)
   : MachineFunctionPass((intptr_t)&ID), II(0), TD(0), TM(tm), 
   MCE(mce), Is64BitMode(false) {}
@@ -82,7 +82,7 @@
 bool isX86_64ExtendedReg(const MachineOperand &MO);
 unsigned determineREX(const MachineInstr &MI);
   };
-  const int Emitter::ID = 0;
+  const char Emitter::ID = 0;
 }
 
 /// createX86CodeEmitterPass - Return a pass that emits the collected X86 code


Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.69 
llvm/lib/Target/X86/X86FloatingPoint.cpp:1.70
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.69   Tue May  1 16:15:46 2007
+++ llvm/lib/Target/X86/X86FloatingPoint.cppWed May  2 16:39:19 2007
@@ -52,7 +52,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN FPS : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 FPS() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &MF);
@@ -154,7 +154,7 @@
 void handleCondMovFP(MachineBasicBlock::iterator &I);
 void handleSpecialFP(MachineBasicBlock::iterator &I);
   };
-  const int FPS::ID = 0;
+  const char FPS::ID = 0;
 }
 
 FunctionPass *llvm::createX86FloatingPointStackifierPass() { return new FPS(); 
}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/docs/WritingAnLLVMPass.html

2007-05-02 Thread Devang Patel


Changes in directory llvm/docs:

WritingAnLLVMPass.html updated: 1.57 -> 1.58
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 WritingAnLLVMPass.html |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/docs/WritingAnLLVMPass.html
diff -u llvm/docs/WritingAnLLVMPass.html:1.57 
llvm/docs/WritingAnLLVMPass.html:1.58
--- llvm/docs/WritingAnLLVMPass.html:1.57   Tue May  1 15:55:38 2007
+++ llvm/docs/WritingAnLLVMPass.htmlWed May  2 16:39:18 2007
@@ -263,7 +263,7 @@
 time.
 
 
- static const int ID;
+ static const char ID;
  Hello() : FunctionPass((intptr_t)&ID) {}
 
 
@@ -285,7 +285,7 @@
 function.
 
 
-  const int Hello::ID = 0;
+  const char Hello::ID = 0;
 
 
  We initialize pass ID here. LLVM uses ID's address to identify pass so 
@@ -311,7 +311,7 @@
 namespace {
   struct Hello : public FunctionPass 
{
 
-static const int ID;
+static const char ID;
 Hello() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function 
&F) {
@@ -1807,7 +1807,7 @@
 
   mailto:[EMAIL PROTECTED]">Chris Lattner
   http://llvm.org";>The LLVM Compiler Infrastructure
-  Last modified: $Date: 2007/05/01 20:55:38 $
+  Last modified: $Date: 2007/05/02 21:39:18 $
 
 
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.180 -> 1.181
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 Writer.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.180 
llvm/lib/Bytecode/Writer/Writer.cpp:1.181
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.180   Tue May  1 16:15:46 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp Wed May  2 16:39:18 2007
@@ -47,7 +47,7 @@
 /// @brief The bytecode version number
 const unsigned BCVersionNum = 7;
 
-const int WriteBytecodePass::ID = 0;
+const char WriteBytecodePass::ID = 0;
 static RegisterPass X("emitbytecode", "Bytecode Writer");
 
 STATISTIC(BytesWritten, "Number of bytecode bytes written");



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp EdgeProfiling.cpp RSProfiling.cpp RSProfiling.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Instrumentation:

BlockProfiling.cpp updated: 1.23 -> 1.24
EdgeProfiling.cpp updated: 1.13 -> 1.14
RSProfiling.cpp updated: 1.25 -> 1.26
RSProfiling.h updated: 1.5 -> 1.6
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 BlockProfiling.cpp |8 
 EdgeProfiling.cpp  |4 ++--
 RSProfiling.cpp|   10 +-
 RSProfiling.h  |2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)


Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.23 
llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.24
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.23 Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp  Wed May  2 
16:39:19 2007
@@ -33,11 +33,11 @@
 namespace {
   class VISIBILITY_HIDDEN FunctionProfiler : public RSProfilers_std {
   public:
-static const int ID;
+static const char ID;
 bool runOnModule(Module &M);
   };
 
-  const int FunctionProfiler::ID = 0;
+  const char FunctionProfiler::ID = 0;
 
   RegisterPass X("insert-function-profiling",
"Insert instrumentation for function 
profiling");
@@ -84,10 +84,10 @@
   class BlockProfiler : public RSProfilers_std {
 bool runOnModule(Module &M);
   public:
-static const int ID;
+static const char ID;
   };
 
-  const int BlockProfiler::ID = 0;
+  const char BlockProfiler::ID = 0;
   RegisterPass Y("insert-block-profiling",
 "Insert instrumentation for block profiling");
   RegisterAnalysisGroup YG(Y);


Index: llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.13 
llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.14
--- llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.13  Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp   Wed May  2 
16:39:19 2007
@@ -33,11 +33,11 @@
   class VISIBILITY_HIDDEN EdgeProfiler : public ModulePass {
 bool runOnModule(Module &M);
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 EdgeProfiler() : ModulePass((intptr_t)&ID) {}
   };
 
-  const int EdgeProfiler::ID = 0;
+  const char EdgeProfiler::ID = 0;
   RegisterPass X("insert-edge-profiling",
"Insert instrumentation for edge profiling");
 }


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.25 
llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.26
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.25Wed May  2 
15:37:47 2007
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp Wed May  2 16:39:19 2007
@@ -69,7 +69,7 @@
   /// measuring framework overhead
   class VISIBILITY_HIDDEN NullProfilerRS : public RSProfilers {
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 bool isProfiling(Value* v) {
   return false;
 }
@@ -139,7 +139,7 @@
 
   /// ProfilerRS - Insert the random sampling framework
   struct VISIBILITY_HIDDEN ProfilerRS : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 ProfilerRS() : FunctionPass((intptr_t)&ID) {}
 
 std::map TransCache;
@@ -162,9 +162,9 @@
  "Insert random sampling instrumentation 
framework");
 }
 
-const int RSProfilers::ID = 0;
-const int NullProfilerRS::ID = 0;
-const int ProfilerRS::ID = 0;
+const char RSProfilers::ID = 0;
+const char NullProfilerRS::ID = 0;
+const char ProfilerRS::ID = 0;
 
 //Local utilities
 static void ReplacePhiPred(BasicBlock* btarget, 


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.h
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.5 
llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.6
--- llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.5   Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.h   Wed May  2 16:39:19 2007
@@ -17,7 +17,7 @@
   /// RSProfilers_std - a simple support class for profilers that handles most
   /// of the work of chaining and tracking inserted code.
   struct RSProfilers_std : public RSProfilers {
-static const int ID;
+static const char ID;
 std::set profcode;
 // Lookup up values in profcode
 virtual bool isProfiling(Value* v);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.

[llvm-commits] CVS: llvm/include/llvm/PassManagers.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm:

PassManagers.h updated: 1.17 -> 1.18
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 PassManagers.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/PassManagers.h
diff -u llvm/include/llvm/PassManagers.h:1.17 
llvm/include/llvm/PassManagers.h:1.18
--- llvm/include/llvm/PassManagers.h:1.17   Tue May  1 16:15:46 2007
+++ llvm/include/llvm/PassManagers.hWed May  2 16:39:18 2007
@@ -336,7 +336,7 @@
 class FPPassManager : public ModulePass, public PMDataManager {
  
 public:
-  static const int ID;
+  static const char ID;
   explicit FPPassManager(int Depth) 
   : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
   



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/MSIL/MSILWriter.cpp MSILWriter.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/MSIL:

MSILWriter.cpp updated: 1.5 -> 1.6
MSILWriter.h updated: 1.3 -> 1.4
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 MSILWriter.cpp |4 ++--
 MSILWriter.h   |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/MSIL/MSILWriter.cpp
diff -u llvm/lib/Target/MSIL/MSILWriter.cpp:1.5 
llvm/lib/Target/MSIL/MSILWriter.cpp:1.6
--- llvm/lib/Target/MSIL/MSILWriter.cpp:1.5 Tue May  1 16:15:46 2007
+++ llvm/lib/Target/MSIL/MSILWriter.cpp Wed May  2 16:39:19 2007
@@ -80,8 +80,8 @@
   return Changed;
 }
 
-const int MSILModule::ID = 0;
-const int MSILWriter::ID = 0;
+const char MSILModule::ID = 0;
+const char MSILWriter::ID = 0;
 
 bool MSILWriter::runOnFunction(Function &F) {
   if (F.isDeclaration()) return false;


Index: llvm/lib/Target/MSIL/MSILWriter.h
diff -u llvm/lib/Target/MSIL/MSILWriter.h:1.3 
llvm/lib/Target/MSIL/MSILWriter.h:1.4
--- llvm/lib/Target/MSIL/MSILWriter.h:1.3   Tue May  1 16:15:46 2007
+++ llvm/lib/Target/MSIL/MSILWriter.h   Wed May  2 16:39:19 2007
@@ -37,7 +37,7 @@
 const TargetData*& TD;
 
   public:
-static const int ID;
+static const char ID;
 MSILModule(const std::set*& _UsedTypes,
const TargetData*& _TD)
   : ModulePass((intptr_t)&ID), UsedTypes(_UsedTypes), TD(_TD) {}
@@ -83,7 +83,7 @@
 std::map >
   StaticInitList;
 const std::set* UsedTypes;
-static const int ID;
+static const char ID;
 MSILWriter(std::ostream &o) : FunctionPass((intptr_t)&ID), Out(o) {
   UniqID = 0;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Bytecode:

WriteBytecodePass.h updated: 1.20 -> 1.21
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 WriteBytecodePass.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h
diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 
llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h  Wed May  2 16:39:18 2007
@@ -26,7 +26,7 @@
   bool DeleteStream;
   bool CompressFile;
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   WriteBytecodePass()
 : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), 
   CompressFile(false) {}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasAnalysis.h CallGraph.h Dominators.h FindUsedTypes.h IntervalPartition.h LoopInfo.h LoopPass.h PostDominators.h ProfileInfo.h ScalarEvolution.h Value

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Analysis:

AliasAnalysis.h updated: 1.29 -> 1.30
CallGraph.h updated: 1.54 -> 1.55
Dominators.h updated: 1.77 -> 1.78
FindUsedTypes.h updated: 1.30 -> 1.31
IntervalPartition.h updated: 1.24 -> 1.25
LoopInfo.h updated: 1.64 -> 1.65
LoopPass.h updated: 1.16 -> 1.17
PostDominators.h updated: 1.18 -> 1.19
ProfileInfo.h updated: 1.6 -> 1.7
ScalarEvolution.h updated: 1.17 -> 1.18
ValueNumbering.h updated: 1.11 -> 1.12
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AliasAnalysis.h |2 +-
 CallGraph.h |2 +-
 Dominators.h|6 +++---
 FindUsedTypes.h |2 +-
 IntervalPartition.h |2 +-
 LoopInfo.h  |2 +-
 LoopPass.h  |2 +-
 PostDominators.h|6 +++---
 ProfileInfo.h   |2 +-
 ScalarEvolution.h   |2 +-
 ValueNumbering.h|2 +-
 11 files changed, 15 insertions(+), 15 deletions(-)


Index: llvm/include/llvm/Analysis/AliasAnalysis.h
diff -u llvm/include/llvm/Analysis/AliasAnalysis.h:1.29 
llvm/include/llvm/Analysis/AliasAnalysis.h:1.30
--- llvm/include/llvm/Analysis/AliasAnalysis.h:1.29 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Analysis/AliasAnalysis.h  Wed May  2 16:39:18 2007
@@ -61,7 +61,7 @@
   virtual void getAnalysisUsage(AnalysisUsage &AU) const;
 
 public:
-  static const int ID; // Class identification, replacement for typeinfo
+  static const char ID; // Class identification, replacement for typeinfo
   AliasAnalysis() : TD(0), AA(0) {}
   virtual ~AliasAnalysis();  // We want to be subclassed
 


Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.54 
llvm/include/llvm/Analysis/CallGraph.h:1.55
--- llvm/include/llvm/Analysis/CallGraph.h:1.54 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Analysis/CallGraph.h  Wed May  2 16:39:18 2007
@@ -73,7 +73,7 @@
   FunctionMapTy FunctionMap;// Map from a function to its node
 
 public:
-  static const int ID; // Class identification, replacement for typeinfo
+  static const char ID; // Class identification, replacement for typeinfo
   //===-
   // Accessors...
   //


Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.77 
llvm/include/llvm/Analysis/Dominators.h:1.78
--- llvm/include/llvm/Analysis/Dominators.h:1.77Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Analysis/Dominators.h Wed May  2 16:39:18 2007
@@ -208,7 +208,7 @@
 ///
 class DominatorTree : public DominatorTreeBase {
 public:
-  static const int ID; // Pass ID, replacement for typeid
+  static const char ID; // Pass ID, replacement for typeid
   DominatorTree() : DominatorTreeBase((intptr_t)&ID, false) {}
   
   BasicBlock *getRoot() const {
@@ -399,7 +399,7 @@
 
 class ETForest : public ETForestBase {
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
 
   ETForest() : ETForestBase((intptr_t)&ID, false) {}
 
@@ -477,7 +477,7 @@
 ///
 class DominanceFrontier : public DominanceFrontierBase {
 public:
-  static const int ID; // Pass ID, replacement for typeid
+  static const char ID; // Pass ID, replacement for typeid
   DominanceFrontier() : 
 DominanceFrontierBase((intptr_t)& ID, false) {}
 


Index: llvm/include/llvm/Analysis/FindUsedTypes.h
diff -u llvm/include/llvm/Analysis/FindUsedTypes.h:1.30 
llvm/include/llvm/Analysis/FindUsedTypes.h:1.31
--- llvm/include/llvm/Analysis/FindUsedTypes.h:1.30 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Analysis/FindUsedTypes.h  Wed May  2 16:39:18 2007
@@ -24,7 +24,7 @@
 class FindUsedTypes : public ModulePass {
   std::set UsedTypes;
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   FindUsedTypes() : ModulePass((intptr_t)&ID) {}
 
   /// getTypes - After the pass has been run, return the set containing all of


Index: llvm/include/llvm/Analysis/IntervalPartition.h
diff -u llvm/include/llvm/Analysis/IntervalPartition.h:1.24 
llvm/include/llvm/Analysis/IntervalPartition.h:1.25
--- llvm/include/llvm/Analysis/IntervalPartition.h:1.24 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Analysis/IntervalPartition.h  Wed May  2 16:39:18 2007
@@ -45,7 +45,7 @@
   std::vector Intervals;
 
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
 
   IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {}
 


Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.64 
llvm/include/llvm/Analysis/LoopInfo.h:1.65
--- llvm/include/llvm/

[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.61 -> 1.62
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 TargetData.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.61 
llvm/include/llvm/Target/TargetData.h:1.62
--- llvm/include/llvm/Target/TargetData.h:1.61  Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Target/TargetData.h   Wed May  2 16:39:18 2007
@@ -202,7 +202,7 @@
   /// requested alignment (if the global has one).
   unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const;
 
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
 };
 
 /// StructLayout - used to lazily calculate structure layout information for a



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h LiveIntervalAnalysis.h LiveVariables.h MachineModuleInfo.h SelectionDAGISel.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.64 -> 1.65
LiveIntervalAnalysis.h updated: 1.81 -> 1.82
LiveVariables.h updated: 1.42 -> 1.43
MachineModuleInfo.h updated: 1.8 -> 1.9
SelectionDAGISel.h updated: 1.38 -> 1.39
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AsmPrinter.h   |2 +-
 LiveIntervalAnalysis.h |2 +-
 LiveVariables.h|2 +-
 MachineModuleInfo.h|2 +-
 SelectionDAGISel.h |2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.64 
llvm/include/llvm/CodeGen/AsmPrinter.h:1.65
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.64 Tue May  1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/AsmPrinter.h  Wed May  2 16:39:18 2007
@@ -34,7 +34,7 @@
   /// AsmPrinter - This class is intended to be used as a driving class for all
   /// asm writers.
   class AsmPrinter : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 
 /// FunctionNumber - This provides a unique ID for each function emitted in
 /// this translation unit.  It is autoincremented by SetupMachineFunction,


Index: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.81 
llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.82
--- llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.81   Tue May  1 
16:15:46 2007
+++ llvm/include/llvm/CodeGen/LiveIntervalAnalysis.hWed May  2 16:39:18 2007
@@ -65,7 +65,7 @@
 BitVector JoinedLIs;
 
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 LiveIntervals() : MachineFunctionPass((intptr_t)&ID) {}
 
 struct CopyRec {


Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.42 
llvm/include/llvm/CodeGen/LiveVariables.h:1.43
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.42  Tue May  1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/LiveVariables.h   Wed May  2 16:39:18 2007
@@ -40,7 +40,7 @@
 
 class LiveVariables : public MachineFunctionPass {
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   LiveVariables() : MachineFunctionPass((intptr_t)&ID) {}
 
   /// VarInfo - This represents the regions where a virtual register is live in


Index: llvm/include/llvm/CodeGen/MachineModuleInfo.h
diff -u llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.8 
llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.9
--- llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.8   Tue May  1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/MachineModuleInfo.h   Wed May  2 16:39:18 2007
@@ -1022,7 +1022,7 @@
   std::vector TypeInfos;
 
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
 
   MachineModuleInfo();
   ~MachineModuleInfo();


Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.38 
llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.39
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.38   Tue May  1 16:15:46 2007
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.hWed May  2 16:39:18 2007
@@ -41,7 +41,7 @@
   MachineBasicBlock *BB;
   std::vector TopOrder;
   unsigned DAGSize;
-  static const int ID;
+  static const char ID;
 
   explicit SelectionDAGISel(TargetLowering &tli) : 
 FunctionPass((intptr_t)&ID), TLI(tli), DAGSize(0) {}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/CBackend:

CBackend.cpp updated: 1.340 -> 1.341
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 CBackend.cpp |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.340 
llvm/lib/Target/CBackend/CBackend.cpp:1.341
--- llvm/lib/Target/CBackend/CBackend.cpp:1.340 Tue May  1 21:17:41 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp   Wed May  2 16:39:19 2007
@@ -57,7 +57,7 @@
   ///
   class CBackendNameAllUsedStructsAndMergeFunctions : public ModulePass {
   public:
-static const int ID;
+static const char ID;
 CBackendNameAllUsedStructsAndMergeFunctions() 
   : ModulePass((intptr_t)&ID) {}
 void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -71,7 +71,7 @@
 virtual bool runOnModule(Module &M);
   };
 
-  const int CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
+  const char CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
 
   /// CWriter - This class is the main chunk of code that converts an LLVM
   /// module to a C translation unit.
@@ -88,7 +88,7 @@
 std::set intrinsicPrototypesAlreadyGenerated;
 
   public:
-static const int ID;
+static const char ID;
 CWriter(std::ostream &o) 
   : FunctionPass((intptr_t)&ID), Out(o), IL(0), Mang(0), LI(0), 
 TheModule(0), TAsm(0), TD(0) {}
@@ -264,7 +264,7 @@
   };
 }
 
-const int CWriter::ID = 0;
+const char CWriter::ID = 0;
 
 /// This method inserts names for any unnamed structure types that are used by
 /// the program, and removes names from structure types that are not used by 
the



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Hello/Hello.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Hello:

Hello.cpp updated: 1.15 -> 1.16
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 Hello.cpp |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Transforms/Hello/Hello.cpp
diff -u llvm/lib/Transforms/Hello/Hello.cpp:1.15 
llvm/lib/Transforms/Hello/Hello.cpp:1.16
--- llvm/lib/Transforms/Hello/Hello.cpp:1.15Tue May  1 16:15:46 2007
+++ llvm/lib/Transforms/Hello/Hello.cpp Wed May  2 16:39:19 2007
@@ -25,7 +25,7 @@
 namespace {
   // Hello - The first implementation, without getAnalysisUsage.
   struct Hello : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 Hello() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F) {
@@ -37,12 +37,12 @@
 }
   };
 
-  const int Hello::ID = 0;
+  const char Hello::ID = 0;
   RegisterPass X("hello", "Hello World Pass");
 
   // Hello2 - The second implementation with getAnalysisUsage implemented.
   struct Hello2 : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 Hello2() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F) {
@@ -58,7 +58,7 @@
   AU.setPreservesAll();
 };
   };
-  const int Hello2::ID = 0;
+  const char Hello2::ID = 0;
   RegisterPass Y("hello2",
 "Hello World Pass (with getAnalysisUsage 
implemented)");
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/tools/opt/AnalysisWrappers.cpp GraphPrinters.cpp PrintSCC.cpp opt.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/tools/opt:

AnalysisWrappers.cpp updated: 1.22 -> 1.23
GraphPrinters.cpp updated: 1.15 -> 1.16
PrintSCC.cpp updated: 1.16 -> 1.17
opt.cpp updated: 1.135 -> 1.136
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AnalysisWrappers.cpp |8 
 GraphPrinters.cpp|4 ++--
 PrintSCC.cpp |8 
 opt.cpp  |   12 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)


Index: llvm/tools/opt/AnalysisWrappers.cpp
diff -u llvm/tools/opt/AnalysisWrappers.cpp:1.22 
llvm/tools/opt/AnalysisWrappers.cpp:1.23
--- llvm/tools/opt/AnalysisWrappers.cpp:1.22Tue May  1 16:15:47 2007
+++ llvm/tools/opt/AnalysisWrappers.cpp Wed May  2 16:39:20 2007
@@ -30,7 +30,7 @@
   /// useful when looking for standard library functions we should constant 
fold
   /// or handle in alias analyses.
   struct ExternalFunctionsPassedConstants : public ModulePass {
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 ExternalFunctionsPassedConstants() : ModulePass((intptr_t)&ID) {}
 virtual bool runOnModule(Module &M) {
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
@@ -63,12 +63,12 @@
 }
   };
 
-  const int ExternalFunctionsPassedConstants::ID = 0;
+  const char ExternalFunctionsPassedConstants::ID = 0;
   RegisterPass
   P1("externalfnconstants", "Print external fn callsites passed constants");
   
   struct CallGraphPrinter : public ModulePass {
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
 
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -82,7 +82,7 @@
 }
   };
   
-  const int CallGraphPrinter::ID = 0;
+  const char CallGraphPrinter::ID = 0;
   RegisterPass
 P2("callgraph", "Print a call graph");
 }


Index: llvm/tools/opt/GraphPrinters.cpp
diff -u llvm/tools/opt/GraphPrinters.cpp:1.15 
llvm/tools/opt/GraphPrinters.cpp:1.16
--- llvm/tools/opt/GraphPrinters.cpp:1.15   Tue May  1 16:15:47 2007
+++ llvm/tools/opt/GraphPrinters.cppWed May  2 16:39:20 2007
@@ -60,7 +60,7 @@
 
 namespace {
   struct CallGraphPrinter : public ModulePass {
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
 
 virtual bool runOnModule(Module &M) {
@@ -77,7 +77,7 @@
 }
   };
 
-  const int CallGraphPrinter::ID = 0;
+  const char CallGraphPrinter::ID = 0;
   RegisterPass P2("print-callgraph",
 "Print Call Graph to 'dot' file");
 }


Index: llvm/tools/opt/PrintSCC.cpp
diff -u llvm/tools/opt/PrintSCC.cpp:1.16 llvm/tools/opt/PrintSCC.cpp:1.17
--- llvm/tools/opt/PrintSCC.cpp:1.16Tue May  1 16:15:47 2007
+++ llvm/tools/opt/PrintSCC.cpp Wed May  2 16:39:20 2007
@@ -35,7 +35,7 @@
 
 namespace {
   struct CFGSCC : public FunctionPass {
-static const int ID;  // Pass identification, replacement for typeid
+static const char ID;  // Pass identification, replacement for typeid
 CFGSCC() : FunctionPass((intptr_t)&ID) {}
 bool runOnFunction(Function& func);
 
@@ -47,7 +47,7 @@
   };
 
   struct CallGraphSCC : public ModulePass {
-static const int ID;  // Pass identification, replacement for typeid
+static const char ID;  // Pass identification, replacement for typeid
 CallGraphSCC() : ModulePass((intptr_t)&ID) {}
 
 // run - Print out SCCs in the call graph for the specified module.
@@ -62,11 +62,11 @@
 }
   };
 
-  const int CFGSCC::ID = 0;
+  const char CFGSCC::ID = 0;
   RegisterPass
   Y("cfgscc", "Print SCCs of each function CFG");
 
-  const int CallGraphSCC::ID = 0;
+  const char CallGraphSCC::ID = 0;
   RegisterPass
   Z("callscc", "Print SCCs of the Call Graph");
 }


Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.135 llvm/tools/opt/opt.cpp:1.136
--- llvm/tools/opt/opt.cpp:1.135Tue May  1 16:15:47 2007
+++ llvm/tools/opt/opt.cpp  Wed May  2 16:39:20 2007
@@ -98,7 +98,7 @@
 namespace {
 
 struct ModulePassPrinter : public ModulePass {
-  static const int ID;
+  static const char ID;
   const PassInfo *PassToPrint;
   ModulePassPrinter(const PassInfo *PI) : ModulePass((intptr_t)&ID),
   PassToPrint(PI) {}
@@ -121,10 +121,10 @@
   }
 };
 
-const int ModulePassPrinter::ID = 0;
+const char ModulePassPrinter::ID = 0;
 struct FunctionPassPrinter : public FunctionPass {
   const PassInfo *PassToPrint;
-  static const int ID;
+  static const char ID;
   FunctionPassPrinter(const PassInfo *PI) : FunctionPass((intptr_t)&ID),
 Pas

[llvm-commits] CVS: llvm/include/llvm/Transforms/RSProfiling.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Transforms:

RSProfiling.h updated: 1.3 -> 1.4
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 RSProfiling.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Transforms/RSProfiling.h
diff -u llvm/include/llvm/Transforms/RSProfiling.h:1.3 
llvm/include/llvm/Transforms/RSProfiling.h:1.4
--- llvm/include/llvm/Transforms/RSProfiling.h:1.3  Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Transforms/RSProfiling.h  Wed May  2 16:39:18 2007
@@ -23,7 +23,7 @@
   /// this interface are expected to chain to other implementations, such that
   /// multiple profilers can be support simultaniously.
   struct RSProfilers : public ModulePass {
-static const int ID; // Pass identification, replacement for typeinfo
+static const char ID; // Pass identification, replacement for typeinfo
 RSProfilers() : ModulePass((intptr_t)&ID) {}
 
 /// isProfiling - This method returns true if the value passed it was 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp ConstantMerge.cpp DeadArgumentElimination.cpp DeadTypeElimination.cpp ExtractFunction.cpp GlobalDCE.cpp GlobalOpt.cpp IPConstantPropag

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/IPO:

ArgumentPromotion.cpp updated: 1.40 -> 1.41
ConstantMerge.cpp updated: 1.40 -> 1.41
DeadArgumentElimination.cpp updated: 1.41 -> 1.42
DeadTypeElimination.cpp updated: 1.63 -> 1.64
ExtractFunction.cpp updated: 1.21 -> 1.22
GlobalDCE.cpp updated: 1.46 -> 1.47
GlobalOpt.cpp updated: 1.102 -> 1.103
IPConstantPropagation.cpp updated: 1.24 -> 1.25
IndMemRemoval.cpp updated: 1.16 -> 1.17
InlineSimple.cpp updated: 1.79 -> 1.80
Inliner.cpp updated: 1.38 -> 1.39
Inliner.h updated: 1.10 -> 1.11
Internalize.cpp updated: 1.46 -> 1.47
LoopExtractor.cpp updated: 1.25 -> 1.26
LowerSetJmp.cpp updated: 1.41 -> 1.42
PruneEH.cpp updated: 1.32 -> 1.33
RaiseAllocations.cpp updated: 1.41 -> 1.42
SimplifyLibCalls.cpp updated: 1.113 -> 1.114
StripDeadPrototypes.cpp updated: 1.6 -> 1.7
StripSymbols.cpp updated: 1.16 -> 1.17
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 ArgumentPromotion.cpp   |4 ++--
 ConstantMerge.cpp   |4 ++--
 DeadArgumentElimination.cpp |8 
 DeadTypeElimination.cpp |4 ++--
 ExtractFunction.cpp |4 ++--
 GlobalDCE.cpp   |4 ++--
 GlobalOpt.cpp   |4 ++--
 IPConstantPropagation.cpp   |4 ++--
 IndMemRemoval.cpp   |4 ++--
 InlineSimple.cpp|4 ++--
 Inliner.cpp |2 +-
 Inliner.h   |2 +-
 Internalize.cpp |4 ++--
 LoopExtractor.cpp   |   12 ++--
 LowerSetJmp.cpp |4 ++--
 PruneEH.cpp |4 ++--
 RaiseAllocations.cpp|4 ++--
 SimplifyLibCalls.cpp|4 ++--
 StripDeadPrototypes.cpp |4 ++--
 StripSymbols.cpp|4 ++--
 20 files changed, 44 insertions(+), 44 deletions(-)


Index: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff -u llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.40 
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.41
--- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.40  Tue May  1 16:15:46 2007
+++ llvm/lib/Transforms/IPO/ArgumentPromotion.cpp   Wed May  2 16:39:19 2007
@@ -63,7 +63,7 @@
 }
 
 virtual bool runOnSCC(const std::vector &SCC);
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 ArgPromotion() : CallGraphSCCPass((intptr_t)&ID) {}
 
   private:
@@ -72,7 +72,7 @@
 Function *DoPromotion(Function *F, std::vector &ArgsToPromote);
   };
 
-  const int ArgPromotion::ID = 0;
+  const char ArgPromotion::ID = 0;
   RegisterPass X("argpromotion",
"Promote 'by reference' arguments to scalars");
 }


Index: llvm/lib/Transforms/IPO/ConstantMerge.cpp
diff -u llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.40 
llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.41
--- llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.40  Tue May  1 16:15:46 2007
+++ llvm/lib/Transforms/IPO/ConstantMerge.cpp   Wed May  2 16:39:19 2007
@@ -29,7 +29,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN ConstantMerge : public ModulePass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 ConstantMerge() : ModulePass((intptr_t)&ID) {}
 
 // run - For this pass, process all of the globals in the module,
@@ -38,7 +38,7 @@
 bool runOnModule(Module &M);
   };
 
-  const int ConstantMerge::ID = 0;
+  const char ConstantMerge::ID = 0;
   RegisterPassX("constmerge","Merge Duplicate Global 
Constants");
 }
 


Index: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.41 
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.42
--- llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.41Tue May  1 
16:15:46 2007
+++ llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp Wed May  2 16:39:19 2007
@@ -76,7 +76,7 @@
 std::multimap CallSites;
 
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 DAE() : ModulePass((intptr_t)&ID) {}
 bool runOnModule(Module &M);
 
@@ -95,17 +95,17 @@
 
 void RemoveDeadArgumentsFromFunction(Function *F);
   };
-  const int DAE::ID = 0;
+  const char DAE::ID = 0;
   RegisterPass X("deadargelim", "Dead Argument Elimination");
 
   /// DAH - DeadArgumentHacking pass - Same as dead argument elimination, but
   /// deletes arguments to functions which are external.  This is only for use
   /// by bugpoint.
   struct DAH : public DAE {
-static const int ID;
+static const char ID;
 virtual bool ShouldHackArguments() const { return true; }
   };
-  const int DAH::ID = 0;
+  const char DAH::ID = 0;
   Reg

[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Transforms/Utils:

UnifyFunctionExitNodes.h updated: 1.21 -> 1.22
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 UnifyFunctionExitNodes.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.21 
llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.22
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.21Tue May 
 1 16:15:46 2007
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h Wed May  2 
16:39:18 2007
@@ -25,7 +25,7 @@
 struct UnifyFunctionExitNodes : public FunctionPass {
   BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock;
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   UnifyFunctionExitNodes() : FunctionPass((intptr_t)&ID),
  ReturnBlock(0), UnwindBlock(0) {}
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp PPCCodeEmitter.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/PowerPC:

PPCBranchSelector.cpp updated: 1.43 -> 1.44
PPCCodeEmitter.cpp updated: 1.76 -> 1.77
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 PPCBranchSelector.cpp |4 ++--
 PPCCodeEmitter.cpp|4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.43 
llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.43  Tue May  1 16:15:46 2007
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp   Wed May  2 16:39:19 2007
@@ -32,7 +32,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 PPCBSel() : MachineFunctionPass((intptr_t)&ID) {}
 
 /// BlockSizes - The sizes of the basic blocks in the function.
@@ -44,7 +44,7 @@
   return "PowerPC Branch Selector";
 }
   };
-  const int PPCBSel::ID = 0;
+  const char PPCBSel::ID = 0;
 }
 
 /// createPPCBranchSelectionPass - returns an instance of the Branch Selection


Index: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.76 
llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.76 Tue May  1 16:15:46 2007
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp  Wed May  2 16:39:19 2007
@@ -40,7 +40,7 @@
 int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
 
   public:
-static const int ID;
+static const char ID;
 PPCCodeEmitter(TargetMachine &T, MachineCodeEmitter &M)
   : MachineFunctionPass((intptr_t)&ID), TM(T), MCE(M) {}
 
@@ -64,7 +64,7 @@
 ///
 unsigned getBinaryCodeForInstr(MachineInstr &MI);
   };
-  const int PPCCodeEmitter::ID = 0;
+  const char PPCCodeEmitter::ID = 0;
 }
 
 /// createPPCCodeEmitterPass - Return a pass that emits the collected PPC code



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/IA64/IA64Bundling.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/IA64:

IA64Bundling.cpp updated: 1.9 -> 1.10
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 IA64Bundling.cpp |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/IA64/IA64Bundling.cpp
diff -u llvm/lib/Target/IA64/IA64Bundling.cpp:1.9 
llvm/lib/Target/IA64/IA64Bundling.cpp:1.10
--- llvm/lib/Target/IA64/IA64Bundling.cpp:1.9   Tue May  1 16:15:46 2007
+++ llvm/lib/Target/IA64/IA64Bundling.cpp   Wed May  2 16:39:19 2007
@@ -36,7 +36,7 @@
 
 namespace {
   struct IA64BundlingPass : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 /// Target machine description which we query for reg. names, data
 /// layout, etc.
 ///
@@ -63,7 +63,7 @@
 // 'fallthrough' code
 std::set PendingRegWrites;
   };
-  const int IA64BundlingPass::ID = 0;
+  const char IA64BundlingPass::ID = 0;
 } // end of anonymous namespace
 
 /// createIA64BundlingPass - Returns a pass that adds STOP (;;) instructions



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Dominators.cpp PassManager.cpp Verifier.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.280 -> 1.281
Dominators.cpp updated: 1.98 -> 1.99
PassManager.cpp updated: 1.154 -> 1.155
Verifier.cpp updated: 1.210 -> 1.211
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AsmWriter.cpp   |4 ++--
 Dominators.cpp  |6 +++---
 PassManager.cpp |   18 +-
 Verifier.cpp|4 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)


Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.280 llvm/lib/VMCore/AsmWriter.cpp:1.281
--- llvm/lib/VMCore/AsmWriter.cpp:1.280 Tue May  1 16:15:47 2007
+++ llvm/lib/VMCore/AsmWriter.cpp   Wed May  2 16:39:19 2007
@@ -135,10 +135,10 @@
 
 }  // end namespace llvm
 
-const int PrintModulePass::ID = 0;
+const char PrintModulePass::ID = 0;
 static RegisterPass
 X("printm", "Print module to stderr");
-const int PrintFunctionPass::ID = 0;
+const char PrintFunctionPass::ID = 0;
 static RegisterPass
 Y("print","Print function to stderr");
 


Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.98 llvm/lib/VMCore/Dominators.cpp:1.99
--- llvm/lib/VMCore/Dominators.cpp:1.98 Tue May  1 16:15:47 2007
+++ llvm/lib/VMCore/Dominators.cpp  Wed May  2 16:39:20 2007
@@ -58,7 +58,7 @@
 //
 
//===--===//
 
-const int DominatorTree::ID = 0;
+const char DominatorTree::ID = 0;
 static RegisterPass
 E("domtree", "Dominator Tree Construction", true);
 
@@ -354,7 +354,7 @@
 //  DominanceFrontier Implementation
 
//===--===//
 
-const int DominanceFrontier::ID = 0;
+const char DominanceFrontier::ID = 0;
 static RegisterPass
 G("domfrontier", "Dominance Frontier Construction", true);
 
@@ -835,7 +835,7 @@
 // ETForest implementation
 
//===--===//
 
-const int ETForest::ID = 0;
+const char ETForest::ID = 0;
 static RegisterPass
 D("etforest", "ET Forest Construction", true);
 


Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.154 
llvm/lib/VMCore/PassManager.cpp:1.155
--- llvm/lib/VMCore/PassManager.cpp:1.154   Tue May  1 16:15:47 2007
+++ llvm/lib/VMCore/PassManager.cpp Wed May  2 16:39:20 2007
@@ -63,7 +63,7 @@
 public FunctionPass {
 
 public:
-  static const int ID;
+  static const char ID;
   BBPassManager(int Depth) 
 : PMDataManager(Depth), FunctionPass((intptr_t)&ID) {}
 
@@ -106,7 +106,7 @@
   }
 };
 
-const int BBPassManager::ID = 0;
+const char BBPassManager::ID = 0;
 }
 
 namespace llvm {
@@ -119,7 +119,7 @@
 public PMDataManager,
 public PMTopLevelManager {
 public:
-  static const int ID;
+  static const char ID;
   FunctionPassManagerImpl(int Depth) : 
 Pass((intptr_t)&ID), PMDataManager(Depth), 
 PMTopLevelManager(TLM_Function) { }
@@ -173,7 +173,7 @@
   }
 };
 
-const int FunctionPassManagerImpl::ID = 0;
+const char FunctionPassManagerImpl::ID = 0;
 
//===--===//
 // MPPassManager
 //
@@ -183,7 +183,7 @@
 class MPPassManager : public Pass, public PMDataManager {
  
 public:
-  static const int ID;
+  static const char ID;
   MPPassManager(int Depth) : Pass((intptr_t)&ID), PMDataManager(Depth) { }
 
   // Delete on the fly managers.
@@ -247,7 +247,7 @@
   std::map OnTheFlyManagers;
 };
 
-const int MPPassManager::ID = 0;
+const char MPPassManager::ID = 0;
 
//===--===//
 // PassManagerImpl
 //
@@ -258,7 +258,7 @@
 public PMTopLevelManager {
 
 public:
-  static const int ID;
+  static const char ID;
   PassManagerImpl(int Depth) : Pass((intptr_t)&ID), PMDataManager(Depth),
PMTopLevelManager(TLM_Pass) { }
 
@@ -304,7 +304,7 @@
 
 };
 
-const int PassManagerImpl::ID = 0;
+const char PassManagerImpl::ID = 0;
 } // End of llvm namespace
 
 namespace {
@@ -1108,7 +1108,7 @@
 
//===--===//
 // FPPassManager implementation
 
-const int FPPassManager::ID = 0;
+const char FPPassManager::ID = 0;
 /// Print passes managed by this manager
 void FPPassManager::dumpPassStructure(unsigned Offset) {
   llvm::cerr << std::string(Offset*2, ' ') << "FunctionPass Manager\n";


Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.210 llvm/lib/VMCore/Verifier.cpp:1.211
--- llvm/lib/VMCore/Verifier.cpp:1.210  Tue May  1 16:15:47 2007
+++ llvm/lib/VMCore/Verifier.cppWed May  2 16:39:20 2007
@@ -69,7 +69,7 @@
 
   struct VISIBILITY_

[llvm-commits] CVS: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp LCSSA.cpp LoopSimplify.cpp LowerAllocations.cpp LowerInvoke.cpp LowerSelect.cpp LowerSwitch.cpp Mem2Reg.cpp UnifyFunctionExitNodes.

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Utils:

BreakCriticalEdges.cpp updated: 1.45 -> 1.46
LCSSA.cpp updated: 1.39 -> 1.40
LoopSimplify.cpp updated: 1.93 -> 1.94
LowerAllocations.cpp updated: 1.74 -> 1.75
LowerInvoke.cpp updated: 1.60 -> 1.61
LowerSelect.cpp updated: 1.13 -> 1.14
LowerSwitch.cpp updated: 1.39 -> 1.40
Mem2Reg.cpp updated: 1.27 -> 1.28
UnifyFunctionExitNodes.cpp updated: 1.37 -> 1.38
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 BreakCriticalEdges.cpp |4 ++--
 LCSSA.cpp  |4 ++--
 LoopSimplify.cpp   |4 ++--
 LowerAllocations.cpp   |4 ++--
 LowerInvoke.cpp|4 ++--
 LowerSelect.cpp|4 ++--
 LowerSwitch.cpp|4 ++--
 Mem2Reg.cpp|4 ++--
 UnifyFunctionExitNodes.cpp |2 +-
 9 files changed, 17 insertions(+), 17 deletions(-)


Index: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
diff -u llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.45 
llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.46
--- llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.45   Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Utils/BreakCriticalEdges.cppWed May  2 16:39:19 2007
@@ -34,7 +34,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN BreakCriticalEdges : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 BreakCriticalEdges() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F);
@@ -50,7 +50,7 @@
 }
   };
 
-  const int BreakCriticalEdges::ID = 0;
+  const char BreakCriticalEdges::ID = 0;
   RegisterPass X("break-crit-edges",
 "Break critical edges in CFG");
 }


Index: llvm/lib/Transforms/Utils/LCSSA.cpp
diff -u llvm/lib/Transforms/Utils/LCSSA.cpp:1.39 
llvm/lib/Transforms/Utils/LCSSA.cpp:1.40
--- llvm/lib/Transforms/Utils/LCSSA.cpp:1.39Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Utils/LCSSA.cpp Wed May  2 16:39:19 2007
@@ -47,7 +47,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN LCSSA : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 LCSSA() : FunctionPass((intptr_t)&ID) {}
 
 // Cached analysis information for the current function.
@@ -84,7 +84,7 @@
 }
   };
   
-  const int LCSSA::ID = 0;
+  const char LCSSA::ID = 0;
   RegisterPass X("lcssa", "Loop-Closed SSA Form Pass");
 }
 


Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.93 
llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.94
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.93 Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp  Wed May  2 16:39:19 2007
@@ -54,7 +54,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN LoopSimplify : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 LoopSimplify() : FunctionPass((intptr_t)&ID) {}
 
 // AA - If we have an alias analysis object to update, this is it, 
otherwise
@@ -92,7 +92,7 @@
  std::vector &PredBlocks);
   };
 
-  const int LoopSimplify::ID = 0;
+  const char LoopSimplify::ID = 0;
   RegisterPass
   X("loopsimplify", "Canonicalize natural loops", true);
 }


Index: llvm/lib/Transforms/Utils/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.74 
llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.75
--- llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.74 Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Utils/LowerAllocations.cpp  Wed May  2 16:39:19 2007
@@ -36,7 +36,7 @@
 Constant *FreeFunc; // Initialized by doInitialization
 bool LowerMallocArgToInteger;
   public:
-static const int ID; // Pass ID, replacement for typeid
+static const char ID; // Pass ID, replacement for typeid
 LowerAllocations(bool LowerToInt = false)
   : BasicBlockPass((intptr_t)&ID), MallocFunc(0), FreeFunc(0), 
 LowerMallocArgToInteger(LowerToInt) {}
@@ -68,7 +68,7 @@
 bool runOnBasicBlock(BasicBlock &BB);
   };
 
-  const int LowerAllocations::ID = 0;
+  const char LowerAllocations::ID = 0;
   RegisterPass
   X("lowerallocs", "Lower allocations from instructions to calls");
 }


Index: llvm/lib/Transforms/Utils/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.60 
llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.61
--- llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.60  Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Utils/LowerInvoke.cpp   Wed May  2 16:39:19 2007
@@ -75,7 +75,7

[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp AlphaCodeEmitter.cpp AlphaLLRP.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/Alpha:

AlphaBranchSelector.cpp updated: 1.3 -> 1.4
AlphaCodeEmitter.cpp updated: 1.22 -> 1.23
AlphaLLRP.cpp updated: 1.9 -> 1.10
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AlphaBranchSelector.cpp |4 ++--
 AlphaCodeEmitter.cpp|4 ++--
 AlphaLLRP.cpp   |4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
diff -u llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.3 
llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.4
--- llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.3   Tue May  1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaBranchSelector.cpp   Wed May  2 16:39:19 2007
@@ -22,7 +22,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN AlphaBSel : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 AlphaBSel() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &Fn);
@@ -31,7 +31,7 @@
   return "Alpha Branch Selection";
 }
   };
-  const int AlphaBSel::ID = 0;
+  const char AlphaBSel::ID = 0;
 }
 
 /// createAlphaBranchSelectionPass - returns an instance of the Branch 
Selection


Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.22 
llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.23
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.22 Tue May  1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp  Wed May  2 16:39:19 2007
@@ -36,7 +36,7 @@
 int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
 
   public:
-static const int ID;
+static const char ID;
 explicit AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce)
   : MachineFunctionPass((intptr_t)&ID), II(0), TM(tm), MCE(mce) {}
 AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce,
@@ -61,7 +61,7 @@
 void emitBasicBlock(MachineBasicBlock &MBB);
 
   };
-  const int AlphaCodeEmitter::ID = 0;
+  const char AlphaCodeEmitter::ID = 0;
 }
 
 /// createAlphaCodeEmitterPass - Return a pass that emits the collected Alpha 
code


Index: llvm/lib/Target/Alpha/AlphaLLRP.cpp
diff -u llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.9 
llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.10
--- llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.9 Tue May  1 16:15:46 2007
+++ llvm/lib/Target/Alpha/AlphaLLRP.cpp Wed May  2 16:39:19 2007
@@ -37,7 +37,7 @@
 ///
 AlphaTargetMachine &TM;
 
-static const int ID;
+static const char ID;
 AlphaLLRPPass(AlphaTargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm) { }
 
@@ -154,7 +154,7 @@
   return Changed;
 }
   };
-  const int AlphaLLRPPass::ID = 0;
+  const char AlphaLLRPPass::ID = 0;
 } // end of anonymous namespace
 
 FunctionPass *llvm::createAlphaLLRPPass(AlphaTargetMachine &tm) {



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp AliasDebugger.cpp AliasSetTracker.cpp BasicAliasAnalysis.cpp CFGPrinter.cpp InstCount.cpp In

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Analysis:

AliasAnalysis.cpp updated: 1.32 -> 1.33
AliasAnalysisCounter.cpp updated: 1.21 -> 1.22
AliasAnalysisEvaluator.cpp updated: 1.34 -> 1.35
AliasDebugger.cpp updated: 1.4 -> 1.5
AliasSetTracker.cpp updated: 1.47 -> 1.48
BasicAliasAnalysis.cpp updated: 1.109 -> 1.110
CFGPrinter.cpp updated: 1.23 -> 1.24
InstCount.cpp updated: 1.21 -> 1.22
IntervalPartition.cpp updated: 1.33 -> 1.34
LoadValueNumbering.cpp updated: 1.40 -> 1.41
LoopInfo.cpp updated: 1.84 -> 1.85
LoopPass.cpp updated: 1.19 -> 1.20
PostDominators.cpp updated: 1.68 -> 1.69
ProfileInfo.cpp updated: 1.13 -> 1.14
ProfileInfoLoaderPass.cpp updated: 1.19 -> 1.20
ScalarEvolution.cpp updated: 1.114 -> 1.115
ValueNumbering.cpp updated: 1.26 -> 1.27
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AliasAnalysis.cpp  |2 +-
 AliasAnalysisCounter.cpp   |4 ++--
 AliasAnalysisEvaluator.cpp |4 ++--
 AliasDebugger.cpp  |4 ++--
 AliasSetTracker.cpp|4 ++--
 BasicAliasAnalysis.cpp |8 
 CFGPrinter.cpp |8 
 InstCount.cpp  |4 ++--
 IntervalPartition.cpp  |2 +-
 LoadValueNumbering.cpp |4 ++--
 LoopInfo.cpp   |2 +-
 LoopPass.cpp   |2 +-
 PostDominators.cpp |6 +++---
 ProfileInfo.cpp|6 +++---
 ProfileInfoLoaderPass.cpp  |4 ++--
 ScalarEvolution.cpp|2 +-
 ValueNumbering.cpp |6 +++---
 17 files changed, 36 insertions(+), 36 deletions(-)


Index: llvm/lib/Analysis/AliasAnalysis.cpp
diff -u llvm/lib/Analysis/AliasAnalysis.cpp:1.32 
llvm/lib/Analysis/AliasAnalysis.cpp:1.33
--- llvm/lib/Analysis/AliasAnalysis.cpp:1.32Wed May  2 15:37:47 2007
+++ llvm/lib/Analysis/AliasAnalysis.cpp Wed May  2 16:39:18 2007
@@ -36,7 +36,7 @@
 namespace {
   RegisterAnalysisGroup Z("Alias Analysis");
 }
-const int AliasAnalysis::ID = 0;
+const char AliasAnalysis::ID = 0;
 
 
//===--===//
 // Default chaining methods


Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.21 
llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.22
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.21 Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp  Wed May  2 16:39:18 2007
@@ -34,7 +34,7 @@
 const char *Name;
 Module *M;
   public:
-static const int ID; // Class identification, replacement for typeinfo
+static const char ID; // Class identification, replacement for typeinfo
 AliasAnalysisCounter() : ModulePass((intptr_t) &ID) {
   No = May = Must = 0;
   NoMR = JustRef = JustMod = MR = 0;
@@ -108,7 +108,7 @@
 }
   };
 
-  const int AliasAnalysisCounter::ID = 0;
+  const char AliasAnalysisCounter::ID = 0;
   RegisterPass
   X("count-aa", "Count Alias Analysis Query Responses");
   RegisterAnalysisGroup Y(X);


Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.34 
llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.35
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.34   Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cppWed May  2 16:39:18 2007
@@ -50,7 +50,7 @@
 unsigned NoModRef, Mod, Ref, ModRef;
 
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 AAEval() : FunctionPass((intptr_t)&ID) {}
 
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -73,7 +73,7 @@
 bool doFinalization(Module &M);
   };
 
-  const int AAEval::ID = 0;
+  const char AAEval::ID = 0;
   RegisterPass
   X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator");
 }


Index: llvm/lib/Analysis/AliasDebugger.cpp
diff -u llvm/lib/Analysis/AliasDebugger.cpp:1.4 
llvm/lib/Analysis/AliasDebugger.cpp:1.5
--- llvm/lib/Analysis/AliasDebugger.cpp:1.4 Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/AliasDebugger.cpp Wed May  2 16:39:18 2007
@@ -40,7 +40,7 @@
 std::set Vals;
 
   public:
-static const int ID; // Class identification, replacement for typeinfo
+static const char ID; // Class identification, replacement for typeinfo
 AliasDebugger() : ModulePass((intptr_t)&ID) {}
 
 bool runOnModule(Module &M) {
@@ -122,7 +122,7 @@
 
   };
 
-  const int AliasDebugger::ID = 0;
+  const char AliasDebugger::ID = 0;
   RegisterPass X("debug-aa", "AA use debugger");
   RegisterAnalysisGroup Y(X);
 }


Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.47 
llvm/lib/Analysis/AliasSetTracker.cpp:1.48
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.47  Tue May  1 16:15:46 2007
+++ llvm/lib/

[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp BranchFolding.cpp ELFWriter.cpp ELFWriter.h LiveIntervalAnalysis.cpp LiveVariables.cpp MachOWriter.cpp MachOWriter.h MachineFunction.cpp MachineModu

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.161 -> 1.162
BranchFolding.cpp updated: 1.47 -> 1.48
ELFWriter.cpp updated: 1.39 -> 1.40
ELFWriter.h updated: 1.2 -> 1.3
LiveIntervalAnalysis.cpp updated: 1.241 -> 1.242
LiveVariables.cpp updated: 1.80 -> 1.81
MachOWriter.cpp updated: 1.33 -> 1.34
MachOWriter.h updated: 1.4 -> 1.5
MachineFunction.cpp updated: 1.112 -> 1.113
MachineModuleInfo.cpp updated: 1.7 -> 1.8
PHIElimination.cpp updated: 1.58 -> 1.59
PrologEpilogInserter.cpp updated: 1.85 -> 1.86
RegAllocLinearScan.cpp updated: 1.146 -> 1.147
RegAllocLocal.cpp updated: 1.103 -> 1.104
RegAllocSimple.cpp updated: 1.84 -> 1.85
TwoAddressInstructionPass.cpp updated: 1.48 -> 1.49
UnreachableBlockElim.cpp updated: 1.10 -> 1.11
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 AsmPrinter.cpp|2 +-
 BranchFolding.cpp |4 ++--
 ELFWriter.cpp |2 +-
 ELFWriter.h   |2 +-
 LiveIntervalAnalysis.cpp  |2 +-
 LiveVariables.cpp |2 +-
 MachOWriter.cpp   |2 +-
 MachOWriter.h |2 +-
 MachineFunction.cpp   |8 
 MachineModuleInfo.cpp |6 +++---
 PHIElimination.cpp|4 ++--
 PrologEpilogInserter.cpp  |4 ++--
 RegAllocLinearScan.cpp|4 ++--
 RegAllocLocal.cpp |4 ++--
 RegAllocSimple.cpp|4 ++--
 TwoAddressInstructionPass.cpp |4 ++--
 UnreachableBlockElim.cpp  |4 ++--
 17 files changed, 30 insertions(+), 30 deletions(-)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.161 
llvm/lib/CodeGen/AsmPrinter.cpp:1.162
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.161   Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp Wed May  2 16:39:18 2007
@@ -32,7 +32,7 @@
 static cl::opt
 AsmVerbose("asm-verbose", cl::Hidden, cl::desc("Add comments to directives."));
 
-const int AsmPrinter::ID = 0;
+const char AsmPrinter::ID = 0;
 AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm,
const TargetAsmInfo *T)
   : MachineFunctionPass((intptr_t)&ID), FunctionNumber(0), O(o), TM(tm), TAI(T)


Index: llvm/lib/CodeGen/BranchFolding.cpp
diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.47 
llvm/lib/CodeGen/BranchFolding.cpp:1.48
--- llvm/lib/CodeGen/BranchFolding.cpp:1.47 Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/BranchFolding.cpp  Wed May  2 16:39:18 2007
@@ -39,7 +39,7 @@
 
 namespace {
   struct BranchFolder : public MachineFunctionPass {
-static const int ID;
+static const char ID;
 BranchFolder() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &MF);
@@ -67,7 +67,7 @@
 MachineBasicBlock *TBB, MachineBasicBlock *FBB,
 const std::vector &Cond);
   };
-  const int BranchFolder::ID = 0;
+  const char BranchFolder::ID = 0;
 }
 
 FunctionPass *llvm::createBranchFoldingPass() { return new BranchFolder(); }


Index: llvm/lib/CodeGen/ELFWriter.cpp
diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.39 llvm/lib/CodeGen/ELFWriter.cpp:1.40
--- llvm/lib/CodeGen/ELFWriter.cpp:1.39 Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/ELFWriter.cpp  Wed May  2 16:39:18 2007
@@ -47,7 +47,7 @@
 #include 
 using namespace llvm;
 
-const int ELFWriter::ID = 0;
+const char ELFWriter::ID = 0;
 /// AddELFWriter - Concrete function to add the ELF writer to the function pass
 /// manager.
 MachineCodeEmitter *llvm::AddELFWriter(FunctionPassManager &FPM,


Index: llvm/lib/CodeGen/ELFWriter.h
diff -u llvm/lib/CodeGen/ELFWriter.h:1.2 llvm/lib/CodeGen/ELFWriter.h:1.3
--- llvm/lib/CodeGen/ELFWriter.h:1.2Tue May  1 16:15:46 2007
+++ llvm/lib/CodeGen/ELFWriter.hWed May  2 16:39:18 2007
@@ -30,7 +30,7 @@
   class ELFWriter : public MachineFunctionPass {
 friend class ELFCodeEmitter;
   public:
-static const int ID;
+static const char ID;
 
 MachineCodeEmitter &getMachineCodeEmitter() const {
   return *(MachineCodeEmitter*)MCE;


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.241 
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.242
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.241 Wed May  2 15:37:47 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp   Wed May  2 16:39:18 2007
@@ -44,7 +44,7 @@
 STATISTIC(numFolded   , "Number of loads/stores folded into instructions");
 STATISTIC(numAborts   , "Number of times interval joining aborted");
 
-const int LiveIntervals::ID = 0;
+const char LiveIntervals::ID = 0;
 namespace {
   RegisterPass X("liveintervals", "Live Interval Analysis");
 


Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.80 
llvm/lib/

[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp CallGraph.cpp CallGraphSCCPass.cpp FindUsedTypes.cpp GlobalsModRef.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Analysis/IPA:

Andersens.cpp updated: 1.47 -> 1.48
CallGraph.cpp updated: 1.67 -> 1.68
CallGraphSCCPass.cpp updated: 1.22 -> 1.23
FindUsedTypes.cpp updated: 1.39 -> 1.40
GlobalsModRef.cpp updated: 1.30 -> 1.31
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 Andersens.cpp|4 ++--
 CallGraph.cpp|7 +++
 CallGraphSCCPass.cpp |4 ++--
 FindUsedTypes.cpp|2 +-
 GlobalsModRef.cpp|4 ++--
 5 files changed, 10 insertions(+), 11 deletions(-)


Index: llvm/lib/Analysis/IPA/Andersens.cpp
diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.47 
llvm/lib/Analysis/IPA/Andersens.cpp:1.48
--- llvm/lib/Analysis/IPA/Andersens.cpp:1.47Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/IPA/Andersens.cpp Wed May  2 16:39:18 2007
@@ -76,7 +76,7 @@
   class VISIBILITY_HIDDEN Andersens : public ModulePass, public AliasAnalysis,
   private InstVisitor {
   public:
-static const int ID; // Class identification, replacement for typeinfo
+static const char ID; // Class identification, replacement for typeinfo
 Andersens() : ModulePass((intptr_t)&ID) {}
   private:
 /// Node class - This class is used to represent a memory object in the
@@ -339,7 +339,7 @@
 void visitInstruction(Instruction &I);
   };
 
-  const int Andersens::ID = 0;
+  const char Andersens::ID = 0;
   RegisterPass X("anders-aa",
 "Andersen's Interprocedural Alias Analysis");
   RegisterAnalysisGroup Y(X);


Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.67 
llvm/lib/Analysis/IPA/CallGraph.cpp:1.68
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.67Wed May  2 15:37:47 2007
+++ llvm/lib/Analysis/IPA/CallGraph.cpp Wed May  2 16:39:18 2007
@@ -51,7 +51,7 @@
   CallGraphNode *CallsExternalNode;
 
 public:
-  static const int ID; // Class identification, replacement for typeinfo
+  static const char ID; // Class identification, replacement for typeinfo
   BasicCallGraph() : ModulePass((intptr_t)&ID), Root(0), 
 ExternalCallingNode(0), CallsExternalNode(0) {}
 
@@ -190,15 +190,14 @@
   }
 };
 
-
 RegisterAnalysisGroup X("Call Graph");
 RegisterPass Y("basiccg", "Basic CallGraph Construction");
 RegisterAnalysisGroup Z(Y);
 
 } //End anonymous namespace
 
-const int CallGraph::ID = 0;
-const int BasicCallGraph::ID = 0;
+const char CallGraph::ID = 0;
+const char BasicCallGraph::ID = 0;
 
 void CallGraph::initialize(Module &M) {
   Mod = &M;


Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.22 
llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.23
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.22 Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp  Wed May  2 16:39:18 2007
@@ -30,7 +30,7 @@
 class CGPassManager : public ModulePass, public PMDataManager {
 
 public:
-  static const int ID;
+  static const char ID;
   CGPassManager(int Depth) 
 : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
 
@@ -73,7 +73,7 @@
   }
 };
 
-const int CGPassManager::ID = 0;
+const char CGPassManager::ID = 0;
 /// run - Execute all of the passes scheduled for execution.  Keep track of
 /// whether any of the passes modifies the module, and if so, return true.
 bool CGPassManager::runOnModule(Module &M) {


Index: llvm/lib/Analysis/IPA/FindUsedTypes.cpp
diff -u llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.39 
llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.40
--- llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.39Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/IPA/FindUsedTypes.cpp Wed May  2 16:39:18 2007
@@ -21,7 +21,7 @@
 #include "llvm/Support/InstIterator.h"
 using namespace llvm;
 
-const int FindUsedTypes::ID = 0;
+const char FindUsedTypes::ID = 0;
 static RegisterPass
 X("printusedtypes", "Find Used Types");
 


Index: llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff -u llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.30 
llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.31
--- llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.30Tue May  1 16:15:46 2007
+++ llvm/lib/Analysis/IPA/GlobalsModRef.cpp Wed May  2 16:39:18 2007
@@ -83,7 +83,7 @@
 std::map FunctionInfo;
 
   public:
-static const int ID;
+static const char ID;
 GlobalsModRef() : ModulePass((intptr_t)&ID) {}
 
 bool runOnModule(Module &M) {
@@ -146,7 +146,7 @@
 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
   };
 
-  const int GlobalsModRef::ID = 0;
+  const char GlobalsModRef::ID = 0;
   RegisterPass X("globalsmodref-aa",
 "Simple mod/ref analysis for globals");
   RegisterAnalysisGroup Y(X);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/

[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp BasicBlockPlacement.cpp CodeGenPrepare.cpp CondPropagate.cpp ConstantProp.cpp CorrelatedExprs.cpp DCE.cpp DeadStoreElimination.cpp GCSE.cpp IndV

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.107 -> 1.108
BasicBlockPlacement.cpp updated: 1.10 -> 1.11
CodeGenPrepare.cpp updated: 1.7 -> 1.8
CondPropagate.cpp updated: 1.19 -> 1.20
ConstantProp.cpp updated: 1.57 -> 1.58
CorrelatedExprs.cpp updated: 1.58 -> 1.59
DCE.cpp updated: 1.64 -> 1.65
DeadStoreElimination.cpp updated: 1.18 -> 1.19
GCSE.cpp updated: 1.54 -> 1.55
IndVarSimplify.cpp updated: 1.116 -> 1.117
InstructionCombining.cpp updated: 1.755 -> 1.756
LICM.cpp updated: 1.97 -> 1.98
LoopRotation.cpp updated: 1.11 -> 1.12
LoopStrengthReduce.cpp updated: 1.132 -> 1.133
LoopUnroll.cpp updated: 1.40 -> 1.41
LoopUnswitch.cpp updated: 1.66 -> 1.67
LowerGC.cpp updated: 1.23 -> 1.24
LowerPacked.cpp updated: 1.22 -> 1.23
PredicateSimplifier.cpp updated: 1.72 -> 1.73
Reassociate.cpp updated: 1.79 -> 1.80
Reg2Mem.cpp updated: 1.13 -> 1.14
SCCP.cpp updated: 1.166 -> 1.167
ScalarReplAggregates.cpp updated: 1.91 -> 1.92
SimplifyCFG.cpp updated: 1.22 -> 1.23
TailDuplication.cpp updated: 1.38 -> 1.39
TailRecursionElimination.cpp updated: 1.31 -> 1.32
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 ADCE.cpp |4 ++--
 BasicBlockPlacement.cpp  |4 ++--
 CodeGenPrepare.cpp   |4 ++--
 CondPropagate.cpp|4 ++--
 ConstantProp.cpp |4 ++--
 CorrelatedExprs.cpp  |4 ++--
 DCE.cpp  |8 
 DeadStoreElimination.cpp |4 ++--
 GCSE.cpp |4 ++--
 IndVarSimplify.cpp   |4 ++--
 InstructionCombining.cpp |4 ++--
 LICM.cpp |4 ++--
 LoopRotation.cpp |4 ++--
 LoopStrengthReduce.cpp   |4 ++--
 LoopUnroll.cpp   |4 ++--
 LoopUnswitch.cpp |4 ++--
 LowerGC.cpp  |4 ++--
 LowerPacked.cpp  |4 ++--
 PredicateSimplifier.cpp  |4 ++--
 Reassociate.cpp  |4 ++--
 Reg2Mem.cpp  |4 ++--
 SCCP.cpp |8 
 ScalarReplAggregates.cpp |4 ++--
 SimplifyCFG.cpp  |4 ++--
 TailDuplication.cpp  |4 ++--
 TailRecursionElimination.cpp |4 ++--
 26 files changed, 56 insertions(+), 56 deletions(-)


Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.107 
llvm/lib/Transforms/Scalar/ADCE.cpp:1.108
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.107   Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/ADCE.cpp Wed May  2 16:39:19 2007
@@ -52,7 +52,7 @@
   // The public interface for this class
   //
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   ADCE() : FunctionPass((intptr_t)&ID) {}
 
   // Execute the Aggressive Dead Code Elimination Algorithm
@@ -107,7 +107,7 @@
   }
 };
 
-  const int ADCE::ID = 0;
+  const char ADCE::ID = 0;
   RegisterPass X("adce", "Aggressive Dead Code Elimination");
 } // End of anonymous namespace
 


Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.10 
llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.10 Tue May  1 
16:15:47 2007
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp  Wed May  2 16:39:19 2007
@@ -41,7 +41,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN BlockPlacement : public FunctionPass {
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 BlockPlacement() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F);
@@ -73,7 +73,7 @@
 void PlaceBlocks(BasicBlock *BB);
   };
 
-  const int BlockPlacement::ID = 0;
+  const char BlockPlacement::ID = 0;
   RegisterPass X("block-placement",
  "Profile Guided Basic Block Placement");
 }


Index: llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff -u llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.7 
llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8
--- llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.7   Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp   Wed May  2 16:39:19 2007
@@ -39,7 +39,7 @@
 /// transformation profitability.
 const TargetLowering *TLI;
   public:
-static const int ID; // Pass identifcation, replacement for typeid
+static const char ID; // Pass identifcation, replacement for typeid
 CodeGenPrepare(const TargetLowering *tli = 0) : 
FunctionPass((intptr_t)&ID),
   TLI(tli) {}
 bool runOnFunction(Function &F);
@@ -55,7 +55,7 @@
   };
 }
 
-const int CodeGenPrepare::ID = 0;
+const 

[llvm-commits] CVS: llvm/lib/Target/X86/README-MMX.txt

2007-05-02 Thread Bill Wendling


Changes in directory llvm/lib/Target/X86:

README-MMX.txt updated: 1.3 -> 1.4
---
Log message:

Update.


---
Diffs of the changes:  (+27 -0)

 README-MMX.txt |   27 +++
 1 files changed, 27 insertions(+)


Index: llvm/lib/Target/X86/README-MMX.txt
diff -u llvm/lib/Target/X86/README-MMX.txt:1.3 
llvm/lib/Target/X86/README-MMX.txt:1.4
--- llvm/lib/Target/X86/README-MMX.txt:1.3  Tue Apr 24 16:20:03 2007
+++ llvm/lib/Target/X86/README-MMX.txt  Wed May  2 16:42:20 2007
@@ -40,3 +40,30 @@
 movl%edx, 4(%eax)
 addl$12, %esp
 ret $4
+
+//===-===//
+
+int main() {
+  __m64 A[1] = { _mm_cvtsi32_si64(1)  };
+  __m64 B[1] = { _mm_cvtsi32_si64(10) };
+  __m64 sum = _mm_cvtsi32_si64(0);
+
+  sum = __builtin_ia32_paddq(__builtin_ia32_paddq(A[0], B[0]), sum);
+
+  printf("Sum = %d\n", _mm_cvtsi64_si32(sum));
+  return 0;
+}
+
+Generates:
+
+movl $11, %eax
+### movd %eax, %mm0
+### movq %mm0, 8(%esp)
+### movl 8(%esp), %eax
+movl %eax, 4(%esp)
+movl $_str, (%esp)
+call L_printf$stub
+xorl %eax, %eax
+addl $28, %esp
+
+These instructions are unnecessary.



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h

2007-05-02 Thread Lauro Ramos Venancio




Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.





I think you should use 'static const signed char' because 'char' is signed
on X86 and unsigned on ARM.

Lauro
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h

2007-05-02 Thread Devang Patel


On May 2, 2007, at 2:58 PM, Lauro Ramos Venancio wrote:

 I think you should use 'static const signed char' because 'char' is  
signed on X86 and unsigned on ARM.


It does not matter. All I want is unique address of the static member  
to identify Pass.


-
Devang___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


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

2007-05-02 Thread Anton Korobeynikov


Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.444 -> 1.445
---
Log message:

Properly set arguments bitwidth of EHSELECT node


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

 SelectionDAGISel.cpp |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.444 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.445
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.444Wed May  2 
16:39:19 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Wed May  2 17:15:48 2007
@@ -2632,7 +2632,7 @@
   if (Reg) CurMBB->addLiveIn(Reg);
 
   // Insert the EHSELECTION instruction.
-  SDVTList VTs = DAG.getVTList(MVT::i32, MVT::Other);
+  SDVTList VTs = DAG.getVTList(TLI.getPointerTy(), MVT::Other);
   SDOperand Ops[2];
   Ops[0] = getValue(I.getOperand(1));
   Ops[1] = getRoot();
@@ -2640,7 +2640,7 @@
   setValue(&I, Op);
   DAG.setRoot(Op.getValue(1));
 } else {
-  setValue(&I, DAG.getConstant(0, MVT::i32));
+  setValue(&I, DAG.getConstant(0, TLI.getPointerTy()));
 }
 
 return 0;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.php

2007-05-02 Thread Tanya Lattner


Changes in directory nightlytest-serverside:

NightlyTestAccept.php updated: 1.65 -> 1.66
---
Log message:

Die if no nickname is set!


---
Diffs of the changes:  (+6 -1)

 NightlyTestAccept.php |7 ++-
 1 files changed, 6 insertions(+), 1 deletion(-)


Index: nightlytest-serverside/NightlyTestAccept.php
diff -u nightlytest-serverside/NightlyTestAccept.php:1.65 
nightlytest-serverside/NightlyTestAccept.php:1.66
--- nightlytest-serverside/NightlyTestAccept.php:1.65   Sun Apr 29 16:10:32 2007
+++ nightlytest-serverside/NightlyTestAccept.phpWed May  2 17:16:17 2007
@@ -466,7 +466,12 @@
  *
  
***/
 function acceptTest() {
-  
+ 
+  // If no nickname is set, die here
+  if (!isset($_POST['nickname'])) {
+return;
+  }
+ 
   $database = "nightlytestresults";
   $loginname = "llvm";
   $password = "ll2002vm";



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Target/TargetOptions.h

2007-05-02 Thread Chris Lattner


Changes in directory llvm/include/llvm/Target:

TargetOptions.h updated: 1.14 -> 1.15
---
Log message:

Add a new option.


---
Diffs of the changes:  (+16 -0)

 TargetOptions.h |   16 
 1 files changed, 16 insertions(+)


Index: llvm/include/llvm/Target/TargetOptions.h
diff -u llvm/include/llvm/Target/TargetOptions.h:1.14 
llvm/include/llvm/Target/TargetOptions.h:1.15
--- llvm/include/llvm/Target/TargetOptions.h:1.14   Mon Jan 29 14:48:32 2007
+++ llvm/include/llvm/Target/TargetOptions.hWed May  2 19:16:07 2007
@@ -49,6 +49,22 @@
   extern bool FiniteOnlyFPMathOption;
   extern bool FiniteOnlyFPMath();
   
+  /// HonorSignDependentRoundingFPMath - This returns true when the
+  /// -enable-sign-dependent-rounding-fp-math is specified.  If this returns
+  /// false (the default), the code generator is allowed to assume that the
+  /// rounding behavior is the default (round-to-zero for all floating point to
+  /// integer conversions, and round-to-nearest for all other arithmetic
+  /// truncations).  If this is enabled (set to true), the code generator must
+  /// assume that the rounding mode may dynamically change.
+  extern bool HonorSignDependentRoundingFPMathOption;
+  extern bool HonorSignDependentRoundingFPMath();
+  
+  /// option is specified on the command line. If this returns false (default),
+  /// the code generator is not allowed to assume that FP arithmetic arguments
+  /// and results are never NaNs or +-Infs.
+  extern bool FiniteOnlyFPMathOption;
+  extern bool FiniteOnlyFPMath();
+  
   /// UseSoftFloat - This flag is enabled when the -soft-float flag is 
specified
   /// on the command line.  When this flag is on, the code generator will
   /// generate libcalls to the software floating point library instead of



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

2007-05-02 Thread Chris Lattner


Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.62 -> 1.63
---
Log message:

Add a new option.


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

 TargetMachine.cpp |   21 +
 1 files changed, 17 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.62 
llvm/lib/Target/TargetMachine.cpp:1.63
--- llvm/lib/Target/TargetMachine.cpp:1.62  Thu Apr 19 13:42:38 2007
+++ llvm/lib/Target/TargetMachine.cpp   Wed May  2 19:16:07 2007
@@ -54,20 +54,27 @@
cl::location(UnsafeFPMath),
cl::init(false));
   cl::opt
-  EnableFiniteOnltFPMath("enable-finite-only-fp-math",
+  EnableFiniteOnlyFPMath("enable-finite-only-fp-math",
cl::desc("Enable optimizations that assumes non- NaNs / 
+-Infs"),
cl::location(FiniteOnlyFPMathOption),
cl::init(false));
   cl::opt
+  EnableHonorSignDependentRoundingFPMath(cl::Hidden,
+   "enable-sign-dependent-rounding-fp-math",
+   cl::desc("Force codegen to assume rounding mode can change 
dynamically"),
+   cl::location(HonorSignDependentRoundingFPMathOption),
+   cl::init(false));
+
+  cl::opt
   GenerateSoftFloatCalls("soft-float",
cl::desc("Generate software floating point library calls"),
cl::location(UseSoftFloat),
cl::init(false));
   cl::opt
   DontPlaceZerosInBSS("nozero-initialized-in-bss",
-   cl::desc("Don't place zero-initialized symbols into bss 
section"),
-   cl::location(NoZerosInBSS),
-   cl::init(false));
+  cl::desc("Don't place zero-initialized symbols into bss 
section"),
+  cl::location(NoZerosInBSS),
+  cl::init(false));
   cl::opt
   EnableExceptionHandling("enable-eh",
cl::desc("Exception handling should be emitted."),
@@ -146,5 +153,11 @@
   /// the code generator is not allowed to assume that FP arithmetic arguments
   /// and results are never NaNs or +-Infs.
   bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; }
+  
+  /// HonorSignDependentRoundingFPMath - Return true if the codegen must assume
+  /// that the rounding mode of the FPU can change from its default.
+  bool HonorSignDependentRoundingFPMath() {
+return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption;
+  }
 }
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp Target.td

2007-05-02 Thread Chris Lattner


Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.63 -> 1.64
Target.td updated: 1.97 -> 1.98
---
Log message:

expose HonorSignDependentRoundingFPMathOption to .td files


---
Diffs of the changes:  (+6 -0)

 Target.td |5 +
 TargetMachine.cpp |1 +
 2 files changed, 6 insertions(+)


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.63 
llvm/lib/Target/TargetMachine.cpp:1.64
--- llvm/lib/Target/TargetMachine.cpp:1.63  Wed May  2 19:16:07 2007
+++ llvm/lib/Target/TargetMachine.cpp   Wed May  2 19:27:11 2007
@@ -27,6 +27,7 @@
   bool NoExcessFPPrecision;
   bool UnsafeFPMath;
   bool FiniteOnlyFPMathOption;
+  bool HonorSignDependentRoundingFPMathOption;
   bool UseSoftFloat;
   bool NoZerosInBSS;
   bool ExceptionHandling;


Index: llvm/lib/Target/Target.td
diff -u llvm/lib/Target/Target.td:1.97 llvm/lib/Target/Target.td:1.98
--- llvm/lib/Target/Target.td:1.97  Tue May  1 00:57:02 2007
+++ llvm/lib/Target/Target.td   Wed May  2 19:27:11 2007
@@ -210,6 +210,11 @@
   string CondString = cond;
 }
 
+/// NoHonorSignDependentRounding - This predicate is true if support for
+/// sign-dependent-rounding is not enabled.
+def NoHonorSignDependentRounding
+ : Predicate<"!HonorSignDependentRoundingFPMath()">;
+
 class Requires preds> {
   list Predicates = preds;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/test/CodeGen/ARM/fnmul.ll

2007-05-02 Thread Chris Lattner


Changes in directory llvm/test/CodeGen/ARM:

fnmul.ll added (r1.1)
---
Log message:

match a reassociated form of fnmul


---
Diffs of the changes:  (+11 -0)

 fnmul.ll |   11 +++
 1 files changed, 11 insertions(+)


Index: llvm/test/CodeGen/ARM/fnmul.ll
diff -c /dev/null llvm/test/CodeGen/ARM/fnmul.ll:1.1
*** /dev/null   Wed May  2 19:31:50 2007
--- llvm/test/CodeGen/ARM/fnmul.ll  Wed May  2 19:31:40 2007
***
*** 0 
--- 1,11 
+ ; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fnmuld
+ ; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 
-enable-sign-dependent-rounding-fp-math | grep fmul
+ 
+ 
+ define double @t1(double %a, double %b) {
+ entry:
+ %tmp2 = sub double -0.00e+00, %a;  [#uses=1]
+ %tmp4 = mul double %tmp2, %b;  [#uses=1]
+ ret double %tmp4
+ }
+ 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp ARMInstrVFP.td

2007-05-02 Thread Chris Lattner


Changes in directory llvm/lib/Target/ARM:

ARMISelDAGToDAG.cpp updated: 1.110 -> 1.111
ARMInstrVFP.td updated: 1.1 -> 1.2
---
Log message:

match a reassociated form of fnmul.  This implements CodeGen/ARM/fnmul.ll


---
Diffs of the changes:  (+9 -2)

 ARMISelDAGToDAG.cpp |1 +
 ARMInstrVFP.td  |   10 --
 2 files changed, 9 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.110 
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.111
--- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.110   Mon Mar 19 02:48:02 2007
+++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Wed May  2 19:32:00 2007
@@ -27,6 +27,7 @@
 #include "llvm/CodeGen/SelectionDAGISel.h"
 #include "llvm/CodeGen/SSARegMap.h"
 #include "llvm/Target/TargetLowering.h"
+#include "llvm/Target/TargetOptions.h"
 #include "llvm/Support/Debug.h"
 using namespace llvm;
 


Index: llvm/lib/Target/ARM/ARMInstrVFP.td
diff -u llvm/lib/Target/ARM/ARMInstrVFP.td:1.1 
llvm/lib/Target/ARM/ARMInstrVFP.td:1.2
--- llvm/lib/Target/ARM/ARMInstrVFP.td:1.1  Fri Jan 19 01:51:42 2007
+++ llvm/lib/Target/ARM/ARMInstrVFP.td  Wed May  2 19:32:00 2007
@@ -139,8 +139,7 @@
 def FMULS  : ASI<(ops SPR:$dst, SPR:$a, SPR:$b),
  "fmuls $dst, $a, $b",
  [(set SPR:$dst, (fmul SPR:$a, SPR:$b))]>;
-
-
+ 
 def FNMULD  : ADI<(ops DPR:$dst, DPR:$a, DPR:$b),
   "fnmuld $dst, $a, $b",
   [(set DPR:$dst, (fneg (fmul DPR:$a, DPR:$b)))]>;
@@ -149,6 +148,13 @@
   "fnmuls $dst, $a, $b",
   [(set SPR:$dst, (fneg (fmul SPR:$a, SPR:$b)))]>;
 
+// Match reassociated forms only if not sign dependent rounding.
+def : Pat<(fmul (fneg DPR:$a), DPR:$b),
+  (FNMULD DPR:$a, DPR:$b)>, Requires<[NoHonorSignDependentRounding]>;
+def : Pat<(fmul (fneg SPR:$a), SPR:$b),
+  (FNMULS SPR:$a, SPR:$b)>, Requires<[NoHonorSignDependentRounding]>;
+
+
 def FSUBD  : ADI<(ops DPR:$dst, DPR:$a, DPR:$b),
  "fsubd $dst, $a, $b",
  [(set DPR:$dst, (fsub DPR:$a, DPR:$b))]>;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/test/FrontendObjC/2007-05-02-Strong.m

2007-05-02 Thread Devang Patel


Changes in directory llvm/test/FrontendObjC:

2007-05-02-Strong.m added (r1.1)
---
Log message:

New test.


---
Diffs of the changes:  (+23 -0)

 2007-05-02-Strong.m |   23 +++
 1 files changed, 23 insertions(+)


Index: llvm/test/FrontendObjC/2007-05-02-Strong.m
diff -c /dev/null llvm/test/FrontendObjC/2007-05-02-Strong.m:1.1
*** /dev/null   Wed May  2 19:42:32 2007
--- llvm/test/FrontendObjC/2007-05-02-Strong.m  Wed May  2 19:42:22 2007
***
*** 0 
--- 1,23 
+ // RUN: %llvmgcc -c %s -fobjc-gc -o /dev/null
+ typedef int NSInteger;
+ typedef struct _NSRect {
+   int origin;
+   int size;
+ } NSRect;
+ 
+ __attribute__((objc_gc(strong))) NSRect *_cachedRectArray;
+ extern const NSRect NSZeroRect;
+ @interface A{
+ }
+ -(void)bar:(NSInteger *)rectCount;
+ @end
+ 
+ @implementation A 
+ 
+ -(void)bar:(NSInteger *)rectCount {
+   NSRect appendRect = NSZeroRect; 
+ 
+   _cachedRectArray[*rectCount - 1] = NSZeroRect; 
+ }
+ 
+ @end



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] [126812] Fix http://lists.cs.uiuc.edu/pipermail/llvm-commits/ Week-of-Mon-20070430/048922.html

2007-05-02 Thread dpatel
Revision: 126812
Author:   dpatel
Date: 2007-05-02 18:11:09 -0700 (Wed, 02 May 2007)

Log Message:
---
Fix 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070430/048922.html

Modified Paths:
--
apple-local/branches/llvm/gcc/c-typeck.c

Modified: apple-local/branches/llvm/gcc/c-typeck.c
===
--- apple-local/branches/llvm/gcc/c-typeck.c2007-05-02 23:33:36 UTC (rev 
126811)
+++ apple-local/branches/llvm/gcc/c-typeck.c2007-05-03 01:11:09 UTC (rev 
126812)
@@ -1896,8 +1896,12 @@
* pointer, not an array.  The LLVM backend supports this use of 
ARRAY_REF
* and it provides it with more information for optimization.
*/
-  return build4 (ARRAY_REF, TREE_TYPE(TREE_TYPE(ar)), ar, index,
- NULL_TREE, NULL_TREE);
+  {
+tree ty = TREE_TYPE(TREE_TYPE(ar));
+if (TREE_CODE(ty) != ARRAY_TYPE)
+  ty = TYPE_MAIN_VARIANT (ty);
+return build4 (ARRAY_REF, ty, ar, index, NULL_TREE, NULL_TREE);
+  }
 #endif
   /* APPLE LOCAL end LLVM */
   


___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Transforms/RSProfiling.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Transforms:

RSProfiling.h updated: 1.4 -> 1.5
---
Log message:

Drop 'const'


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

 RSProfiling.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Transforms/RSProfiling.h
diff -u llvm/include/llvm/Transforms/RSProfiling.h:1.4 
llvm/include/llvm/Transforms/RSProfiling.h:1.5
--- llvm/include/llvm/Transforms/RSProfiling.h:1.4  Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Transforms/RSProfiling.h  Wed May  2 20:11:53 2007
@@ -23,7 +23,7 @@
   /// this interface are expected to chain to other implementations, such that
   /// multiple profilers can be support simultaniously.
   struct RSProfilers : public ModulePass {
-static const char ID; // Pass identification, replacement for typeinfo
+static char ID; // Pass identification, replacement for typeinfo
 RSProfilers() : ModulePass((intptr_t)&ID) {}
 
 /// isProfiling - This method returns true if the value passed it was 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp PPCCodeEmitter.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/PowerPC:

PPCBranchSelector.cpp updated: 1.44 -> 1.45
PPCCodeEmitter.cpp updated: 1.77 -> 1.78
---
Log message:

Drop 'const'


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

 PPCBranchSelector.cpp |4 ++--
 PPCCodeEmitter.cpp|4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44 
llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.45
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.44  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp   Wed May  2 20:11:54 2007
@@ -32,7 +32,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
-static const char ID;
+static char ID;
 PPCBSel() : MachineFunctionPass((intptr_t)&ID) {}
 
 /// BlockSizes - The sizes of the basic blocks in the function.
@@ -44,7 +44,7 @@
   return "PowerPC Branch Selector";
 }
   };
-  const char PPCBSel::ID = 0;
+  char PPCBSel::ID = 0;
 }
 
 /// createPPCBranchSelectionPass - returns an instance of the Branch Selection


Index: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77 
llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.78
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.77 Wed May  2 16:39:19 2007
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp  Wed May  2 20:11:54 2007
@@ -40,7 +40,7 @@
 int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
 
   public:
-static const char ID;
+static char ID;
 PPCCodeEmitter(TargetMachine &T, MachineCodeEmitter &M)
   : MachineFunctionPass((intptr_t)&ID), TM(T), MCE(M) {}
 
@@ -64,7 +64,7 @@
 ///
 unsigned getBinaryCodeForInstr(MachineInstr &MI);
   };
-  const char PPCCodeEmitter::ID = 0;
+  char PPCCodeEmitter::ID = 0;
 }
 
 /// createPPCCodeEmitterPass - Return a pass that emits the collected PPC code



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp TestPasses.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/tools/bugpoint:

ExtractFunction.cpp updated: 1.60 -> 1.61
TestPasses.cpp updated: 1.12 -> 1.13
---
Log message:

Drop 'const'


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

 ExtractFunction.cpp |4 ++--
 TestPasses.cpp  |8 
 2 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.60 
llvm/tools/bugpoint/ExtractFunction.cpp:1.61
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.60Wed May  2 16:39:20 2007
+++ llvm/tools/bugpoint/ExtractFunction.cpp Wed May  2 20:11:54 2007
@@ -306,10 +306,10 @@
   class BlockExtractorPass : public ModulePass {
 bool runOnModule(Module &M);
   public:
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
   };
-  const char BlockExtractorPass::ID = 0;
+  char BlockExtractorPass::ID = 0;
   RegisterPass
   XX("extract-bbs", "Extract Basic Blocks From Module (for bugpoint use)");
 }


Index: llvm/tools/bugpoint/TestPasses.cpp
diff -u llvm/tools/bugpoint/TestPasses.cpp:1.12 
llvm/tools/bugpoint/TestPasses.cpp:1.13
--- llvm/tools/bugpoint/TestPasses.cpp:1.12 Wed May  2 16:39:20 2007
+++ llvm/tools/bugpoint/TestPasses.cpp  Wed May  2 20:11:54 2007
@@ -26,7 +26,7 @@
   /// crashes on any call instructions.
   class CrashOnCalls : public BasicBlockPass {
   public:
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 CrashOnCalls() : BasicBlockPass((intptr_t)&ID) {}
   private:
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -42,7 +42,7 @@
 }
   };
 
-  const char CrashOnCalls::ID = 0;
+  char CrashOnCalls::ID = 0;
   RegisterPass
   X("bugpoint-crashcalls",
 "BugPoint Test Pass - Intentionally crash on CallInsts");
@@ -53,7 +53,7 @@
   /// deletes some call instructions, "misoptimizing" the program.
   class DeleteCalls : public BasicBlockPass {
   public:
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 DeleteCalls() : BasicBlockPass((intptr_t)&ID) {}
   private:
 bool runOnBasicBlock(BasicBlock &BB) {
@@ -68,7 +68,7 @@
 }
   };
  
-  const char DeleteCalls::ID = 0;
+  char DeleteCalls::ID = 0;
   RegisterPass
   Y("bugpoint-deletecalls",
 "BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Assembly:

PrintModulePass.h updated: 1.23 -> 1.24
---
Log message:

Drop 'const'


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

 PrintModulePass.h |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.23 
llvm/include/llvm/Assembly/PrintModulePass.h:1.24
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.23   Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Assembly/PrintModulePass.hWed May  2 20:11:53 2007
@@ -28,7 +28,7 @@
   OStream *Out;   // ostream to print on
   bool DeleteStream;  // Delete the ostream in our dtor?
 public:
-  static const char ID;
+  static char ID;
   PrintModulePass() : ModulePass((intptr_t)&ID), Out(&cerr), 
DeleteStream(false) {}
   PrintModulePass(OStream *o, bool DS = false)
 : ModulePass((intptr_t)&ID), Out(o), DeleteStream(DS) {}
@@ -52,7 +52,7 @@
   OStream *Out;   // ostream to print on
   bool DeleteStream;  // Delete the ostream in our dtor?
 public:
-  static const char ID;
+  static char ID;
   PrintFunctionPass() : FunctionPass((intptr_t)&ID), Banner(""), Out(&cerr), 
 DeleteStream(false) {}
   PrintFunctionPass(const std::string &B, OStream *o = &cout,



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp EdgeProfiling.cpp RSProfiling.cpp RSProfiling.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Instrumentation:

BlockProfiling.cpp updated: 1.24 -> 1.25
EdgeProfiling.cpp updated: 1.14 -> 1.15
RSProfiling.cpp updated: 1.26 -> 1.27
RSProfiling.h updated: 1.6 -> 1.7
---
Log message:

Drop 'const'


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

 BlockProfiling.cpp |8 
 EdgeProfiling.cpp  |4 ++--
 RSProfiling.cpp|   10 +-
 RSProfiling.h  |2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)


Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.24 
llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.25
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.24 Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp  Wed May  2 
20:11:54 2007
@@ -33,11 +33,11 @@
 namespace {
   class VISIBILITY_HIDDEN FunctionProfiler : public RSProfilers_std {
   public:
-static const char ID;
+static char ID;
 bool runOnModule(Module &M);
   };
 
-  const char FunctionProfiler::ID = 0;
+  char FunctionProfiler::ID = 0;
 
   RegisterPass X("insert-function-profiling",
"Insert instrumentation for function 
profiling");
@@ -84,10 +84,10 @@
   class BlockProfiler : public RSProfilers_std {
 bool runOnModule(Module &M);
   public:
-static const char ID;
+static char ID;
   };
 
-  const char BlockProfiler::ID = 0;
+  char BlockProfiler::ID = 0;
   RegisterPass Y("insert-block-profiling",
 "Insert instrumentation for block profiling");
   RegisterAnalysisGroup YG(Y);


Index: llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.14 
llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.15
--- llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.14  Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp   Wed May  2 
20:11:54 2007
@@ -33,11 +33,11 @@
   class VISIBILITY_HIDDEN EdgeProfiler : public ModulePass {
 bool runOnModule(Module &M);
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 EdgeProfiler() : ModulePass((intptr_t)&ID) {}
   };
 
-  const char EdgeProfiler::ID = 0;
+  char EdgeProfiler::ID = 0;
   RegisterPass X("insert-edge-profiling",
"Insert instrumentation for edge profiling");
 }


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.26 
llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.27
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.26Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp Wed May  2 20:11:54 2007
@@ -69,7 +69,7 @@
   /// measuring framework overhead
   class VISIBILITY_HIDDEN NullProfilerRS : public RSProfilers {
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 bool isProfiling(Value* v) {
   return false;
 }
@@ -139,7 +139,7 @@
 
   /// ProfilerRS - Insert the random sampling framework
   struct VISIBILITY_HIDDEN ProfilerRS : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 ProfilerRS() : FunctionPass((intptr_t)&ID) {}
 
 std::map TransCache;
@@ -162,9 +162,9 @@
  "Insert random sampling instrumentation 
framework");
 }
 
-const char RSProfilers::ID = 0;
-const char NullProfilerRS::ID = 0;
-const char ProfilerRS::ID = 0;
+char RSProfilers::ID = 0;
+char NullProfilerRS::ID = 0;
+char ProfilerRS::ID = 0;
 
 //Local utilities
 static void ReplacePhiPred(BasicBlock* btarget, 


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.h
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.6 
llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.7
--- llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.6   Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.h   Wed May  2 20:11:54 2007
@@ -17,7 +17,7 @@
   /// RSProfilers_std - a simple support class for profilers that handles most
   /// of the work of chaining and tracking inserted code.
   struct RSProfilers_std : public RSProfilers {
-static const char ID;
+static char ID;
 std::set profcode;
 // Lookup up values in profcode
 virtual bool isProfiling(Value* v);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/CBackend:

CBackend.cpp updated: 1.341 -> 1.342
---
Log message:

Drop 'const'


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

 CBackend.cpp |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.341 
llvm/lib/Target/CBackend/CBackend.cpp:1.342
--- llvm/lib/Target/CBackend/CBackend.cpp:1.341 Wed May  2 16:39:19 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp   Wed May  2 20:11:53 2007
@@ -57,7 +57,7 @@
   ///
   class CBackendNameAllUsedStructsAndMergeFunctions : public ModulePass {
   public:
-static const char ID;
+static char ID;
 CBackendNameAllUsedStructsAndMergeFunctions() 
   : ModulePass((intptr_t)&ID) {}
 void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -71,7 +71,7 @@
 virtual bool runOnModule(Module &M);
   };
 
-  const char CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
+  char CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
 
   /// CWriter - This class is the main chunk of code that converts an LLVM
   /// module to a C translation unit.
@@ -88,7 +88,7 @@
 std::set intrinsicPrototypesAlreadyGenerated;
 
   public:
-static const char ID;
+static char ID;
 CWriter(std::ostream &o) 
   : FunctionPass((intptr_t)&ID), Out(o), IL(0), Mang(0), LI(0), 
 TheModule(0), TAsm(0), TD(0) {}
@@ -264,7 +264,7 @@
   };
 }
 
-const char CWriter::ID = 0;
+char CWriter::ID = 0;
 
 /// This method inserts names for any unnamed structure types that are used by
 /// the program, and removes names from structure types that are not used by 
the



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


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

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.445 -> 1.446
---
Log message:

Drop 'const'


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

 SelectionDAGISel.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.445 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.446
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.445Wed May  2 
17:15:48 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Wed May  2 20:11:53 2007
@@ -5012,4 +5012,4 @@
 Ops.push_back(InOps.back());
 }
 
-const char SelectionDAGISel::ID = 0;
+char SelectionDAGISel::ID = 0;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/Sparc/DelaySlotFiller.cpp FPMover.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/Sparc:

DelaySlotFiller.cpp updated: 1.15 -> 1.16
FPMover.cpp updated: 1.20 -> 1.21
---
Log message:

Drop 'const'


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

 DelaySlotFiller.cpp |4 ++--
 FPMover.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/Sparc/DelaySlotFiller.cpp
diff -u llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.15 
llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.16
--- llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.15  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/Sparc/DelaySlotFiller.cpp   Wed May  2 20:11:54 2007
@@ -30,7 +30,7 @@
 TargetMachine &TM;
 const TargetInstrInfo *TII;
 
-static const char ID;
+static char ID;
 Filler(TargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm), TII(tm.getInstrInfo()) { }
 
@@ -48,7 +48,7 @@
 }
 
   };
-  const char Filler::ID = 0;
+  char Filler::ID = 0;
 } // end of anonymous namespace
 
 /// createSparcDelaySlotFillerPass - Returns a pass that fills in delay


Index: llvm/lib/Target/Sparc/FPMover.cpp
diff -u llvm/lib/Target/Sparc/FPMover.cpp:1.20 
llvm/lib/Target/Sparc/FPMover.cpp:1.21
--- llvm/lib/Target/Sparc/FPMover.cpp:1.20  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/Sparc/FPMover.cpp   Wed May  2 20:11:54 2007
@@ -32,7 +32,7 @@
 ///
 TargetMachine &TM;
 
-static const char ID;
+static char ID;
 FPMover(TargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm) { }
 
@@ -43,7 +43,7 @@
 bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
 bool runOnMachineFunction(MachineFunction &F);
   };
-  const char FPMover::ID = 0;
+  char FPMover::ID = 0;
 } // end of anonymous namespace
 
 /// createSparcFPMoverPass - Returns a pass that turns FpMOVD



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp X86FloatingPoint.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.135 -> 1.136
X86FloatingPoint.cpp updated: 1.70 -> 1.71
---
Log message:

Drop 'const'


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

 X86CodeEmitter.cpp   |4 ++--
 X86FloatingPoint.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.135 
llvm/lib/Target/X86/X86CodeEmitter.cpp:1.136
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.135Wed May  2 16:39:19 2007
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp  Wed May  2 20:11:54 2007
@@ -39,7 +39,7 @@
 MachineCodeEmitter  &MCE;
 bool Is64BitMode;
   public:
-static const char ID;
+static char ID;
 explicit Emitter(TargetMachine &tm, MachineCodeEmitter &mce)
   : MachineFunctionPass((intptr_t)&ID), II(0), TD(0), TM(tm), 
   MCE(mce), Is64BitMode(false) {}
@@ -82,7 +82,7 @@
 bool isX86_64ExtendedReg(const MachineOperand &MO);
 unsigned determineREX(const MachineInstr &MI);
   };
-  const char Emitter::ID = 0;
+  char Emitter::ID = 0;
 }
 
 /// createX86CodeEmitterPass - Return a pass that emits the collected X86 code


Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.70 
llvm/lib/Target/X86/X86FloatingPoint.cpp:1.71
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.70   Wed May  2 16:39:19 2007
+++ llvm/lib/Target/X86/X86FloatingPoint.cppWed May  2 20:11:54 2007
@@ -52,7 +52,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN FPS : public MachineFunctionPass {
-static const char ID;
+static char ID;
 FPS() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &MF);
@@ -154,7 +154,7 @@
 void handleCondMovFP(MachineBasicBlock::iterator &I);
 void handleSpecialFP(MachineBasicBlock::iterator &I);
   };
-  const char FPS::ID = 0;
+  char FPS::ID = 0;
 }
 
 FunctionPass *llvm::createX86FloatingPointStackifierPass() { return new FPS(); 
}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/docs/WritingAnLLVMPass.html

2007-05-02 Thread Devang Patel


Changes in directory llvm/docs:

WritingAnLLVMPass.html updated: 1.58 -> 1.59
---
Log message:

Drop 'const'


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

 WritingAnLLVMPass.html |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/docs/WritingAnLLVMPass.html
diff -u llvm/docs/WritingAnLLVMPass.html:1.58 
llvm/docs/WritingAnLLVMPass.html:1.59
--- llvm/docs/WritingAnLLVMPass.html:1.58   Wed May  2 16:39:18 2007
+++ llvm/docs/WritingAnLLVMPass.htmlWed May  2 20:11:53 2007
@@ -263,7 +263,7 @@
 time.
 
 
- static const char ID;
+ static char ID;
  Hello() : FunctionPass((intptr_t)&ID) {}
 
 
@@ -285,7 +285,7 @@
 function.
 
 
-  const char Hello::ID = 0;
+  char Hello::ID = 0;
 
 
  We initialize pass ID here. LLVM uses ID's address to identify pass so 
@@ -311,7 +311,7 @@
 namespace {
   struct Hello : public FunctionPass 
{
 
-static const char ID;
+static char ID;
 Hello() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function 
&F) {
@@ -1807,7 +1807,7 @@
 
   mailto:[EMAIL PROTECTED]">Chris Lattner
   http://llvm.org";>The LLVM Compiler Infrastructure
-  Last modified: $Date: 2007/05/02 21:39:18 $
+  Last modified: $Date: 2007/05/03 01:11:53 $
 
 
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/MSIL/MSILWriter.cpp MSILWriter.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/MSIL:

MSILWriter.cpp updated: 1.6 -> 1.7
MSILWriter.h updated: 1.4 -> 1.5
---
Log message:

Drop 'const'


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

 MSILWriter.cpp |4 ++--
 MSILWriter.h   |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/MSIL/MSILWriter.cpp
diff -u llvm/lib/Target/MSIL/MSILWriter.cpp:1.6 
llvm/lib/Target/MSIL/MSILWriter.cpp:1.7
--- llvm/lib/Target/MSIL/MSILWriter.cpp:1.6 Wed May  2 16:39:19 2007
+++ llvm/lib/Target/MSIL/MSILWriter.cpp Wed May  2 20:11:53 2007
@@ -80,8 +80,8 @@
   return Changed;
 }
 
-const char MSILModule::ID = 0;
-const char MSILWriter::ID = 0;
+char MSILModule::ID = 0;
+char MSILWriter::ID = 0;
 
 bool MSILWriter::runOnFunction(Function &F) {
   if (F.isDeclaration()) return false;


Index: llvm/lib/Target/MSIL/MSILWriter.h
diff -u llvm/lib/Target/MSIL/MSILWriter.h:1.4 
llvm/lib/Target/MSIL/MSILWriter.h:1.5
--- llvm/lib/Target/MSIL/MSILWriter.h:1.4   Wed May  2 16:39:19 2007
+++ llvm/lib/Target/MSIL/MSILWriter.h   Wed May  2 20:11:53 2007
@@ -37,7 +37,7 @@
 const TargetData*& TD;
 
   public:
-static const char ID;
+static char ID;
 MSILModule(const std::set*& _UsedTypes,
const TargetData*& _TD)
   : ModulePass((intptr_t)&ID), UsedTypes(_UsedTypes), TD(_TD) {}
@@ -83,7 +83,7 @@
 std::map >
   StaticInitList;
 const std::set* UsedTypes;
-static const char ID;
+static char ID;
 MSILWriter(std::ostream &o) : FunctionPass((intptr_t)&ID), Out(o) {
   UniqID = 0;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.62 -> 1.63
---
Log message:

Drop 'const'


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

 TargetData.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.62 
llvm/include/llvm/Target/TargetData.h:1.63
--- llvm/include/llvm/Target/TargetData.h:1.62  Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Target/TargetData.h   Wed May  2 20:11:53 2007
@@ -202,7 +202,7 @@
   /// requested alignment (if the global has one).
   unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const;
 
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
 };
 
 /// StructLayout - used to lazily calculate structure layout information for a



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/tools/opt/AnalysisWrappers.cpp GraphPrinters.cpp PrintSCC.cpp opt.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/tools/opt:

AnalysisWrappers.cpp updated: 1.23 -> 1.24
GraphPrinters.cpp updated: 1.16 -> 1.17
PrintSCC.cpp updated: 1.17 -> 1.18
opt.cpp updated: 1.136 -> 1.137
---
Log message:

Drop 'const'


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

 AnalysisWrappers.cpp |8 
 GraphPrinters.cpp|4 ++--
 PrintSCC.cpp |8 
 opt.cpp  |   12 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)


Index: llvm/tools/opt/AnalysisWrappers.cpp
diff -u llvm/tools/opt/AnalysisWrappers.cpp:1.23 
llvm/tools/opt/AnalysisWrappers.cpp:1.24
--- llvm/tools/opt/AnalysisWrappers.cpp:1.23Wed May  2 16:39:20 2007
+++ llvm/tools/opt/AnalysisWrappers.cpp Wed May  2 20:11:54 2007
@@ -30,7 +30,7 @@
   /// useful when looking for standard library functions we should constant 
fold
   /// or handle in alias analyses.
   struct ExternalFunctionsPassedConstants : public ModulePass {
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 ExternalFunctionsPassedConstants() : ModulePass((intptr_t)&ID) {}
 virtual bool runOnModule(Module &M) {
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
@@ -63,12 +63,12 @@
 }
   };
 
-  const char ExternalFunctionsPassedConstants::ID = 0;
+  char ExternalFunctionsPassedConstants::ID = 0;
   RegisterPass
   P1("externalfnconstants", "Print external fn callsites passed constants");
   
   struct CallGraphPrinter : public ModulePass {
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
 
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -82,7 +82,7 @@
 }
   };
   
-  const char CallGraphPrinter::ID = 0;
+  char CallGraphPrinter::ID = 0;
   RegisterPass
 P2("callgraph", "Print a call graph");
 }


Index: llvm/tools/opt/GraphPrinters.cpp
diff -u llvm/tools/opt/GraphPrinters.cpp:1.16 
llvm/tools/opt/GraphPrinters.cpp:1.17
--- llvm/tools/opt/GraphPrinters.cpp:1.16   Wed May  2 16:39:20 2007
+++ llvm/tools/opt/GraphPrinters.cppWed May  2 20:11:54 2007
@@ -60,7 +60,7 @@
 
 namespace {
   struct CallGraphPrinter : public ModulePass {
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
 
 virtual bool runOnModule(Module &M) {
@@ -77,7 +77,7 @@
 }
   };
 
-  const char CallGraphPrinter::ID = 0;
+  char CallGraphPrinter::ID = 0;
   RegisterPass P2("print-callgraph",
 "Print Call Graph to 'dot' file");
 }


Index: llvm/tools/opt/PrintSCC.cpp
diff -u llvm/tools/opt/PrintSCC.cpp:1.17 llvm/tools/opt/PrintSCC.cpp:1.18
--- llvm/tools/opt/PrintSCC.cpp:1.17Wed May  2 16:39:20 2007
+++ llvm/tools/opt/PrintSCC.cpp Wed May  2 20:11:54 2007
@@ -35,7 +35,7 @@
 
 namespace {
   struct CFGSCC : public FunctionPass {
-static const char ID;  // Pass identification, replacement for typeid
+static char ID;  // Pass identification, replacement for typeid
 CFGSCC() : FunctionPass((intptr_t)&ID) {}
 bool runOnFunction(Function& func);
 
@@ -47,7 +47,7 @@
   };
 
   struct CallGraphSCC : public ModulePass {
-static const char ID;  // Pass identification, replacement for typeid
+static char ID;  // Pass identification, replacement for typeid
 CallGraphSCC() : ModulePass((intptr_t)&ID) {}
 
 // run - Print out SCCs in the call graph for the specified module.
@@ -62,11 +62,11 @@
 }
   };
 
-  const char CFGSCC::ID = 0;
+  char CFGSCC::ID = 0;
   RegisterPass
   Y("cfgscc", "Print SCCs of each function CFG");
 
-  const char CallGraphSCC::ID = 0;
+  char CallGraphSCC::ID = 0;
   RegisterPass
   Z("callscc", "Print SCCs of the Call Graph");
 }


Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.136 llvm/tools/opt/opt.cpp:1.137
--- llvm/tools/opt/opt.cpp:1.136Wed May  2 16:39:20 2007
+++ llvm/tools/opt/opt.cpp  Wed May  2 20:11:54 2007
@@ -98,7 +98,7 @@
 namespace {
 
 struct ModulePassPrinter : public ModulePass {
-  static const char ID;
+  static char ID;
   const PassInfo *PassToPrint;
   ModulePassPrinter(const PassInfo *PI) : ModulePass((intptr_t)&ID),
   PassToPrint(PI) {}
@@ -121,10 +121,10 @@
   }
 };
 
-const char ModulePassPrinter::ID = 0;
+char ModulePassPrinter::ID = 0;
 struct FunctionPassPrinter : public FunctionPass {
   const PassInfo *PassToPrint;
-  static const char ID;
+  static char ID;
   FunctionPassPrinter(const PassInfo *PI) : FunctionPass((intptr_t)&ID),
 PassToPrint(PI) {}
 
@@ -146,10 +146,10 @@
   }
 };
 
-const char FunctionPassPrinter::ID = 0;
+char FunctionPassPrinter::ID = 0;
 struct BasicBlockPassPrinter : public BasicBlockPass {
   const PassInfo *PassToPrint;
-  static const char 

[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp AlphaCodeEmitter.cpp AlphaLLRP.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/Alpha:

AlphaBranchSelector.cpp updated: 1.4 -> 1.5
AlphaCodeEmitter.cpp updated: 1.23 -> 1.24
AlphaLLRP.cpp updated: 1.10 -> 1.11
---
Log message:

Drop 'const'


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

 AlphaBranchSelector.cpp |4 ++--
 AlphaCodeEmitter.cpp|4 ++--
 AlphaLLRP.cpp   |4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
diff -u llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.4 
llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.5
--- llvm/lib/Target/Alpha/AlphaBranchSelector.cpp:1.4   Wed May  2 16:39:19 2007
+++ llvm/lib/Target/Alpha/AlphaBranchSelector.cpp   Wed May  2 20:11:53 2007
@@ -22,7 +22,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN AlphaBSel : public MachineFunctionPass {
-static const char ID;
+static char ID;
 AlphaBSel() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &Fn);
@@ -31,7 +31,7 @@
   return "Alpha Branch Selection";
 }
   };
-  const char AlphaBSel::ID = 0;
+  char AlphaBSel::ID = 0;
 }
 
 /// createAlphaBranchSelectionPass - returns an instance of the Branch 
Selection


Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.23 
llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.24
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.23 Wed May  2 16:39:19 2007
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp  Wed May  2 20:11:53 2007
@@ -36,7 +36,7 @@
 int getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
 
   public:
-static const char ID;
+static char ID;
 explicit AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce)
   : MachineFunctionPass((intptr_t)&ID), II(0), TM(tm), MCE(mce) {}
 AlphaCodeEmitter(TargetMachine &tm, MachineCodeEmitter &mce,
@@ -61,7 +61,7 @@
 void emitBasicBlock(MachineBasicBlock &MBB);
 
   };
-  const char AlphaCodeEmitter::ID = 0;
+  char AlphaCodeEmitter::ID = 0;
 }
 
 /// createAlphaCodeEmitterPass - Return a pass that emits the collected Alpha 
code


Index: llvm/lib/Target/Alpha/AlphaLLRP.cpp
diff -u llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.10 
llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.11
--- llvm/lib/Target/Alpha/AlphaLLRP.cpp:1.10Wed May  2 16:39:19 2007
+++ llvm/lib/Target/Alpha/AlphaLLRP.cpp Wed May  2 20:11:53 2007
@@ -37,7 +37,7 @@
 ///
 AlphaTargetMachine &TM;
 
-static const char ID;
+static char ID;
 AlphaLLRPPass(AlphaTargetMachine &tm) 
   : MachineFunctionPass((intptr_t)&ID), TM(tm) { }
 
@@ -154,7 +154,7 @@
   return Changed;
 }
   };
-  const char AlphaLLRPPass::ID = 0;
+  char AlphaLLRPPass::ID = 0;
 } // end of anonymous namespace
 
 FunctionPass *llvm::createAlphaLLRPPass(AlphaTargetMachine &tm) {



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Dominators.cpp PassManager.cpp Verifier.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.281 -> 1.282
Dominators.cpp updated: 1.99 -> 1.100
PassManager.cpp updated: 1.155 -> 1.156
Verifier.cpp updated: 1.211 -> 1.212
---
Log message:

Drop 'const'


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

 AsmWriter.cpp   |4 ++--
 Dominators.cpp  |6 +++---
 PassManager.cpp |   18 +-
 Verifier.cpp|4 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)


Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.281 llvm/lib/VMCore/AsmWriter.cpp:1.282
--- llvm/lib/VMCore/AsmWriter.cpp:1.281 Wed May  2 16:39:19 2007
+++ llvm/lib/VMCore/AsmWriter.cpp   Wed May  2 20:11:54 2007
@@ -135,10 +135,10 @@
 
 }  // end namespace llvm
 
-const char PrintModulePass::ID = 0;
+char PrintModulePass::ID = 0;
 static RegisterPass
 X("printm", "Print module to stderr");
-const char PrintFunctionPass::ID = 0;
+char PrintFunctionPass::ID = 0;
 static RegisterPass
 Y("print","Print function to stderr");
 


Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.99 llvm/lib/VMCore/Dominators.cpp:1.100
--- llvm/lib/VMCore/Dominators.cpp:1.99 Wed May  2 16:39:20 2007
+++ llvm/lib/VMCore/Dominators.cpp  Wed May  2 20:11:54 2007
@@ -58,7 +58,7 @@
 //
 
//===--===//
 
-const char DominatorTree::ID = 0;
+char DominatorTree::ID = 0;
 static RegisterPass
 E("domtree", "Dominator Tree Construction", true);
 
@@ -354,7 +354,7 @@
 //  DominanceFrontier Implementation
 
//===--===//
 
-const char DominanceFrontier::ID = 0;
+char DominanceFrontier::ID = 0;
 static RegisterPass
 G("domfrontier", "Dominance Frontier Construction", true);
 
@@ -835,7 +835,7 @@
 // ETForest implementation
 
//===--===//
 
-const char ETForest::ID = 0;
+char ETForest::ID = 0;
 static RegisterPass
 D("etforest", "ET Forest Construction", true);
 


Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.155 
llvm/lib/VMCore/PassManager.cpp:1.156
--- llvm/lib/VMCore/PassManager.cpp:1.155   Wed May  2 16:39:20 2007
+++ llvm/lib/VMCore/PassManager.cpp Wed May  2 20:11:54 2007
@@ -63,7 +63,7 @@
 public FunctionPass {
 
 public:
-  static const char ID;
+  static char ID;
   BBPassManager(int Depth) 
 : PMDataManager(Depth), FunctionPass((intptr_t)&ID) {}
 
@@ -106,7 +106,7 @@
   }
 };
 
-const char BBPassManager::ID = 0;
+char BBPassManager::ID = 0;
 }
 
 namespace llvm {
@@ -119,7 +119,7 @@
 public PMDataManager,
 public PMTopLevelManager {
 public:
-  static const char ID;
+  static char ID;
   FunctionPassManagerImpl(int Depth) : 
 Pass((intptr_t)&ID), PMDataManager(Depth), 
 PMTopLevelManager(TLM_Function) { }
@@ -173,7 +173,7 @@
   }
 };
 
-const char FunctionPassManagerImpl::ID = 0;
+char FunctionPassManagerImpl::ID = 0;
 
//===--===//
 // MPPassManager
 //
@@ -183,7 +183,7 @@
 class MPPassManager : public Pass, public PMDataManager {
  
 public:
-  static const char ID;
+  static char ID;
   MPPassManager(int Depth) : Pass((intptr_t)&ID), PMDataManager(Depth) { }
 
   // Delete on the fly managers.
@@ -247,7 +247,7 @@
   std::map OnTheFlyManagers;
 };
 
-const char MPPassManager::ID = 0;
+char MPPassManager::ID = 0;
 
//===--===//
 // PassManagerImpl
 //
@@ -258,7 +258,7 @@
 public PMTopLevelManager {
 
 public:
-  static const char ID;
+  static char ID;
   PassManagerImpl(int Depth) : Pass((intptr_t)&ID), PMDataManager(Depth),
PMTopLevelManager(TLM_Pass) { }
 
@@ -304,7 +304,7 @@
 
 };
 
-const char PassManagerImpl::ID = 0;
+char PassManagerImpl::ID = 0;
 } // End of llvm namespace
 
 namespace {
@@ -1108,7 +1108,7 @@
 
//===--===//
 // FPPassManager implementation
 
-const char FPPassManager::ID = 0;
+char FPPassManager::ID = 0;
 /// Print passes managed by this manager
 void FPPassManager::dumpPassStructure(unsigned Offset) {
   llvm::cerr << std::string(Offset*2, ' ') << "FunctionPass Manager\n";


Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.211 llvm/lib/VMCore/Verifier.cpp:1.212
--- llvm/lib/VMCore/Verifier.cpp:1.211  Wed May  2 16:39:20 2007
+++ llvm/lib/VMCore/Verifier.cppWed May  2 20:11:54 2007
@@ -69,7 +69,7 @@
 
   struct VISIBILITY_HIDDEN
  Verifier : public FunctionPass, InstVisitor {
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 bool Broken;  // Is this module found to be broke

[llvm-commits] CVS: llvm/include/llvm/PassManagers.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm:

PassManagers.h updated: 1.18 -> 1.19
---
Log message:

Drop 'const'


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

 PassManagers.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/PassManagers.h
diff -u llvm/include/llvm/PassManagers.h:1.18 
llvm/include/llvm/PassManagers.h:1.19
--- llvm/include/llvm/PassManagers.h:1.18   Wed May  2 16:39:18 2007
+++ llvm/include/llvm/PassManagers.hWed May  2 20:11:53 2007
@@ -336,7 +336,7 @@
 class FPPassManager : public ModulePass, public PMDataManager {
  
 public:
-  static const char ID;
+  static char ID;
   explicit FPPassManager(int Depth) 
   : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
   



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Transforms/Utils:

UnifyFunctionExitNodes.h updated: 1.22 -> 1.23
---
Log message:

Drop 'const'


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

 UnifyFunctionExitNodes.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.22 
llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.23
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.22Wed May 
 2 16:39:18 2007
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h Wed May  2 
20:11:53 2007
@@ -25,7 +25,7 @@
 struct UnifyFunctionExitNodes : public FunctionPass {
   BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock;
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
   UnifyFunctionExitNodes() : FunctionPass((intptr_t)&ID),
  ReturnBlock(0), UnwindBlock(0) {}
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasAnalysis.h CallGraph.h Dominators.h FindUsedTypes.h IntervalPartition.h LoopInfo.h LoopPass.h PostDominators.h ProfileInfo.h ScalarEvolution.h Value

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Analysis:

AliasAnalysis.h updated: 1.30 -> 1.31
CallGraph.h updated: 1.55 -> 1.56
Dominators.h updated: 1.78 -> 1.79
FindUsedTypes.h updated: 1.31 -> 1.32
IntervalPartition.h updated: 1.25 -> 1.26
LoopInfo.h updated: 1.65 -> 1.66
LoopPass.h updated: 1.17 -> 1.18
PostDominators.h updated: 1.19 -> 1.20
ProfileInfo.h updated: 1.7 -> 1.8
ScalarEvolution.h updated: 1.18 -> 1.19
ValueNumbering.h updated: 1.12 -> 1.13
---
Log message:

Drop 'const'


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

 AliasAnalysis.h |2 +-
 CallGraph.h |2 +-
 Dominators.h|6 +++---
 FindUsedTypes.h |2 +-
 IntervalPartition.h |2 +-
 LoopInfo.h  |2 +-
 LoopPass.h  |2 +-
 PostDominators.h|6 +++---
 ProfileInfo.h   |2 +-
 ScalarEvolution.h   |2 +-
 ValueNumbering.h|2 +-
 11 files changed, 15 insertions(+), 15 deletions(-)


Index: llvm/include/llvm/Analysis/AliasAnalysis.h
diff -u llvm/include/llvm/Analysis/AliasAnalysis.h:1.30 
llvm/include/llvm/Analysis/AliasAnalysis.h:1.31
--- llvm/include/llvm/Analysis/AliasAnalysis.h:1.30 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/AliasAnalysis.h  Wed May  2 20:11:53 2007
@@ -61,7 +61,7 @@
   virtual void getAnalysisUsage(AnalysisUsage &AU) const;
 
 public:
-  static const char ID; // Class identification, replacement for typeinfo
+  static char ID; // Class identification, replacement for typeinfo
   AliasAnalysis() : TD(0), AA(0) {}
   virtual ~AliasAnalysis();  // We want to be subclassed
 


Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.55 
llvm/include/llvm/Analysis/CallGraph.h:1.56
--- llvm/include/llvm/Analysis/CallGraph.h:1.55 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/CallGraph.h  Wed May  2 20:11:53 2007
@@ -73,7 +73,7 @@
   FunctionMapTy FunctionMap;// Map from a function to its node
 
 public:
-  static const char ID; // Class identification, replacement for typeinfo
+  static char ID; // Class identification, replacement for typeinfo
   //===-
   // Accessors...
   //


Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.78 
llvm/include/llvm/Analysis/Dominators.h:1.79
--- llvm/include/llvm/Analysis/Dominators.h:1.78Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/Dominators.h Wed May  2 20:11:53 2007
@@ -208,7 +208,7 @@
 ///
 class DominatorTree : public DominatorTreeBase {
 public:
-  static const char ID; // Pass ID, replacement for typeid
+  static char ID; // Pass ID, replacement for typeid
   DominatorTree() : DominatorTreeBase((intptr_t)&ID, false) {}
   
   BasicBlock *getRoot() const {
@@ -399,7 +399,7 @@
 
 class ETForest : public ETForestBase {
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
 
   ETForest() : ETForestBase((intptr_t)&ID, false) {}
 
@@ -477,7 +477,7 @@
 ///
 class DominanceFrontier : public DominanceFrontierBase {
 public:
-  static const char ID; // Pass ID, replacement for typeid
+  static char ID; // Pass ID, replacement for typeid
   DominanceFrontier() : 
 DominanceFrontierBase((intptr_t)& ID, false) {}
 


Index: llvm/include/llvm/Analysis/FindUsedTypes.h
diff -u llvm/include/llvm/Analysis/FindUsedTypes.h:1.31 
llvm/include/llvm/Analysis/FindUsedTypes.h:1.32
--- llvm/include/llvm/Analysis/FindUsedTypes.h:1.31 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/FindUsedTypes.h  Wed May  2 20:11:53 2007
@@ -24,7 +24,7 @@
 class FindUsedTypes : public ModulePass {
   std::set UsedTypes;
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
   FindUsedTypes() : ModulePass((intptr_t)&ID) {}
 
   /// getTypes - After the pass has been run, return the set containing all of


Index: llvm/include/llvm/Analysis/IntervalPartition.h
diff -u llvm/include/llvm/Analysis/IntervalPartition.h:1.25 
llvm/include/llvm/Analysis/IntervalPartition.h:1.26
--- llvm/include/llvm/Analysis/IntervalPartition.h:1.25 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/IntervalPartition.h  Wed May  2 20:11:53 2007
@@ -45,7 +45,7 @@
   std::vector Intervals;
 
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
 
   IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {}
 


Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.65 
llvm/include/llvm/Analysis/LoopInfo.h:1.66
--- llvm/include/llvm/Analysis/LoopInfo.h:1.65  Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Analysis/LoopInfo.h   Wed May  2 20:11:53 2007
@@ -241,7 +241,7 @@
   std::vector TopLevelLoops;
   friend class Loop;
 public:
-

[llvm-commits] CVS: llvm/lib/Transforms/Hello/Hello.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Hello:

Hello.cpp updated: 1.16 -> 1.17
---
Log message:

Drop 'const'


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

 Hello.cpp |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Transforms/Hello/Hello.cpp
diff -u llvm/lib/Transforms/Hello/Hello.cpp:1.16 
llvm/lib/Transforms/Hello/Hello.cpp:1.17
--- llvm/lib/Transforms/Hello/Hello.cpp:1.16Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Hello/Hello.cpp Wed May  2 20:11:54 2007
@@ -25,7 +25,7 @@
 namespace {
   // Hello - The first implementation, without getAnalysisUsage.
   struct Hello : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 Hello() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F) {
@@ -37,12 +37,12 @@
 }
   };
 
-  const char Hello::ID = 0;
+  char Hello::ID = 0;
   RegisterPass X("hello", "Hello World Pass");
 
   // Hello2 - The second implementation with getAnalysisUsage implemented.
   struct Hello2 : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 Hello2() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F) {
@@ -58,7 +58,7 @@
   AU.setPreservesAll();
 };
   };
-  const char Hello2::ID = 0;
+  char Hello2::ID = 0;
   RegisterPass Y("hello2",
 "Hello World Pass (with getAnalysisUsage 
implemented)");
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp BranchFolding.cpp ELFWriter.cpp ELFWriter.h LiveIntervalAnalysis.cpp LiveVariables.cpp MachOWriter.cpp MachOWriter.h MachineFunction.cpp MachineModu

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.162 -> 1.163
BranchFolding.cpp updated: 1.48 -> 1.49
ELFWriter.cpp updated: 1.40 -> 1.41
ELFWriter.h updated: 1.3 -> 1.4
LiveIntervalAnalysis.cpp updated: 1.242 -> 1.243
LiveVariables.cpp updated: 1.81 -> 1.82
MachOWriter.cpp updated: 1.34 -> 1.35
MachOWriter.h updated: 1.5 -> 1.6
MachineFunction.cpp updated: 1.113 -> 1.114
MachineModuleInfo.cpp updated: 1.8 -> 1.9
PHIElimination.cpp updated: 1.59 -> 1.60
PrologEpilogInserter.cpp updated: 1.86 -> 1.87
RegAllocLinearScan.cpp updated: 1.147 -> 1.148
RegAllocLocal.cpp updated: 1.104 -> 1.105
RegAllocSimple.cpp updated: 1.85 -> 1.86
TwoAddressInstructionPass.cpp updated: 1.49 -> 1.50
UnreachableBlockElim.cpp updated: 1.11 -> 1.12
---
Log message:

Drop 'const'


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

 AsmPrinter.cpp|2 +-
 BranchFolding.cpp |4 ++--
 ELFWriter.cpp |2 +-
 ELFWriter.h   |2 +-
 LiveIntervalAnalysis.cpp  |2 +-
 LiveVariables.cpp |2 +-
 MachOWriter.cpp   |2 +-
 MachOWriter.h |2 +-
 MachineFunction.cpp   |8 
 MachineModuleInfo.cpp |6 +++---
 PHIElimination.cpp|4 ++--
 PrologEpilogInserter.cpp  |4 ++--
 RegAllocLinearScan.cpp|4 ++--
 RegAllocLocal.cpp |4 ++--
 RegAllocSimple.cpp|4 ++--
 TwoAddressInstructionPass.cpp |4 ++--
 UnreachableBlockElim.cpp  |4 ++--
 17 files changed, 30 insertions(+), 30 deletions(-)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.162 
llvm/lib/CodeGen/AsmPrinter.cpp:1.163
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.162   Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp Wed May  2 20:11:53 2007
@@ -32,7 +32,7 @@
 static cl::opt
 AsmVerbose("asm-verbose", cl::Hidden, cl::desc("Add comments to directives."));
 
-const char AsmPrinter::ID = 0;
+char AsmPrinter::ID = 0;
 AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm,
const TargetAsmInfo *T)
   : MachineFunctionPass((intptr_t)&ID), FunctionNumber(0), O(o), TM(tm), TAI(T)


Index: llvm/lib/CodeGen/BranchFolding.cpp
diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.48 
llvm/lib/CodeGen/BranchFolding.cpp:1.49
--- llvm/lib/CodeGen/BranchFolding.cpp:1.48 Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/BranchFolding.cpp  Wed May  2 20:11:53 2007
@@ -39,7 +39,7 @@
 
 namespace {
   struct BranchFolder : public MachineFunctionPass {
-static const char ID;
+static char ID;
 BranchFolder() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &MF);
@@ -67,7 +67,7 @@
 MachineBasicBlock *TBB, MachineBasicBlock *FBB,
 const std::vector &Cond);
   };
-  const char BranchFolder::ID = 0;
+  char BranchFolder::ID = 0;
 }
 
 FunctionPass *llvm::createBranchFoldingPass() { return new BranchFolder(); }


Index: llvm/lib/CodeGen/ELFWriter.cpp
diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.40 llvm/lib/CodeGen/ELFWriter.cpp:1.41
--- llvm/lib/CodeGen/ELFWriter.cpp:1.40 Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/ELFWriter.cpp  Wed May  2 20:11:53 2007
@@ -47,7 +47,7 @@
 #include 
 using namespace llvm;
 
-const char ELFWriter::ID = 0;
+char ELFWriter::ID = 0;
 /// AddELFWriter - Concrete function to add the ELF writer to the function pass
 /// manager.
 MachineCodeEmitter *llvm::AddELFWriter(FunctionPassManager &FPM,


Index: llvm/lib/CodeGen/ELFWriter.h
diff -u llvm/lib/CodeGen/ELFWriter.h:1.3 llvm/lib/CodeGen/ELFWriter.h:1.4
--- llvm/lib/CodeGen/ELFWriter.h:1.3Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/ELFWriter.hWed May  2 20:11:53 2007
@@ -30,7 +30,7 @@
   class ELFWriter : public MachineFunctionPass {
 friend class ELFCodeEmitter;
   public:
-static const char ID;
+static char ID;
 
 MachineCodeEmitter &getMachineCodeEmitter() const {
   return *(MachineCodeEmitter*)MCE;


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.242 
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.243
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.242 Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp   Wed May  2 20:11:53 2007
@@ -44,7 +44,7 @@
 STATISTIC(numFolded   , "Number of loads/stores folded into instructions");
 STATISTIC(numAborts   , "Number of times interval joining aborted");
 
-const char LiveIntervals::ID = 0;
+char LiveIntervals::ID = 0;
 namespace {
   RegisterPass X("liveintervals", "Live Interval Analysis");
 


Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.81 
llvm/lib/CodeGen/LiveVariables.cpp:1.82
--- llvm/lib/CodeGen/LiveVariables.cpp:1.81 Wed May  2 16:39:18 2007
+++ llvm/lib/CodeGen/LiveVariables.cpp  Wed May  2 20:11:53 2007
@@ -37,7 +37,7 @@
 #include 
 us

[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.110 -> 1.111
---
Log message:

Drop 'const'


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

 TargetData.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.110 
llvm/lib/Target/TargetData.cpp:1.111
--- llvm/lib/Target/TargetData.cpp:1.110Wed May  2 16:39:19 2007
+++ llvm/lib/Target/TargetData.cpp  Wed May  2 20:11:53 2007
@@ -35,7 +35,7 @@
   // Register the default SparcV9 implementation...
   RegisterPass X("targetdata", "Target Data Layout");
 }
-const char TargetData::ID = 0;
+char TargetData::ID = 0;
 
 
//===--===//
 // Support for StructLayout



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp ARMLoadStoreOptimizer.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/ARM:

ARMConstantIslandPass.cpp updated: 1.41 -> 1.42
ARMLoadStoreOptimizer.cpp updated: 1.10 -> 1.11
---
Log message:

Drop 'const'


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

 ARMConstantIslandPass.cpp |4 ++--
 ARMLoadStoreOptimizer.cpp |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.41 
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.42
--- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.41  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp   Wed May  2 20:11:53 2007
@@ -128,7 +128,7 @@
 ARMFunctionInfo *AFI;
 bool isThumb;
   public:
-static const char ID;
+static char ID;
 ARMConstantIslands() : MachineFunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnMachineFunction(MachineFunction &Fn);
@@ -174,7 +174,7 @@
 void dumpBBs();
 void verify(MachineFunction &Fn);
   };
-  const char ARMConstantIslands::ID = 0;
+  char ARMConstantIslands::ID = 0;
 }
 
 /// verify - check BBOffsets, BBSizes, alignment of islands


Index: llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff -u llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.10 
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.11
--- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.10  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp   Wed May  2 20:11:53 2007
@@ -38,7 +38,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN ARMLoadStoreOpt : public MachineFunctionPass {
-static const char ID;
+static char ID;
 ARMLoadStoreOpt() : MachineFunctionPass((intptr_t)&ID) {}
 
 const TargetInstrInfo *TII;
@@ -73,7 +73,7 @@
 bool LoadStoreMultipleOpti(MachineBasicBlock &MBB);
 bool MergeReturnIntoLDM(MachineBasicBlock &MBB);
   };
-  const char ARMLoadStoreOpt::ID = 0;
+  char ARMLoadStoreOpt::ID = 0;
 }
 
 /// createARMLoadStoreOptimizationPass - returns an instance of the load / 
store



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp LCSSA.cpp LoopSimplify.cpp LowerAllocations.cpp LowerInvoke.cpp LowerSelect.cpp LowerSwitch.cpp Mem2Reg.cpp UnifyFunctionExitNodes.

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Utils:

BreakCriticalEdges.cpp updated: 1.46 -> 1.47
LCSSA.cpp updated: 1.40 -> 1.41
LoopSimplify.cpp updated: 1.94 -> 1.95
LowerAllocations.cpp updated: 1.75 -> 1.76
LowerInvoke.cpp updated: 1.61 -> 1.62
LowerSelect.cpp updated: 1.14 -> 1.15
LowerSwitch.cpp updated: 1.40 -> 1.41
Mem2Reg.cpp updated: 1.28 -> 1.29
UnifyFunctionExitNodes.cpp updated: 1.38 -> 1.39
---
Log message:

Drop 'const'


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

 BreakCriticalEdges.cpp |4 ++--
 LCSSA.cpp  |4 ++--
 LoopSimplify.cpp   |4 ++--
 LowerAllocations.cpp   |4 ++--
 LowerInvoke.cpp|4 ++--
 LowerSelect.cpp|4 ++--
 LowerSwitch.cpp|4 ++--
 Mem2Reg.cpp|4 ++--
 UnifyFunctionExitNodes.cpp |2 +-
 9 files changed, 17 insertions(+), 17 deletions(-)


Index: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
diff -u llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.46 
llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.47
--- llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.46   Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Utils/BreakCriticalEdges.cppWed May  2 20:11:54 2007
@@ -34,7 +34,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN BreakCriticalEdges : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 BreakCriticalEdges() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F);
@@ -50,7 +50,7 @@
 }
   };
 
-  const char BreakCriticalEdges::ID = 0;
+  char BreakCriticalEdges::ID = 0;
   RegisterPass X("break-crit-edges",
 "Break critical edges in CFG");
 }


Index: llvm/lib/Transforms/Utils/LCSSA.cpp
diff -u llvm/lib/Transforms/Utils/LCSSA.cpp:1.40 
llvm/lib/Transforms/Utils/LCSSA.cpp:1.41
--- llvm/lib/Transforms/Utils/LCSSA.cpp:1.40Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Utils/LCSSA.cpp Wed May  2 20:11:54 2007
@@ -47,7 +47,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN LCSSA : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 LCSSA() : FunctionPass((intptr_t)&ID) {}
 
 // Cached analysis information for the current function.
@@ -84,7 +84,7 @@
 }
   };
   
-  const char LCSSA::ID = 0;
+  char LCSSA::ID = 0;
   RegisterPass X("lcssa", "Loop-Closed SSA Form Pass");
 }
 


Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.94 
llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.95
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.94 Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp  Wed May  2 20:11:54 2007
@@ -54,7 +54,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN LoopSimplify : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 LoopSimplify() : FunctionPass((intptr_t)&ID) {}
 
 // AA - If we have an alias analysis object to update, this is it, 
otherwise
@@ -92,7 +92,7 @@
  std::vector &PredBlocks);
   };
 
-  const char LoopSimplify::ID = 0;
+  char LoopSimplify::ID = 0;
   RegisterPass
   X("loopsimplify", "Canonicalize natural loops", true);
 }


Index: llvm/lib/Transforms/Utils/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.75 
llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.76
--- llvm/lib/Transforms/Utils/LowerAllocations.cpp:1.75 Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Utils/LowerAllocations.cpp  Wed May  2 20:11:54 2007
@@ -36,7 +36,7 @@
 Constant *FreeFunc; // Initialized by doInitialization
 bool LowerMallocArgToInteger;
   public:
-static const char ID; // Pass ID, replacement for typeid
+static char ID; // Pass ID, replacement for typeid
 LowerAllocations(bool LowerToInt = false)
   : BasicBlockPass((intptr_t)&ID), MallocFunc(0), FreeFunc(0), 
 LowerMallocArgToInteger(LowerToInt) {}
@@ -68,7 +68,7 @@
 bool runOnBasicBlock(BasicBlock &BB);
   };
 
-  const char LowerAllocations::ID = 0;
+  char LowerAllocations::ID = 0;
   RegisterPass
   X("lowerallocs", "Lower allocations from instructions to calls");
 }


Index: llvm/lib/Transforms/Utils/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.61 
llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.62
--- llvm/lib/Transforms/Utils/LowerInvoke.cpp:1.61  Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Utils/LowerInvoke.cpp   Wed May  2 20:11:54 2007
@@ -75,7 +75,7 @@
 const TargetLowering *TLI;
 
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 LowerInvoke(c

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.181 -> 1.182
---
Log message:

Drop 'const'


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

 Writer.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.181 
llvm/lib/Bytecode/Writer/Writer.cpp:1.182
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.181   Wed May  2 16:39:18 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp Wed May  2 20:11:53 2007
@@ -47,7 +47,7 @@
 /// @brief The bytecode version number
 const unsigned BCVersionNum = 7;
 
-const char WriteBytecodePass::ID = 0;
+char WriteBytecodePass::ID = 0;
 static RegisterPass X("emitbytecode", "Bytecode Writer");
 
 STATISTIC(BytesWritten, "Number of bytecode bytes written");



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/Bytecode:

WriteBytecodePass.h updated: 1.21 -> 1.22
---
Log message:

Drop 'const'


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

 WriteBytecodePass.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h
diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21 
llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.22
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h  Wed May  2 20:11:53 2007
@@ -26,7 +26,7 @@
   bool DeleteStream;
   bool CompressFile;
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
   WriteBytecodePass()
 : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), 
   CompressFile(false) {}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp ConstantMerge.cpp DeadArgumentElimination.cpp DeadTypeElimination.cpp ExtractFunction.cpp GlobalDCE.cpp GlobalOpt.cpp IPConstantPropag

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/IPO:

ArgumentPromotion.cpp updated: 1.41 -> 1.42
ConstantMerge.cpp updated: 1.41 -> 1.42
DeadArgumentElimination.cpp updated: 1.42 -> 1.43
DeadTypeElimination.cpp updated: 1.64 -> 1.65
ExtractFunction.cpp updated: 1.22 -> 1.23
GlobalDCE.cpp updated: 1.47 -> 1.48
GlobalOpt.cpp updated: 1.103 -> 1.104
IPConstantPropagation.cpp updated: 1.25 -> 1.26
IndMemRemoval.cpp updated: 1.17 -> 1.18
InlineSimple.cpp updated: 1.80 -> 1.81
Inliner.cpp updated: 1.39 -> 1.40
Inliner.h updated: 1.11 -> 1.12
Internalize.cpp updated: 1.47 -> 1.48
LoopExtractor.cpp updated: 1.26 -> 1.27
LowerSetJmp.cpp updated: 1.42 -> 1.43
PruneEH.cpp updated: 1.33 -> 1.34
RaiseAllocations.cpp updated: 1.42 -> 1.43
SimplifyLibCalls.cpp updated: 1.114 -> 1.115
StripDeadPrototypes.cpp updated: 1.7 -> 1.8
StripSymbols.cpp updated: 1.17 -> 1.18
---
Log message:

Drop 'const'


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

 ArgumentPromotion.cpp   |4 ++--
 ConstantMerge.cpp   |4 ++--
 DeadArgumentElimination.cpp |8 
 DeadTypeElimination.cpp |4 ++--
 ExtractFunction.cpp |4 ++--
 GlobalDCE.cpp   |4 ++--
 GlobalOpt.cpp   |4 ++--
 IPConstantPropagation.cpp   |4 ++--
 IndMemRemoval.cpp   |4 ++--
 InlineSimple.cpp|4 ++--
 Inliner.cpp |2 +-
 Inliner.h   |2 +-
 Internalize.cpp |4 ++--
 LoopExtractor.cpp   |   12 ++--
 LowerSetJmp.cpp |4 ++--
 PruneEH.cpp |4 ++--
 RaiseAllocations.cpp|4 ++--
 SimplifyLibCalls.cpp|4 ++--
 StripDeadPrototypes.cpp |4 ++--
 StripSymbols.cpp|4 ++--
 20 files changed, 44 insertions(+), 44 deletions(-)


Index: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff -u llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.41 
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.42
--- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.41  Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/IPO/ArgumentPromotion.cpp   Wed May  2 20:11:54 2007
@@ -63,7 +63,7 @@
 }
 
 virtual bool runOnSCC(const std::vector &SCC);
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 ArgPromotion() : CallGraphSCCPass((intptr_t)&ID) {}
 
   private:
@@ -72,7 +72,7 @@
 Function *DoPromotion(Function *F, std::vector &ArgsToPromote);
   };
 
-  const char ArgPromotion::ID = 0;
+  char ArgPromotion::ID = 0;
   RegisterPass X("argpromotion",
"Promote 'by reference' arguments to scalars");
 }


Index: llvm/lib/Transforms/IPO/ConstantMerge.cpp
diff -u llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.41 
llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.42
--- llvm/lib/Transforms/IPO/ConstantMerge.cpp:1.41  Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/IPO/ConstantMerge.cpp   Wed May  2 20:11:54 2007
@@ -29,7 +29,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN ConstantMerge : public ModulePass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 ConstantMerge() : ModulePass((intptr_t)&ID) {}
 
 // run - For this pass, process all of the globals in the module,
@@ -38,7 +38,7 @@
 bool runOnModule(Module &M);
   };
 
-  const char ConstantMerge::ID = 0;
+  char ConstantMerge::ID = 0;
   RegisterPassX("constmerge","Merge Duplicate Global 
Constants");
 }
 


Index: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.42 
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.43
--- llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.42Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp Wed May  2 20:11:54 2007
@@ -76,7 +76,7 @@
 std::multimap CallSites;
 
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 DAE() : ModulePass((intptr_t)&ID) {}
 bool runOnModule(Module &M);
 
@@ -95,17 +95,17 @@
 
 void RemoveDeadArgumentsFromFunction(Function *F);
   };
-  const char DAE::ID = 0;
+  char DAE::ID = 0;
   RegisterPass X("deadargelim", "Dead Argument Elimination");
 
   /// DAH - DeadArgumentHacking pass - Same as dead argument elimination, but
   /// deletes arguments to functions which are external.  This is only for use
   /// by bugpoint.
   struct DAH : public DAE {
-static const char ID;
+static char ID;
 virtual bool ShouldHackArguments() const { return true; }
   };
-  const char DAH::ID = 0;
+  char DAH::ID = 0;
   RegisterPass Y("deadarghaX0r",
   "Dead Argument Hacking (BUGPOINT USE ONLY; DO NOT USE)");
 }


Index: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadTypeEl

[llvm-commits] CVS: llvm/lib/Target/IA64/IA64Bundling.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Target/IA64:

IA64Bundling.cpp updated: 1.10 -> 1.11
---
Log message:

Drop 'const'


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

 IA64Bundling.cpp |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/IA64/IA64Bundling.cpp
diff -u llvm/lib/Target/IA64/IA64Bundling.cpp:1.10 
llvm/lib/Target/IA64/IA64Bundling.cpp:1.11
--- llvm/lib/Target/IA64/IA64Bundling.cpp:1.10  Wed May  2 16:39:19 2007
+++ llvm/lib/Target/IA64/IA64Bundling.cpp   Wed May  2 20:11:53 2007
@@ -36,7 +36,7 @@
 
 namespace {
   struct IA64BundlingPass : public MachineFunctionPass {
-static const char ID;
+static char ID;
 /// Target machine description which we query for reg. names, data
 /// layout, etc.
 ///
@@ -63,7 +63,7 @@
 // 'fallthrough' code
 std::set PendingRegWrites;
   };
-  const char IA64BundlingPass::ID = 0;
+  char IA64BundlingPass::ID = 0;
 } // end of anonymous namespace
 
 /// createIA64BundlingPass - Returns a pass that adds STOP (;;) instructions



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h LiveIntervalAnalysis.h LiveVariables.h MachineModuleInfo.h SelectionDAGISel.h

2007-05-02 Thread Devang Patel


Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.65 -> 1.66
LiveIntervalAnalysis.h updated: 1.82 -> 1.83
LiveVariables.h updated: 1.43 -> 1.44
MachineModuleInfo.h updated: 1.9 -> 1.10
SelectionDAGISel.h updated: 1.39 -> 1.40
---
Log message:

Drop 'const'


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

 AsmPrinter.h   |2 +-
 LiveIntervalAnalysis.h |2 +-
 LiveVariables.h|2 +-
 MachineModuleInfo.h|2 +-
 SelectionDAGISel.h |2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.65 
llvm/include/llvm/CodeGen/AsmPrinter.h:1.66
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.65 Wed May  2 16:39:18 2007
+++ llvm/include/llvm/CodeGen/AsmPrinter.h  Wed May  2 20:11:53 2007
@@ -34,7 +34,7 @@
   /// AsmPrinter - This class is intended to be used as a driving class for all
   /// asm writers.
   class AsmPrinter : public MachineFunctionPass {
-static const char ID;
+static char ID;
 
 /// FunctionNumber - This provides a unique ID for each function emitted in
 /// this translation unit.  It is autoincremented by SetupMachineFunction,


Index: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.82 
llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.83
--- llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.82   Wed May  2 
16:39:18 2007
+++ llvm/include/llvm/CodeGen/LiveIntervalAnalysis.hWed May  2 20:11:53 2007
@@ -65,7 +65,7 @@
 BitVector JoinedLIs;
 
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 LiveIntervals() : MachineFunctionPass((intptr_t)&ID) {}
 
 struct CopyRec {


Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.43 
llvm/include/llvm/CodeGen/LiveVariables.h:1.44
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.43  Wed May  2 16:39:18 2007
+++ llvm/include/llvm/CodeGen/LiveVariables.h   Wed May  2 20:11:53 2007
@@ -40,7 +40,7 @@
 
 class LiveVariables : public MachineFunctionPass {
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
   LiveVariables() : MachineFunctionPass((intptr_t)&ID) {}
 
   /// VarInfo - This represents the regions where a virtual register is live in


Index: llvm/include/llvm/CodeGen/MachineModuleInfo.h
diff -u llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.9 
llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.10
--- llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.9   Wed May  2 16:39:18 2007
+++ llvm/include/llvm/CodeGen/MachineModuleInfo.h   Wed May  2 20:11:53 2007
@@ -1022,7 +1022,7 @@
   std::vector TypeInfos;
 
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
 
   MachineModuleInfo();
   ~MachineModuleInfo();


Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.39 
llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.40
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.39   Wed May  2 16:39:18 2007
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.hWed May  2 20:11:53 2007
@@ -41,7 +41,7 @@
   MachineBasicBlock *BB;
   std::vector TopOrder;
   unsigned DAGSize;
-  static const char ID;
+  static char ID;
 
   explicit SelectionDAGISel(TargetLowering &tli) : 
 FunctionPass((intptr_t)&ID), TLI(tli), DAGSize(0) {}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp AliasDebugger.cpp AliasSetTracker.cpp BasicAliasAnalysis.cpp CFGPrinter.cpp InstCount.cpp In

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Analysis:

AliasAnalysis.cpp updated: 1.33 -> 1.34
AliasAnalysisCounter.cpp updated: 1.22 -> 1.23
AliasAnalysisEvaluator.cpp updated: 1.35 -> 1.36
AliasDebugger.cpp updated: 1.5 -> 1.6
AliasSetTracker.cpp updated: 1.48 -> 1.49
BasicAliasAnalysis.cpp updated: 1.110 -> 1.111
CFGPrinter.cpp updated: 1.24 -> 1.25
InstCount.cpp updated: 1.22 -> 1.23
IntervalPartition.cpp updated: 1.34 -> 1.35
LoadValueNumbering.cpp updated: 1.41 -> 1.42
LoopInfo.cpp updated: 1.85 -> 1.86
LoopPass.cpp updated: 1.20 -> 1.21
PostDominators.cpp updated: 1.69 -> 1.70
ProfileInfo.cpp updated: 1.14 -> 1.15
ProfileInfoLoaderPass.cpp updated: 1.20 -> 1.21
ScalarEvolution.cpp updated: 1.115 -> 1.116
ValueNumbering.cpp updated: 1.27 -> 1.28
---
Log message:

Drop 'const'


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

 AliasAnalysis.cpp  |2 +-
 AliasAnalysisCounter.cpp   |4 ++--
 AliasAnalysisEvaluator.cpp |4 ++--
 AliasDebugger.cpp  |4 ++--
 AliasSetTracker.cpp|4 ++--
 BasicAliasAnalysis.cpp |8 
 CFGPrinter.cpp |8 
 InstCount.cpp  |4 ++--
 IntervalPartition.cpp  |2 +-
 LoadValueNumbering.cpp |4 ++--
 LoopInfo.cpp   |2 +-
 LoopPass.cpp   |2 +-
 PostDominators.cpp |6 +++---
 ProfileInfo.cpp|6 +++---
 ProfileInfoLoaderPass.cpp  |4 ++--
 ScalarEvolution.cpp|2 +-
 ValueNumbering.cpp |6 +++---
 17 files changed, 36 insertions(+), 36 deletions(-)


Index: llvm/lib/Analysis/AliasAnalysis.cpp
diff -u llvm/lib/Analysis/AliasAnalysis.cpp:1.33 
llvm/lib/Analysis/AliasAnalysis.cpp:1.34
--- llvm/lib/Analysis/AliasAnalysis.cpp:1.33Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/AliasAnalysis.cpp Wed May  2 20:11:53 2007
@@ -36,7 +36,7 @@
 namespace {
   RegisterAnalysisGroup Z("Alias Analysis");
 }
-const char AliasAnalysis::ID = 0;
+char AliasAnalysis::ID = 0;
 
 
//===--===//
 // Default chaining methods


Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.22 
llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.23
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.22 Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp  Wed May  2 20:11:53 2007
@@ -34,7 +34,7 @@
 const char *Name;
 Module *M;
   public:
-static const char ID; // Class identification, replacement for typeinfo
+static char ID; // Class identification, replacement for typeinfo
 AliasAnalysisCounter() : ModulePass((intptr_t) &ID) {
   No = May = Must = 0;
   NoMR = JustRef = JustMod = MR = 0;
@@ -108,7 +108,7 @@
 }
   };
 
-  const char AliasAnalysisCounter::ID = 0;
+  char AliasAnalysisCounter::ID = 0;
   RegisterPass
   X("count-aa", "Count Alias Analysis Query Responses");
   RegisterAnalysisGroup Y(X);


Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.35 
llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.36
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.35   Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cppWed May  2 20:11:53 2007
@@ -50,7 +50,7 @@
 unsigned NoModRef, Mod, Ref, ModRef;
 
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 AAEval() : FunctionPass((intptr_t)&ID) {}
 
 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -73,7 +73,7 @@
 bool doFinalization(Module &M);
   };
 
-  const char AAEval::ID = 0;
+  char AAEval::ID = 0;
   RegisterPass
   X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator");
 }


Index: llvm/lib/Analysis/AliasDebugger.cpp
diff -u llvm/lib/Analysis/AliasDebugger.cpp:1.5 
llvm/lib/Analysis/AliasDebugger.cpp:1.6
--- llvm/lib/Analysis/AliasDebugger.cpp:1.5 Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/AliasDebugger.cpp Wed May  2 20:11:53 2007
@@ -40,7 +40,7 @@
 std::set Vals;
 
   public:
-static const char ID; // Class identification, replacement for typeinfo
+static char ID; // Class identification, replacement for typeinfo
 AliasDebugger() : ModulePass((intptr_t)&ID) {}
 
 bool runOnModule(Module &M) {
@@ -122,7 +122,7 @@
 
   };
 
-  const char AliasDebugger::ID = 0;
+  char AliasDebugger::ID = 0;
   RegisterPass X("debug-aa", "AA use debugger");
   RegisterAnalysisGroup Y(X);
 }


Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.48 
llvm/lib/Analysis/AliasSetTracker.cpp:1.49
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.48  Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/AliasSetTracker.cpp   Wed May  2 20:11:53 2007
@@ -555,7 +555,7 @@
   class VISIBILITY_HIDDEN AliasSetPrinter : public FunctionPass {
 AliasSetTracker *Tracker;
   public:
-static const

[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp CallGraph.cpp CallGraphSCCPass.cpp FindUsedTypes.cpp GlobalsModRef.cpp

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Analysis/IPA:

Andersens.cpp updated: 1.48 -> 1.49
CallGraph.cpp updated: 1.68 -> 1.69
CallGraphSCCPass.cpp updated: 1.23 -> 1.24
FindUsedTypes.cpp updated: 1.40 -> 1.41
GlobalsModRef.cpp updated: 1.31 -> 1.32
---
Log message:

Drop 'const'


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

 Andersens.cpp|4 ++--
 CallGraph.cpp|6 +++---
 CallGraphSCCPass.cpp |4 ++--
 FindUsedTypes.cpp|2 +-
 GlobalsModRef.cpp|4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)


Index: llvm/lib/Analysis/IPA/Andersens.cpp
diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.48 
llvm/lib/Analysis/IPA/Andersens.cpp:1.49
--- llvm/lib/Analysis/IPA/Andersens.cpp:1.48Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/IPA/Andersens.cpp Wed May  2 20:11:53 2007
@@ -76,7 +76,7 @@
   class VISIBILITY_HIDDEN Andersens : public ModulePass, public AliasAnalysis,
   private InstVisitor {
   public:
-static const char ID; // Class identification, replacement for typeinfo
+static char ID; // Class identification, replacement for typeinfo
 Andersens() : ModulePass((intptr_t)&ID) {}
   private:
 /// Node class - This class is used to represent a memory object in the
@@ -339,7 +339,7 @@
 void visitInstruction(Instruction &I);
   };
 
-  const char Andersens::ID = 0;
+  char Andersens::ID = 0;
   RegisterPass X("anders-aa",
 "Andersen's Interprocedural Alias Analysis");
   RegisterAnalysisGroup Y(X);


Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.68 
llvm/lib/Analysis/IPA/CallGraph.cpp:1.69
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.68Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/IPA/CallGraph.cpp Wed May  2 20:11:53 2007
@@ -51,7 +51,7 @@
   CallGraphNode *CallsExternalNode;
 
 public:
-  static const char ID; // Class identification, replacement for typeinfo
+  static char ID; // Class identification, replacement for typeinfo
   BasicCallGraph() : ModulePass((intptr_t)&ID), Root(0), 
 ExternalCallingNode(0), CallsExternalNode(0) {}
 
@@ -196,8 +196,8 @@
 
 } //End anonymous namespace
 
-const char CallGraph::ID = 0;
-const char BasicCallGraph::ID = 0;
+char CallGraph::ID = 0;
+char BasicCallGraph::ID = 0;
 
 void CallGraph::initialize(Module &M) {
   Mod = &M;


Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.23 
llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.24
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.23 Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp  Wed May  2 20:11:53 2007
@@ -30,7 +30,7 @@
 class CGPassManager : public ModulePass, public PMDataManager {
 
 public:
-  static const char ID;
+  static char ID;
   CGPassManager(int Depth) 
 : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
 
@@ -73,7 +73,7 @@
   }
 };
 
-const char CGPassManager::ID = 0;
+char CGPassManager::ID = 0;
 /// run - Execute all of the passes scheduled for execution.  Keep track of
 /// whether any of the passes modifies the module, and if so, return true.
 bool CGPassManager::runOnModule(Module &M) {


Index: llvm/lib/Analysis/IPA/FindUsedTypes.cpp
diff -u llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.40 
llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.41
--- llvm/lib/Analysis/IPA/FindUsedTypes.cpp:1.40Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/IPA/FindUsedTypes.cpp Wed May  2 20:11:53 2007
@@ -21,7 +21,7 @@
 #include "llvm/Support/InstIterator.h"
 using namespace llvm;
 
-const char FindUsedTypes::ID = 0;
+char FindUsedTypes::ID = 0;
 static RegisterPass
 X("printusedtypes", "Find Used Types");
 


Index: llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff -u llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.31 
llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.32
--- llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.31Wed May  2 16:39:18 2007
+++ llvm/lib/Analysis/IPA/GlobalsModRef.cpp Wed May  2 20:11:53 2007
@@ -83,7 +83,7 @@
 std::map FunctionInfo;
 
   public:
-static const char ID;
+static char ID;
 GlobalsModRef() : ModulePass((intptr_t)&ID) {}
 
 bool runOnModule(Module &M) {
@@ -146,7 +146,7 @@
 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
   };
 
-  const char GlobalsModRef::ID = 0;
+  char GlobalsModRef::ID = 0;
   RegisterPass X("globalsmodref-aa",
 "Simple mod/ref analysis for globals");
   RegisterAnalysisGroup Y(X);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp BasicBlockPlacement.cpp CodeGenPrepare.cpp CondPropagate.cpp ConstantProp.cpp CorrelatedExprs.cpp DCE.cpp DeadStoreElimination.cpp GCSE.cpp IndV

2007-05-02 Thread Devang Patel


Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.108 -> 1.109
BasicBlockPlacement.cpp updated: 1.11 -> 1.12
CodeGenPrepare.cpp updated: 1.8 -> 1.9
CondPropagate.cpp updated: 1.20 -> 1.21
ConstantProp.cpp updated: 1.58 -> 1.59
CorrelatedExprs.cpp updated: 1.59 -> 1.60
DCE.cpp updated: 1.65 -> 1.66
DeadStoreElimination.cpp updated: 1.19 -> 1.20
GCSE.cpp updated: 1.55 -> 1.56
IndVarSimplify.cpp updated: 1.117 -> 1.118
InstructionCombining.cpp updated: 1.756 -> 1.757
LICM.cpp updated: 1.98 -> 1.99
LoopRotation.cpp updated: 1.12 -> 1.13
LoopStrengthReduce.cpp updated: 1.133 -> 1.134
LoopUnroll.cpp updated: 1.41 -> 1.42
LoopUnswitch.cpp updated: 1.67 -> 1.68
LowerGC.cpp updated: 1.24 -> 1.25
LowerPacked.cpp updated: 1.23 -> 1.24
PredicateSimplifier.cpp updated: 1.73 -> 1.74
Reassociate.cpp updated: 1.80 -> 1.81
Reg2Mem.cpp updated: 1.14 -> 1.15
SCCP.cpp updated: 1.167 -> 1.168
ScalarReplAggregates.cpp updated: 1.92 -> 1.93
SimplifyCFG.cpp updated: 1.23 -> 1.24
TailDuplication.cpp updated: 1.39 -> 1.40
TailRecursionElimination.cpp updated: 1.32 -> 1.33
---
Log message:

Drop 'const'


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

 ADCE.cpp |4 ++--
 BasicBlockPlacement.cpp  |4 ++--
 CodeGenPrepare.cpp   |4 ++--
 CondPropagate.cpp|4 ++--
 ConstantProp.cpp |4 ++--
 CorrelatedExprs.cpp  |4 ++--
 DCE.cpp  |8 
 DeadStoreElimination.cpp |4 ++--
 GCSE.cpp |4 ++--
 IndVarSimplify.cpp   |4 ++--
 InstructionCombining.cpp |4 ++--
 LICM.cpp |4 ++--
 LoopRotation.cpp |4 ++--
 LoopStrengthReduce.cpp   |4 ++--
 LoopUnroll.cpp   |4 ++--
 LoopUnswitch.cpp |4 ++--
 LowerGC.cpp  |4 ++--
 LowerPacked.cpp  |4 ++--
 PredicateSimplifier.cpp  |4 ++--
 Reassociate.cpp  |4 ++--
 Reg2Mem.cpp  |4 ++--
 SCCP.cpp |8 
 ScalarReplAggregates.cpp |4 ++--
 SimplifyCFG.cpp  |4 ++--
 TailDuplication.cpp  |4 ++--
 TailRecursionElimination.cpp |4 ++--
 26 files changed, 56 insertions(+), 56 deletions(-)


Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.108 
llvm/lib/Transforms/Scalar/ADCE.cpp:1.109
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.108   Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/ADCE.cpp Wed May  2 20:11:54 2007
@@ -52,7 +52,7 @@
   // The public interface for this class
   //
 public:
-  static const char ID; // Pass identifcation, replacement for typeid
+  static char ID; // Pass identifcation, replacement for typeid
   ADCE() : FunctionPass((intptr_t)&ID) {}
 
   // Execute the Aggressive Dead Code Elimination Algorithm
@@ -107,7 +107,7 @@
   }
 };
 
-  const char ADCE::ID = 0;
+  char ADCE::ID = 0;
   RegisterPass X("adce", "Aggressive Dead Code Elimination");
 } // End of anonymous namespace
 


Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11 
llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.12
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11 Wed May  2 
16:39:19 2007
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp  Wed May  2 20:11:54 2007
@@ -41,7 +41,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN BlockPlacement : public FunctionPass {
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 BlockPlacement() : FunctionPass((intptr_t)&ID) {}
 
 virtual bool runOnFunction(Function &F);
@@ -73,7 +73,7 @@
 void PlaceBlocks(BasicBlock *BB);
   };
 
-  const char BlockPlacement::ID = 0;
+  char BlockPlacement::ID = 0;
   RegisterPass X("block-placement",
  "Profile Guided Basic Block Placement");
 }


Index: llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff -u llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8 
llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.9
--- llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8   Wed May  2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp   Wed May  2 20:11:54 2007
@@ -39,7 +39,7 @@
 /// transformation profitability.
 const TargetLowering *TLI;
   public:
-static const char ID; // Pass identifcation, replacement for typeid
+static char ID; // Pass identifcation, replacement for typeid
 CodeGenPrepare(const TargetLowering *tli = 0) : 
FunctionPass((intptr_t)&ID),
   TLI(tli) {}
 bool runOnFunction(Function &F);
@@ -55,7 +55,7 @@
   };
 }
 
-const char CodeGenPrepare::ID = 0;
+char CodeGenPrepare::ID = 0;
 static RegisterPass X("codegenprepare",
   "Optimize for code generation");
 


Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp
dif

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelLowering.cpp

2007-05-02 Thread Evan Cheng


Changes in directory llvm/lib/Target/ARM:

ARMISelLowering.cpp updated: 1.47 -> 1.48
---
Log message:

Typo. It's checking if V is multiple of 4, not multiple of 3. :-)

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

 ARMISelLowering.cpp |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
diff -u llvm/lib/Target/ARM/ARMISelLowering.cpp:1.47 
llvm/lib/Target/ARM/ARMISelLowering.cpp:1.48
--- llvm/lib/Target/ARM/ARMISelLowering.cpp:1.47Fri Apr 27 08:54:47 2007
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp Wed May  2 21:00:18 2007
@@ -1486,7 +1486,7 @@
   case MVT::f64:
 if (!Subtarget->hasVFP2())
   return false;
-if ((V % 3) != 0)
+if ((V & 3) != 0)
   return false;
 V >>= 2;
 return V == V & ((1LL << 8) - 1);



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] Patch for ARM/ELF debugger

2007-05-02 Thread Raul Fernandes Herbster

This patch provides ARM/ELF application debugging (DWARF format) for ARM
backend.

--
Raul Fernandes Herbster
Embedded and Pervasive Computing Laboratory - embedded.dee.ufcg.edu.br
Electrical Engineering Department - DEE - www.ee.ufcg.edu.br
Electrical Engineering and Informatics Center - CEEI
Federal University of Campina Grande - UFCG - www.ufcg.edu.br
Caixa Postal 10105
58109-970 Campina Grande - PB - Brasil
Index: lib/Target/ARM/ARMAsmPrinter.cpp
===
RCS file: /var/cvs/llvm/llvm/lib/Target/ARM/ARMAsmPrinter.cpp,v
retrieving revision 1.69
diff -u -r1.69 ARMAsmPrinter.cpp
--- lib/Target/ARM/ARMAsmPrinter.cpp	30 Apr 2007 00:23:51 -	1.69
+++ lib/Target/ARM/ARMAsmPrinter.cpp	2 May 2007 11:43:41 -
@@ -175,9 +175,7 @@
 bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   AFI = MF.getInfo();
 
-  if (Subtarget->isTargetDarwin()) {
-DW.SetModuleInfo(&getAnalysis());
-  }
+  DW.SetModuleInfo(&getAnalysis());
 
   SetupMachineFunction(MF);
   O << "\n";
@@ -231,10 +229,8 @@
 EmitAlignment(2, F);
 
   O << CurrentFnName << ":\n";
-  if (Subtarget->isTargetDarwin()) {
-// Emit pre-function debug information.
-DW.BeginFunction(&MF);
-  }
+  // Emit pre-function debug information.
+  DW.BeginFunction(&MF);
 
   // Print out code for the function.
   for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
@@ -254,10 +250,8 @@
   if (TAI->hasDotTypeDotSizeDirective())
 O << "\t.size " << CurrentFnName << ", .-" << CurrentFnName << "\n";
 
-  if (Subtarget->isTargetDarwin()) {
-// Emit post-function debug information.
-DW.EndFunction();
-  }
+  // Emit post-function debug information.
+  DW.EndFunction();
 
   return false;
 }
@@ -763,10 +757,8 @@
 }
 
 bool ARMAsmPrinter::doInitialization(Module &M) {
-  if (Subtarget->isTargetDarwin()) {
-// Emit initial debug information.
-DW.BeginModule(&M);
-  }
+  // Emit initial debug information.
+  DW.BeginModule(&M);
   
   return AsmPrinter::doInitialization(M);
 }
@@ -992,6 +984,9 @@
 // linker can safely perform dead code stripping.  Since LLVM never
 // generates code that does this, it is always safe to set.
 O << "\t.subsections_via_symbols\n";
+  } else {
+// Emit final debug information for ELF.
+DW.EndModule();
   }
 
   AsmPrinter::doFinalization(M);
Index: lib/Target/ARM/ARMISelLowering.cpp
===
RCS file: /var/cvs/llvm/llvm/lib/Target/ARM/ARMISelLowering.cpp,v
retrieving revision 1.47
diff -u -r1.47 ARMISelLowering.cpp
--- lib/Target/ARM/ARMISelLowering.cpp	27 Apr 2007 13:54:47 -	1.47
+++ lib/Target/ARM/ARMISelLowering.cpp	2 May 2007 11:43:41 -
@@ -178,9 +178,6 @@
   // Support label based line numbers.
   setOperationAction(ISD::LOCATION, MVT::Other, Expand);
   setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
-  // FIXME - use subtarget debug flags
-  if (!Subtarget->isTargetDarwin())
-setOperationAction(ISD::LABEL, MVT::Other, Expand);
 
   setOperationAction(ISD::RET,   MVT::Other, Custom);
   setOperationAction(ISD::GlobalAddress, MVT::i32,   Custom);
Index: lib/Target/ARM/ARMRegisterInfo.cpp
===
RCS file: /var/cvs/llvm/llvm/lib/Target/ARM/ARMRegisterInfo.cpp,v
retrieving revision 1.92
diff -u -r1.92 ARMRegisterInfo.cpp
--- lib/Target/ARM/ARMRegisterInfo.cpp	1 May 2007 09:13:03 -	1.92
+++ lib/Target/ARM/ARMRegisterInfo.cpp	2 May 2007 11:43:41 -
@@ -1373,6 +1373,11 @@
 emitSPUpdate(MBB, MBBI, -NumBytes, isThumb, TII);
   }
 
+  if(STI.isTargetELF() && hasFP(MF)) {
+MFI->setOffsetAdjustment(MFI->getOffsetAdjustment() -
+ AFI->getFramePtrSpillOffset());
+  }
+
   AFI->setGPRCalleeSavedArea1Size(GPRCS1Size);
   AFI->setGPRCalleeSavedArea2Size(GPRCS2Size);
   AFI->setDPRCalleeSavedAreaSize(DPRCSSize);
Index: lib/Target/ARM/ARMTargetAsmInfo.cpp
===
RCS file: /var/cvs/llvm/llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp,v
retrieving revision 1.19
diff -u -r1.19 ARMTargetAsmInfo.cpp
--- lib/Target/ARM/ARMTargetAsmInfo.cpp	2 May 2007 01:02:40 -	1.19
+++ lib/Target/ARM/ARMTargetAsmInfo.cpp	2 May 2007 11:43:41 -
@@ -63,8 +63,25 @@
 DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
   } else {
+NeedsSet = false;
+HasLEB128 = true;
+AbsoluteSectionOffsets = true;
+ReadOnlySection = "\t.section\t.rodata\n";
 PrivateGlobalPrefix = ".L";
 WeakRefDirective = "\t.weak\t";
+DwarfRequiresFrameSection = false;
+DwarfAbbrevSection =  "\t.section\t.debug_abbrev,\"\",%progbits";
+DwarfInfoSection ="\t.section\t.debug_info,\"\",%progbits";
+DwarfLineSection ="\t.section\t.debug_line,\"\",%progbits";
+DwarfFrameSection =   "\t.

[llvm-commits] minor bugs in STLExtras.h and GraphWriter.cpp

2007-05-02 Thread Florian Brandner
This is a patch to fix a compile error in STLExtras.h, and
a bug in GraphWriter.cpp.

cheers,
florian

ps: i'm not subscribed to the commits list, so please cc me in replies.
Index: include/llvm/ADT/STLExtras.h
===
RCS file: /var/cvs/llvm/llvm/include/llvm/ADT/STLExtras.h,v
retrieving revision 1.21
diff -t -d -u -p -5 -r1.21 STLExtras.h
--- include/llvm/ADT/STLExtras.h	21 Apr 2005 20:13:50 -	1.21
+++ include/llvm/ADT/STLExtras.h	2 May 2007 09:46:04 -
@@ -69,11 +69,11 @@ public:
   typedef void reference;// Can't modify value returned by fn
 
   typedef RootIt iterator_type;
   typedef mapped_iterator _Self;
 
-  inline RootIt &getCurrent() const { return current; }
+  inline const RootIt &getCurrent() const { return current; }
 
   inline explicit mapped_iterator(const RootIt &I, UnaryFunc F)
 : current(I), Fn(F) {}
   inline mapped_iterator(const mapped_iterator &It)
 : current(It.current), Fn(It.Fn) {}
Index: lib/Support/GraphWriter.cpp
===
RCS file: /var/cvs/llvm/llvm/lib/Support/GraphWriter.cpp,v
retrieving revision 1.8
diff -t -d -u -p -5 -r1.8 GraphWriter.cpp
--- lib/Support/GraphWriter.cpp	16 Feb 2007 19:11:06 -	1.8
+++ lib/Support/GraphWriter.cpp	2 May 2007 09:46:04 -
@@ -68,10 +68,11 @@ void llvm::DisplayGraph(const sys::Path 
   PSFilename.eraseFromDisk();
 #elif HAVE_DOTTY
   sys::Path dotty(LLVM_PATH_DOTTY);
 
   std::vector args;
+  args.push_back(dotty.c_str());
   args.push_back(Filename.c_str());
   args.push_back(0);
   
   cerr << "Running 'dotty' program... " << std::flush;
   if (sys::Program::ExecuteAndWait(dotty, &args[0],0,0,0,0,&ErrMsg)) {
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp

2007-05-02 Thread Chris Lattner


Changes in directory llvm/lib/Target/CBackend:

CBackend.cpp updated: 1.342 -> 1.343
---
Log message:

revert reid's patch to fix these failures:
test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll for PR1099: 
http://llvm.org/PR1099  [DEJAGNU]
Applications/SPASS/SPASS [CBE] 
Regression/C/2004-03-15-IndirectGoto [CBE] 



---
Diffs of the changes:  (+28 -100)

 CBackend.cpp |  128 ---
 1 files changed, 28 insertions(+), 100 deletions(-)


Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.342 
llvm/lib/Target/CBackend/CBackend.cpp:1.343
--- llvm/lib/Target/CBackend/CBackend.cpp:1.342 Wed May  2 20:11:53 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp   Wed May  2 21:57:13 2007
@@ -412,29 +412,6 @@
   }
 }
 
-#define IMPL_SIGN_EXTENSION(OpTy, Func) { \
-  const IntegerType* IntTy = cast(OpTy); \
-  unsigned BitWidth = IntTy->getBitWidth(); \
-  if (BitWidth != 8 && BitWidth != 16 && BitWidth != 32 && \
-  BitWidth != 64 && BitWidth != 128) { \
-const char * Suffix; \
-if (BitWidth <=32)\
-  Suffix = "U"; \
-else \
-  Suffix = "ULL"; \
-Out << "("; \
-Func; \
-Out << " & (1" << Suffix << " << " << BitWidth - 1 << " ) ? "; \
-Func; \
-Out << " | " << (~IntTy->getBitMask()) << Suffix << " : "; \
-Func; \
-Out << " & " << IntTy->getBitMask() << Suffix; \
-Out << ")";\
-   } \
-  else \
-Func; \
-  }
-
 // Pass the Type* and the variable name and this prints out the variable
 // declaration.
 //
@@ -734,39 +711,23 @@
 case Instruction::BitCast:
   Out << "(";
   printCast(CE->getOpcode(), CE->getOperand(0)->getType(), CE->getType());
-   if (CE->getOpcode() == Instruction::Trunc ||
-   CE->getOpcode() == Instruction::FPToUI ||
-   CE->getOpcode() == Instruction::FPToSI ||
-   CE->getOpcode() == Instruction::PtrToInt) {
-if (const IntegerType* IntTy = dyn_cast(CE->getType())) {
-  uint64_t BitMask = IntTy->getBitMask();
-  printConstant(CE->getOperand(0));
-  Out << "&" << BitMask << (IntTy->getBitWidth() <=32 ? "U": "ULL");
-}
-  }
-  else if (CE->getOpcode() == Instruction::SExt &&
-   CE->getOperand(0)->getType() == Type::Int1Ty) {
+  if (CE->getOpcode() == Instruction::SExt &&
+  CE->getOperand(0)->getType() == Type::Int1Ty) {
 // Make sure we really sext from bool here by subtracting from 0
 Out << "0-";
-printConstant(CE->getOperand(0));
   }
-  else if (CE->getOpcode() == Instruction::SExt &&
-   CE->getOperand(0)->getType()->getTypeID() == Type::IntegerTyID) 
{
- IMPL_SIGN_EXTENSION(CE->getOperand(0)->getType(),
- printConstant(CE->getOperand(0)));
-   }
-   else if (CE->getOpcode() == Instruction::ZExt &&
-CE->getOperand(0)->getType()->getTypeID() == 
Type::IntegerTyID){
- const IntegerType* IntTy = 
-   cast(CE->getOperand(0)->getType());
- uint64_t BitMask = IntTy->getBitMask();
- writeOperand(CE->getOperand(0));
- Out << "&" << BitMask << (IntTy->getBitWidth() <=32 ? "U": "ULL");
-   }
-   else
- printConstant(CE->getOperand(0));
-  Out << ")";
+  printConstant(CE->getOperand(0));
+  if (CE->getType() == Type::Int1Ty &&
+  (CE->getOpcode() == Instruction::Trunc ||
+   CE->getOpcode() == Instruction::FPToUI ||
+   CE->getOpcode() == Instruction::FPToSI ||
+   CE->getOpcode() == Instruction::PtrToInt)) {
+// Make sure we really truncate to bool here by anding with 1
+Out << "&1u";
+  }
+  Out << ')';
   return;
+
 case Instruction::GetElementPtr:
   Out << "(&(";
   printIndexingExpression(CE->getOperand(0), gep_type_begin(CPV),
@@ -1267,11 +1228,7 @@
 Out << "((";
 printSimpleType(Out, OpTy, castIsSigned);
 Out << ")";
-if (castIsSigned && OpTy->getTypeID() == Type::IntegerTyID) {
-  IMPL_SIGN_EXTENSION(OpTy, writeOperand(Operand));
-}
-else
-  writeOperand(Operand);
+writeOperand(Operand);
 Out << ")";
   } else 
 writeOperand(Operand);
@@ -1296,9 +1253,7 @@
   switch (predicate) {
 default:
   // for eq and ne, it doesn't matter
-  break;
-case ICmpInst::ICMP_EQ:
-case ICmpInst::ICMP_NE:
+  break; 
 case ICmpInst::ICMP_UGT:
 case ICmpInst::ICMP_UGE:
 case ICmpInst::ICMP_ULT:
@@ -1323,25 +1278,10 @@
 else
   printType(Out, OpTy); // not integer, sign doesn't matter
 Out << ")";
-if(castIsSigned && OpTy->getTypeID() == Type::IntegerTyID) {
-  IMPL_SIGN_EXTENSION(OpTy, writeOperand(Operand));
-} else {
-  writeOperand(Operand);
-  if(OpTy->getTypeID() == Type::IntegerTyID){
-const IntegerType * 

Re: [llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp

2007-05-02 Thread Reid Spencer
Leo,

Looks like Chris didn't wait very long before reverting the CBE patch.  Please 
try your patch again. It *must* pass all of llvm/test and llvm-test to be 
accepted.

Thanks,

Reid.

On Wed, 2 May 2007 21:57:31 -0500
 Chris Lattner <[EMAIL PROTECTED]> wrote:
>
>
>Changes in directory llvm/lib/Target/CBackend:
>
>CBackend.cpp updated: 1.342 -> 1.343
>---
>Log message:
>
>revert reid's patch to fix these failures:
>test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll for PR1099: 
>http://llvm.org/PR1099  [DEJAGNU]
>Applications/SPASS/SPASS [CBE] 
>Regression/C/2004-03-15-IndirectGoto [CBE] 
>
>
>
>---
>Diffs of the changes:  (+28 -100)
>
> CBackend.cpp |  128 
> ---
> 1 files changed, 28 insertions(+), 100 deletions(-)
>
>
>Index: llvm/lib/Target/CBackend/CBackend.cpp
>diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.342 
>llvm/lib/Target/CBackend/CBackend.cpp:1.343
>--- llvm/lib/Target/CBackend/CBackend.cpp:1.342Wed May  2 20:11:53 2007
>+++ llvm/lib/Target/CBackend/CBackend.cpp  Wed May  2 21:57:13 2007
>@@ -412,29 +412,6 @@
>   }
> }
> 
>-#define IMPL_SIGN_EXTENSION(OpTy, Func) { \
>-  const IntegerType* IntTy = cast(OpTy); \
>-  unsigned BitWidth = IntTy->getBitWidth(); \
>-  if (BitWidth != 8 && BitWidth != 16 && BitWidth != 32 && \
>-  BitWidth != 64 && BitWidth != 128) { \
>-const char * Suffix; \
>-if (BitWidth <=32)\
>-  Suffix = "U"; \
>-else \
>-  Suffix = "ULL"; \
>-Out << "("; \
>-Func; \
>-Out << " & (1" << Suffix << " << " << BitWidth - 1 << " ) ? "; \
>-Func; \
>-Out << " | " << (~IntTy->getBitMask()) << Suffix << " : "; \
>-Func; \
>-Out << " & " << IntTy->getBitMask() << Suffix; \
>-Out << ")";\
>-   } \
>-  else \
>-Func; \
>-  }
>-
> // Pass the Type* and the variable name and this prints out the variable
> // declaration.
> //
>@@ -734,39 +711,23 @@
> case Instruction::BitCast:
>   Out << "(";
>   printCast(CE->getOpcode(), CE->getOperand(0)->getType(), CE->getType());
>-   if (CE->getOpcode() == Instruction::Trunc ||
>-   CE->getOpcode() == Instruction::FPToUI ||
>-   CE->getOpcode() == Instruction::FPToSI ||
>-   CE->getOpcode() == Instruction::PtrToInt) {
>-if (const IntegerType* IntTy = dyn_cast(CE->getType())) {
>-  uint64_t BitMask = IntTy->getBitMask();
>-  printConstant(CE->getOperand(0));
>-  Out << "&" << BitMask << (IntTy->getBitWidth() <=32 ? "U": "ULL");
>-}
>-  }
>-  else if (CE->getOpcode() == Instruction::SExt &&
>-   CE->getOperand(0)->getType() == Type::Int1Ty) {
>+  if (CE->getOpcode() == Instruction::SExt &&
>+  CE->getOperand(0)->getType() == Type::Int1Ty) {
> // Make sure we really sext from bool here by subtracting from 0
> Out << "0-";
>-printConstant(CE->getOperand(0));
>   }
>-  else if (CE->getOpcode() == Instruction::SExt &&
>-   CE->getOperand(0)->getType()->getTypeID() == 
>Type::IntegerTyID) {
>- IMPL_SIGN_EXTENSION(CE->getOperand(0)->getType(),
>- printConstant(CE->getOperand(0)));
>-   }
>-   else if (CE->getOpcode() == Instruction::ZExt &&
>-CE->getOperand(0)->getType()->getTypeID() == 
>Type::IntegerTyID){
>- const IntegerType* IntTy = 
>-   cast(CE->getOperand(0)->getType());
>- uint64_t BitMask = IntTy->getBitMask();
>- writeOperand(CE->getOperand(0));
>- Out << "&" << BitMask << (IntTy->getBitWidth() <=32 ? "U": "ULL");
>-   }
>-   else
>- printConstant(CE->getOperand(0));
>-  Out << ")";
>+  printConstant(CE->getOperand(0));
>+  if (CE->getType() == Type::Int1Ty &&
>+  (CE->getOpcode() == Instruction::Trunc ||
>+   CE->getOpcode() == Instruction::FPToUI ||
>+   CE->getOpcode() == Instruction::FPToSI ||
>+   CE->getOpcode() == Instruction::PtrToInt)) {
>+// Make sure we really truncate to bool here by anding with 1
>+Out << "&1u";
>+  }
>+  Out << ')';
>   return;
>+
> case Instruction::GetElementPtr:
>   Out << "(&(";
>   printIndexingExpression(CE->getOperand(0), gep_type_begin(CPV),
>@@ -1267,11 +1228,7 @@
> Out << "((";
> printSimpleType(Out, OpTy, castIsSigned);
> Out << ")";
>-if (castIsSigned && OpTy->getTypeID() == Type::IntegerTyID) {
>-  IMPL_SIGN_EXTENSION(OpTy, writeOperand(Operand));
>-}
>-else
>-  writeOperand(Operand);
>+writeOperand(Operand);
> Out << ")";
>   } else 
> writeOperand(Operand);
>@@ -1296,9 +1253,7 @@
>   switch (predicate) {
> default:
>   // for eq and ne, it doesn't matter
>-  break;
>-case ICmpInst::ICMP_EQ:
>-case ICmpInst::ICMP_NE:
>+  break; 
> case ICmpInst::ICMP_UGT:
> case ICmp

  1   2   >