[llvm-commits] CVS: llvm/lib/VMCore/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/VMCore:

Makefile updated: 1.16 -> 1.17
---
Log message:

Fix PR835: http://llvm.org/PR835  so that touching tblgen in a way that doesn't 
affect intrinsic 
generation does not rebuild files that just use intrinsic info.


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

 Makefile |7 +--
 1 files changed, 5 insertions(+), 2 deletions(-)


Index: llvm/lib/VMCore/Makefile
diff -u llvm/lib/VMCore/Makefile:1.16 llvm/lib/VMCore/Makefile:1.17
--- llvm/lib/VMCore/Makefile:1.16   Wed May 31 20:30:26 2006
+++ llvm/lib/VMCore/MakefileThu Jul 20 11:44:21 2006
@@ -19,10 +19,13 @@
 INTRINSICTD  := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td
 INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td)
 
-$(GENFILE): $(INTRINSICTDS) $(TBLGEN)
-   $(Echo) Building Intrinsics.gen from Intrinsics.td
+$(ObjDir)/Intrinsics.gen.tmp: $(INTRINSICTDS) $(TBLGEN)
+   $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
$(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic
 
+$(GENFILE): $(ObjDir)/Intrinsics.gen.tmp
+   $(Verb) $(CMP) -s $@ $< || $(CP) $< $@
+
 install-local:: $(GENFILE)
$(Echo) Installing $(PROJ_includedir)/llvm/Intrinsics.gen
$(Verb) $(DataInstall) $(GENFILE) $(PROJ_includedir)/llvm/Intrinsics.gen



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


[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl

2006-07-20 Thread Patrick Jenkins


Changes in directory llvm/utils:

NewNightlyTest.pl updated: 1.16 -> 1.17
---
Log message:

Fixed a problem that caused the script to abort right before it sent out the 
information


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

 NewNightlyTest.pl |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.16 llvm/utils/NewNightlyTest.pl:1.17
--- llvm/utils/NewNightlyTest.pl:1.16   Wed Jul 19 12:52:51 2006
+++ llvm/utils/NewNightlyTest.plThu Jul 20 11:54:43 2006
@@ -979,7 +979,7 @@
 @DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog";
 $dejagnulog_full = join("\n", @DEJAGNULOG_FULL);
 
-newmy $gcc_version_long="";
+my $gcc_version_long="";
 if($GCCPATH ne ""){
   $gcc_version_long = `$GCCPATH/gcc --version`;
   print "$GCCPATH/gcc --version\n";



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


[llvm-commits] CVS: llvm/tools/llc/Makefile

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/tools/llc:

Makefile updated: 1.84 -> 1.85
---
Log message:

Fix linking on Alpha

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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.84 llvm/tools/llc/Makefile:1.85
--- llvm/tools/llc/Makefile:1.84Thu Jul  6 19:46:18 2006
+++ llvm/tools/llc/Makefile Thu Jul 20 12:27:58 2006
@@ -56,7 +56,7 @@
 
 USEDLIBS += \
LLVMSelectionDAG \
-   LLVMCodeGen \
+   LLVMCodeGen.a \
LLVMTarget.a \
LLVMipa.a \
LLVMTransforms.a \



___
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/DAGCombiner.cpp ScheduleDAGList.cpp

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.174 -> 1.175
ScheduleDAGList.cpp updated: 1.61 -> 1.62
---
Log message:

Reduce number of exported symbols

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

 DAGCombiner.cpp |2 +-
 ScheduleDAGList.cpp |4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.174 
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.175
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.174 Wed Jun 28 16:58:30 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp   Thu Jul 20 12:28:38 2006
@@ -42,7 +42,7 @@
 using namespace llvm;
 
 namespace {
-  Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
+  static Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes 
combined");
 
   class VISIBILITY_HIDDEN DAGCombiner {
 SelectionDAG &DAG;


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.61 
llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.62
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.61  Wed Jun 28 
17:17:39 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp   Thu Jul 20 12:28:38 2006
@@ -34,8 +34,8 @@
 using namespace llvm;
 
 namespace {
-  Statistic<> NumNoops ("scheduler", "Number of noops inserted");
-  Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
+  static Statistic<> NumNoops ("scheduler", "Number of noops inserted");
+  static Statistic<> NumStalls("scheduler", "Number of pipeline stalls");
 }
 
 namespace {



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


[llvm-commits] CVS: llvm/lib/CodeGen/Makefile

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/lib/CodeGen:

Makefile updated: 1.27 -> 1.28
---
Log message:

Fix linking on Alpha

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

 Makefile |1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/Makefile
diff -u llvm/lib/CodeGen/Makefile:1.27 llvm/lib/CodeGen/Makefile:1.28
--- llvm/lib/CodeGen/Makefile:1.27  Thu Jun  1 01:12:21 2006
+++ llvm/lib/CodeGen/Makefile   Thu Jul 20 12:27:58 2006
@@ -10,6 +10,7 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMCodeGen
 PARALLEL_DIRS = SelectionDAG
+BUILD_ARCHIVE = 1
 
 include $(LEVEL)/Makefile.common
 



___
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 PHIElimination.cpp Passes.cpp RegAllocLinearScan.cpp RegAllocLocal.cpp RegAllocSimple.cpp TwoAddressInstructionPass.cpp VirtRegMap.cpp

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.161 -> 1.162
PHIElimination.cpp updated: 1.42 -> 1.43
Passes.cpp updated: 1.16 -> 1.17
RegAllocLinearScan.cpp updated: 1.124 -> 1.125
RegAllocLocal.cpp updated: 1.80 -> 1.81
RegAllocSimple.cpp updated: 1.68 -> 1.69
TwoAddressInstructionPass.cpp updated: 1.35 -> 1.36
VirtRegMap.cpp updated: 1.67 -> 1.68
---
Log message:

Reduce number of exported symbols

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

 LiveIntervalAnalysis.cpp  |   12 ++--
 PHIElimination.cpp|4 ++--
 Passes.cpp|2 +-
 RegAllocLinearScan.cpp|5 +++--
 RegAllocLocal.cpp |8 
 RegAllocSimple.cpp|4 ++--
 TwoAddressInstructionPass.cpp |6 +++---
 VirtRegMap.cpp|   14 +++---
 8 files changed, 28 insertions(+), 27 deletions(-)


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.161 
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.162
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.161 Wed May 24 12:04:04 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp   Thu Jul 20 12:28:38 2006
@@ -40,22 +40,22 @@
 namespace {
   RegisterAnalysis X("liveintervals", "Live Interval Analysis");
 
-  Statistic<> numIntervals
+  static Statistic<> numIntervals
   ("liveintervals", "Number of original intervals");
 
-  Statistic<> numIntervalsAfter
+  static Statistic<> numIntervalsAfter
   ("liveintervals", "Number of intervals after coalescing");
 
-  Statistic<> numJoins
+  static Statistic<> numJoins
   ("liveintervals", "Number of interval joins performed");
 
-  Statistic<> numPeep
+  static Statistic<> numPeep
   ("liveintervals", "Number of identity moves eliminated after coalescing");
 
-  Statistic<> numFolded
+  static Statistic<> numFolded
   ("liveintervals", "Number of loads/stores folded into instructions");
 
-  cl::opt
+  static cl::opt
   EnableJoining("join-liveintervals",
 cl::desc("Join compatible live intervals"),
 cl::init(true));


Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.42 
llvm/lib/CodeGen/PHIElimination.cpp:1.43
--- llvm/lib/CodeGen/PHIElimination.cpp:1.42Wed Jun 28 18:17:23 2006
+++ llvm/lib/CodeGen/PHIElimination.cpp Thu Jul 20 12:28:38 2006
@@ -29,8 +29,8 @@
 using namespace llvm;
 
 namespace {
-  Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
-  Statistic<> NumSimple("phielim", "Number of simple phis lowered");
+  static Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
+  static Statistic<> NumSimple("phielim", "Number of simple phis lowered");
   
   struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
 bool runOnMachineFunction(MachineFunction &Fn) {


Index: llvm/lib/CodeGen/Passes.cpp
diff -u llvm/lib/CodeGen/Passes.cpp:1.16 llvm/lib/CodeGen/Passes.cpp:1.17
--- llvm/lib/CodeGen/Passes.cpp:1.16Sun Oct 23 23:14:30 2005
+++ llvm/lib/CodeGen/Passes.cpp Thu Jul 20 12:28:38 2006
@@ -20,7 +20,7 @@
 namespace {
   enum RegAllocName { simple, local, linearscan };
 
-  cl::opt
+  static cl::opt
   RegAlloc(
 "regalloc",
 cl::desc("Register allocator to use: (default = linearscan)"),


Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.124 
llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.125
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.124   Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Thu Jul 20 12:28:38 2006
@@ -37,9 +37,10 @@
 
 namespace {
 
-  Statistic efficiency
+  static Statistic efficiency
   ("regalloc", "Ratio of intervals processed over total intervals");
-  Statistic<> NumBacktracks("regalloc", "Number of times we had to backtrack");
+  static Statistic<> NumBacktracks
+  ("regalloc", "Number of times we had to backtrack");
 
   static unsigned numIterations = 0;
   static unsigned numIntervals = 0;


Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.80 
llvm/lib/CodeGen/RegAllocLocal.cpp:1.81
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.80 Wed Jun 28 18:17:23 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp  Thu Jul 20 12:28:38 2006
@@ -31,10 +31,10 @@
 using namespace llvm;
 
 namespace {
-  Statistic<> NumStores("ra-local", "Number of stores added");
-  Statistic<> NumLoads ("ra-local", "Number of loads added");
-  Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
-"instructions");
+  static Statistic<> NumStores("ra-local", "Number of stores added");
+  static Statistic<> NumLoads ("ra-local", "Number of loads added");
+  static Statistic<> NumFolded("ra-local", "Number of loads/stores folded into 
"
+   "instructions");
   class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
 const TargetMachine *TM;
 MachineFunction *MF;


Index: llvm/lib/CodeGen/R

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

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm:

Makefile.rules updated: 1.385 -> 1.386
---
Log message:

Fix linking on Alpha

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

 Makefile.rules |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.385 llvm/Makefile.rules:1.386
--- llvm/Makefile.rules:1.385   Tue Jul 11 13:33:50 2006
+++ llvm/Makefile.rules Thu Jul 20 12:27:58 2006
@@ -253,8 +253,8 @@
 
 #Make Floating point ieee complient on alpha
 ifeq ($(ARCH),Alpha)
-  CXX.Flags += -mieee
-  CPP.BaseFlags += -mieee
+  CXX.Flags += -mieee -fPIC
+  CPP.BaseFlags += -mieee -fPIC
 endif
 
 #
@@ -609,7 +609,7 @@
 Link += -dlopen self
 
 # Generic JIT libraries
-JIT_LIBS := LLVMInterpreter LLVMJIT LLVMCodeGen LLVMExecutionEngine
+JIT_LIBS := LLVMInterpreter LLVMJIT LLVMCodeGen.a LLVMExecutionEngine
 
 # You can enable the X86 JIT on a non-X86 host by setting the flag
 # ENABLE_X86_JIT on the make command line. If not, it will still be



___
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/DAGCombiner.cpp

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.175 -> 1.176
---
Log message:

80 cols

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

 DAGCombiner.cpp |3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.175 
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.176
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.175 Thu Jul 20 12:28:38 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp   Thu Jul 20 12:43:27 2006
@@ -42,7 +42,8 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes 
combined");
+  static Statistic<> NodesCombined ("dagcombiner", 
+   "Number of dag nodes combined");
 
   class VISIBILITY_HIDDEN DAGCombiner {
 SelectionDAG &DAG;



___
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/IPO.h

2006-07-20 Thread Devang Patel


Changes in directory llvm/include/llvm/Transforms:

IPO.h updated: 1.45 -> 1.46
---
Log message:

Add new constructor to accept vector of exported names while creating
InternalizePass.


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

 IPO.h |1 +
 1 files changed, 1 insertion(+)


Index: llvm/include/llvm/Transforms/IPO.h
diff -u llvm/include/llvm/Transforms/IPO.h:1.45 
llvm/include/llvm/Transforms/IPO.h:1.46
--- llvm/include/llvm/Transforms/IPO.h:1.45 Mon Apr 10 14:26:09 2006
+++ llvm/include/llvm/Transforms/IPO.h  Thu Jul 20 12:48:05 2006
@@ -117,6 +117,7 @@
 /// the main function is found, all other globals are marked as internal.
 ///
 ModulePass *createInternalizePass(bool InternalizeEverything);
+ModulePass *createInternalizePass(const std::vector &exportList);
 
 
//===--===//
 /// createDeadArgEliminationPass - This pass removes arguments from functions



___
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/Internalize.cpp

2006-07-20 Thread Devang Patel


Changes in directory llvm/lib/Transforms/IPO:

Internalize.cpp updated: 1.32 -> 1.33
---
Log message:

Add new constructor to accept vector of exported names while creating
InternalizePass.


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

 Internalize.cpp |   12 
 1 files changed, 12 insertions(+)


Index: llvm/lib/Transforms/IPO/Internalize.cpp
diff -u llvm/lib/Transforms/IPO/Internalize.cpp:1.32 
llvm/lib/Transforms/IPO/Internalize.cpp:1.33
--- llvm/lib/Transforms/IPO/Internalize.cpp:1.32Tue Mar  7 14:53:47 2006
+++ llvm/lib/Transforms/IPO/Internalize.cpp Thu Jul 20 12:48:05 2006
@@ -45,6 +45,7 @@
 bool DontInternalize;
   public:
 InternalizePass(bool InternalizeEverything = true);
+InternalizePass(const std::vector & exportList);
 void LoadFile(const char *Filename);
 virtual bool runOnModule(Module &M);
   };
@@ -62,6 +63,13 @@
 DontInternalize = true;
 }
 
+InternalizePass::InternalizePass(const std::vector&exportList) {
+  for(std::vector::const_iterator itr = exportList.begin();
+   itr != exportList.end(); itr++) {
+ExternalNames.insert(*itr);
+  }
+}
+
 void InternalizePass::LoadFile(const char *Filename) {
   // Load the APIFile...
   std::ifstream In(Filename);
@@ -151,3 +159,7 @@
 ModulePass *llvm::createInternalizePass(bool InternalizeEverything) {
   return new InternalizePass(InternalizeEverything);
 }
+
+ModulePass *llvm::createInternalizePass(const std::vector  
&exportList) {
+  return new InternalizePass(exportList);
+}



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


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

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/lib/CodeGen:

RegAllocLocal.cpp updated: 1.81 -> 1.82
---
Log message:

80 cols

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

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


Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.81 
llvm/lib/CodeGen/RegAllocLocal.cpp:1.82
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.81 Thu Jul 20 12:28:38 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp  Thu Jul 20 12:43:27 2006
@@ -33,8 +33,8 @@
 namespace {
   static Statistic<> NumStores("ra-local", "Number of stores added");
   static Statistic<> NumLoads ("ra-local", "Number of loads added");
-  static Statistic<> NumFolded("ra-local", "Number of loads/stores folded into 
"
-   "instructions");
+  static Statistic<> NumFolded("ra-local", "Number of loads/stores folded "
+  "into instructions");
   class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
 const TargetMachine *TM;
 MachineFunction *MF;



___
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/Internalize.cpp

2006-07-20 Thread Devang Patel


Changes in directory llvm/lib/Transforms/IPO:

Internalize.cpp updated: 1.33 -> 1.34
---
Log message:

Make it fit into 80 cols.


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

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


Index: llvm/lib/Transforms/IPO/Internalize.cpp
diff -u llvm/lib/Transforms/IPO/Internalize.cpp:1.33 
llvm/lib/Transforms/IPO/Internalize.cpp:1.34
--- llvm/lib/Transforms/IPO/Internalize.cpp:1.33Thu Jul 20 12:48:05 2006
+++ llvm/lib/Transforms/IPO/Internalize.cpp Thu Jul 20 13:03:39 2006
@@ -160,6 +160,6 @@
   return new InternalizePass(InternalizeEverything);
 }
 
-ModulePass *llvm::createInternalizePass(const std::vector  
&exportList) {
-  return new InternalizePass(exportList);
+ModulePass *llvm::createInternalizePass(const std::vector  &el) {
+  return new InternalizePass(el);
 }



___
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

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.258 -> 1.259
---
Log message:

Mems can be in the output list also.  This is the second half of a fix for
PR833: http://llvm.org/PR833 


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

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.258 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.259
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.258Wed Jun 28 
18:17:23 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Thu Jul 20 14:02:21 2006
@@ -2167,7 +2167,8 @@
   // Advance to the next operand.
   unsigned NumOps = 
 cast(AsmNodeOperands[CurOp])->getValue();
-  assert((NumOps & 7) == 2 /*REGDEF*/ &&
+  assert(((NumOps & 7) == 2 /*REGDEF*/ ||
+  (NumOps & 7) == 4 /*MEM*/) &&
  "Skipped past definitions?");
   CurOp += (NumOps>>3)+1;
 }



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


[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/2006-07-20-InlineAsm.ll

2006-07-20 Thread Chris Lattner


Changes in directory llvm/test/Regression/CodeGen/X86:

2006-07-20-InlineAsm.ll added (r1.1)
---
Log message:

New testcase for PR833: http://llvm.org/PR833 


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

 2006-07-20-InlineAsm.ll |   24 
 1 files changed, 24 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/2006-07-20-InlineAsm.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2006-07-20-InlineAsm.ll:1.1
*** /dev/null   Thu Jul 20 14:04:46 2006
--- llvm/test/Regression/CodeGen/X86/2006-07-20-InlineAsm.llThu Jul 20 
14:04:36 2006
***
*** 0 
--- 1,24 
+ ; RUN: llvm-as < %s | llc -march=x86
+ ; PR833
+ 
+ %G = weak global int 0;  [#uses=3]
+ 
+ implementation   ; Functions:
+ 
+ int %foo(int %X) {
+ entry:
+   %X_addr = alloca int;  [#uses=3]
+   store int %X, int* %X_addr
+   call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", 
"==m,==r,m,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int* %G, int 
%X )
+   %tmp1 = load int* %X_addr   ;  [#uses=1]
+   ret int %tmp1
+ }
+ 
+ int %foo2(int %X) {
+ entry:
+   %X_addr = alloca int;  [#uses=3]
+   store int %X, int* %X_addr
+   call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", 
"==m,==r,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int %X )
+   %tmp1 = load int* %X_addr   ;  [#uses=1]
+   ret int %tmp1
+ }



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


[llvm-commits] CVS: llvm/lib/VMCore/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/VMCore:

Makefile updated: 1.17 -> 1.18
---
Log message:

Fix a race condition in the makefile andrew reported


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

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


Index: llvm/lib/VMCore/Makefile
diff -u llvm/lib/VMCore/Makefile:1.17 llvm/lib/VMCore/Makefile:1.18
--- llvm/lib/VMCore/Makefile:1.17   Thu Jul 20 11:44:21 2006
+++ llvm/lib/VMCore/MakefileThu Jul 20 14:08:27 2006
@@ -19,7 +19,7 @@
 INTRINSICTD  := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td
 INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td)
 
-$(ObjDir)/Intrinsics.gen.tmp: $(INTRINSICTDS) $(TBLGEN)
+$(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(TBLGEN)
$(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
$(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic
 



___
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/LoopUnroll.cpp

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/Transforms/Scalar:

LoopUnroll.cpp updated: 1.22 -> 1.23
---
Log message:

Minor comment tweaks


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

 LoopUnroll.cpp |   11 +--
 1 files changed, 5 insertions(+), 6 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.22 
llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.23
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.22  Wed Jul 19 00:48:45 2006
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp   Thu Jul 20 14:06:16 2006
@@ -266,18 +266,17 @@
   else
 delete LI->removeLoop(std::find(LI->begin(), LI->end(), L));
 
-
-  // FIXME: Should update dominator analyses
-
-  // Remove LCSSA Phis from the exit block
+  // Remove single-entry Phis from the exit block.
   for (BasicBlock::iterator ExitInstr = LoopExit->begin();
PHINode* PN = dyn_cast(ExitInstr); ++ExitInstr) {
 assert(PN->getNumIncomingValues() == 1
-   && "Block should only have one pred, so Phi's must be LCSSA");
+   && "Block should only have one pred, so Phi's must be single 
entry");
 PN->replaceAllUsesWith(PN->getOperand(0));
 PN->eraseFromParent();
   }
-
+  
+  // FIXME: Should update dominator analyses
+  
   // Now that everything is up-to-date that will be, we fold the loop block 
into
   // the preheader and exit block, updating our analyses as we go.
   LoopExit->getInstList().splice(LoopExit->begin(), BB->getInstList(),



___
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/X86InstrInfo.td

2006-07-20 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.280 -> 1.281
---
Log message:

Clean up.

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

 X86InstrInfo.td |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.280 
llvm/lib/Target/X86/X86InstrInfo.td:1.281
--- llvm/lib/Target/X86/X86InstrInfo.td:1.280   Tue Jul 18 19:27:29 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Thu Jul 20 16:37:39 2006
@@ -1404,11 +1404,11 @@
 
 // Shift left by one. Not used because (add x, x) is slightly cheaper.
 def SHL8r1   : I<0xD0, MRM4r, (ops GR8 :$dst, GR8 :$src1),
- "shl{b} {$dst|$dst}", []>;
+ "shl{b} $dst", []>;
 def SHL16r1  : I<0xD1, MRM4r, (ops GR16:$dst, GR16:$src1),
- "shl{w} {$dst|$dst}", []>, OpSize;
+ "shl{w} $dst", []>, OpSize;
 def SHL32r1  : I<0xD1, MRM4r, (ops GR32:$dst, GR32:$src1),
- "shl{l} {$dst|$dst}", []>;
+ "shl{l} $dst", []>;
 
 let isTwoAddress = 0 in {
   def SHL8mCL  : I<0xD2, MRM4m, (ops i8mem :$dst),



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


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

2006-07-20 Thread Patrick Jenkins


Changes in directory nightlytest-serverside:

NightlyTestAccept.cgi updated: 1.20 -> 1.21
---
Log message:

When i rewrite the createnight function in nightlytestaccept.cgi i introduced a 
syntax error into the database query. this should clear that up.



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

 NightlyTestAccept.cgi |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: nightlytest-serverside/NightlyTestAccept.cgi
diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.20 
nightlytest-serverside/NightlyTestAccept.cgi:1.21
--- nightlytest-serverside/NightlyTestAccept.cgi:1.20   Wed Jul 19 20:23:44 2006
+++ nightlytest-serverside/NightlyTestAccept.cgiThu Jul 20 16:44:05 2006
@@ -381,10 +381,10 @@
 
 my $d = $dbh->prepare("select * from code ORDER BY added DESC");
 $d->execute;
-@row = $d->fetchrow_array;
-if([EMAIL PROTECTED] or ($row[1] != $_[1] && $row[2] != $_[2] && $row[3] 
!= $_[3])){
-   my $e = $dbh->prepare("insert into code (added, loc, files, dirs) 
values (\"$_[0]\", $_[1], $_[2], $_[3])");
-   $e->execute;
+@row = $d->fetchrow_hashref;
+if([EMAIL PROTECTED] || ($row->{'loc'} != $_[1] || $row->{'files'} != 
$_[2] || $row->{'dirs'} != $_[3])){
+   my $e = $dbh->prepare("insert into code (added, loc, files, 
dirs) values (\"$_[0]\", $_[1], $_[2], $_[3])");
+   $e->execute;
 }
 
 }



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


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

2006-07-20 Thread Patrick Jenkins


Changes in directory nightlytest-serverside:

NightlyTestAccept.cgi updated: 1.21 -> 1.22
---
Log message:

Fixing a syntax issue


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

 NightlyTestAccept.cgi |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: nightlytest-serverside/NightlyTestAccept.cgi
diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.21 
nightlytest-serverside/NightlyTestAccept.cgi:1.22
--- nightlytest-serverside/NightlyTestAccept.cgi:1.21   Thu Jul 20 16:44:05 2006
+++ nightlytest-serverside/NightlyTestAccept.cgiThu Jul 20 17:31:16 2006
@@ -297,7 +297,7 @@
  " buildtime_wall, dejagnutime_cpu, dejagnutime_wall, 
warnings,".
  " warnings_added, warnings_removed, 
teststats_exppass,".
  " teststats_unexpfail, teststats_expfail, all_tests,".
-  " passing_tests, unexpfail_tests, expfail_tests".
+  " passing_tests, unexpfail_tests, expfail_tests,".
  " newly_passing_tests, newly_failing_tests, 
new_tests,".
  " removed_tests, cvs_added, cvs_removed, 
cvs_modified,".
  " cvs_usersadd, cvs_usersco) values (".
@@ -381,8 +381,8 @@
 
 my $d = $dbh->prepare("select * from code ORDER BY added DESC");
 $d->execute;
-@row = $d->fetchrow_hashref;
-if([EMAIL PROTECTED] || ($row->{'loc'} != $_[1] || $row->{'files'} != 
$_[2] || $row->{'dirs'} != $_[3])){
+$row = $d->fetchrow_hashref;
+if(!$row || ($row->{'loc'} != $_[1] || $row->{'files'} != $_[2] || 
$row->{'dirs'} != $_[3])){
my $e = $dbh->prepare("insert into code (added, loc, files, 
dirs) values (\"$_[0]\", $_[1], $_[2], $_[3])");
$e->execute;
 }



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


[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl

2006-07-20 Thread Patrick Jenkins


Changes in directory llvm/utils:

NewNightlyTest.pl updated: 1.17 -> 1.18
---
Log message:

We now fail and print an error message if a nightly tester does not specify a 
nickname on the command line


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

 NewNightlyTest.pl |8 
 1 files changed, 8 insertions(+)


Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.17 llvm/utils/NewNightlyTest.pl:1.18
--- llvm/utils/NewNightlyTest.pl:1.17   Thu Jul 20 11:54:43 2006
+++ llvm/utils/NewNightlyTest.plThu Jul 20 17:28:43 2006
@@ -139,6 +139,7 @@
$CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next;
 }
 if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
+else{ $nickname=""; }
 if (/^-gccpath/) { $CONFIGUREARGS .= 

   " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; 
$GCCPATH=$ARGV[0]; 
@@ -186,6 +187,10 @@
 $WebDir = $ARGV[2];
 }
 
+if($nickname eq ""){
+   die ("Please invoke NewNightlyTest.pl with command line option 
\"-nickname \"");
+}
+
 ##
 #
 #define the file names we'll use
@@ -461,6 +466,9 @@
 if (!$NOCHECKOUT) {
 if (-d $BuildDir) {
if (!$NOREMOVE) {
+   if ( $VERBOSE ){
+   print "Build directory exists! Removing it\n";
+   }
system "rm -rf $BuildDir";
} else {
die "CVS checkout directory $BuildDir already exists!";



___
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/DAGCombiner.cpp

2006-07-20 Thread Evan Cheng


Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.176 -> 1.177
---
Log message:

If a shuffle is unary, i.e. one of the vector argument is not needed, turn the
operand into a undef and adjust mask accordingly.


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

 DAGCombiner.cpp |   66 +++-
 1 files changed, 56 insertions(+), 10 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.176 
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.177
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.176 Thu Jul 20 12:43:27 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp   Thu Jul 20 17:44:41 2006
@@ -2597,10 +2597,33 @@
 }
   }
   if (isIdentity) return N->getOperand(1);
-  
-  // If the LHS and the RHS are the same node, turn the RHS into an undef.
-  if (N->getOperand(0) == N->getOperand(1)) {
-if (N->getOperand(0).getOpcode() == ISD::UNDEF)
+
+  // Check if the shuffle is a unary shuffle, i.e. one of the vectors is not
+  // needed at all.
+  bool isUnary = true;
+  int VecNum = -1;
+  for (unsigned i = 0; i != NumElts; ++i)
+if (ShufMask.getOperand(i).getOpcode() != ISD::UNDEF) {
+  unsigned Idx = cast(ShufMask.getOperand(i))->getValue();
+  int V = (Idx < NumElts) ? 0 : 1;
+  if (VecNum == -1)
+VecNum = V;
+  else if (VecNum != V) {
+isUnary = false;
+break;
+  }
+}
+
+  SDOperand N0 = N->getOperand(0);
+  SDOperand N1 = N->getOperand(1);
+  // Normalize unary shuffle so the RHS is undef.
+  if (isUnary && VecNum == 1)
+std::swap(N0, N1);
+
+  // If it is a unary or the LHS and the RHS are the same node, turn the RHS
+  // into an undef.
+  if (isUnary || N0 == N1) {
+if (N0.getOpcode() == ISD::UNDEF)
   return DAG.getNode(ISD::UNDEF, N->getValueType(0));
 // Check the SHUFFLE mask, mapping any inputs from the 2nd operand into the
 // first operand.
@@ -2619,7 +2642,7 @@
MappedOps);
 AddToWorkList(ShufMask.Val);
 return DAG.getNode(ISD::VECTOR_SHUFFLE, N->getValueType(0),
-   N->getOperand(0), 
+   N0, 
DAG.getNode(ISD::UNDEF, N->getValueType(0)),
ShufMask);
   }
@@ -2653,8 +2676,31 @@
   }
   if (isIdentity) return N->getOperand(1);
 
-  // If the LHS and the RHS are the same node, turn the RHS into an undef.
-  if (N->getOperand(0) == N->getOperand(1)) {
+  // Check if the shuffle is a unary shuffle, i.e. one of the vectors is not
+  // needed at all.
+  bool isUnary = true;
+  int VecNum = -1;
+  for (unsigned i = 0; i != NumElts; ++i)
+if (ShufMask.getOperand(i).getOpcode() != ISD::UNDEF) {
+  unsigned Idx = cast(ShufMask.getOperand(i))->getValue();
+  int V = (Idx < NumElts) ? 0 : 1;
+  if (VecNum == -1)
+VecNum = V;
+  else if (VecNum != V) {
+isUnary = false;
+break;
+  }
+}
+
+  SDOperand N0 = N->getOperand(0);
+  SDOperand N1 = N->getOperand(1);
+  // Normalize unary shuffle so the RHS is undef.
+  if (isUnary && VecNum == 1)
+std::swap(N0, N1);
+
+  // If it is a unary or the LHS and the RHS are the same node, turn the RHS
+  // into an undef.
+  if (isUnary || N0 == N1) {
 // Check the SHUFFLE mask, mapping any inputs from the 2nd operand into the
 // first operand.
 std::vector MappedOps;
@@ -2680,12 +2726,12 @@
 SDOperand UDVal = DAG.getNode(ISD::UNDEF, MappedOps[0].getValueType());
 for (unsigned i = 0; i != NumElts; ++i)
   MappedOps[i] = UDVal;
-MappedOps[NumElts  ] = *(N->getOperand(0).Val->op_end()-2);
-MappedOps[NumElts+1] = *(N->getOperand(0).Val->op_end()-1);
+MappedOps[NumElts  ] = *(N0.Val->op_end()-2);
+MappedOps[NumElts+1] = *(N0.Val->op_end()-1);
 UDVal = DAG.getNode(ISD::VBUILD_VECTOR, MVT::Vector, MappedOps);
 
 return DAG.getNode(ISD::VVECTOR_SHUFFLE, MVT::Vector, 
-   N->getOperand(0), UDVal, ShufMask,
+   N0, UDVal, ShufMask,
MappedOps[NumElts], MappedOps[NumElts+1]);
   }
   



___
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

2006-07-20 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.161 -> 1.162
---
Log message:

Missing a space.

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

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


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.161 
llvm/lib/Target/X86/X86RegisterInfo.cpp:1.162
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.161   Wed Jul 19 14:32:06 2006
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Thu Jul 20 17:52:28 2006
@@ -223,7 +223,7 @@
 static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
   for (unsigned i = 1; i != NumEntries; ++i)
 if (!(Table[i-1] < Table[i])) {
-  std::cerr << "Entries out of order" << Table[i-1].from
+  std::cerr << "Entries out of order " << Table[i-1].from
 << " " << Table[i].from << "\n";
   return false;
 }



___
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

2006-07-20 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.237 -> 1.238
---
Log message:

A splat of a vector constant of all zero or all one is the vector constant.


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

 X86ISelLowering.cpp |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.237 
llvm/lib/Target/X86/X86ISelLowering.cpp:1.238
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.237   Wed Jul 12 11:59:49 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Thu Jul 20 18:09:47 2006
@@ -2393,6 +2393,8 @@
   bool V2IsUndef = V2.getOpcode() == ISD::UNDEF;
 
   if (isSplatMask(PermMask.Val)) {
+if (ISD::isBuildVectorAllZeros(V1.Val) || 
ISD::isBuildVectorAllOnes(V1.Val))
+  return V1;
 if (NumElems <= 4) return Op;
 // Promote it to a v4i32 splat.
 return PromoteSplat(Op, DAG);



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


[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp

2006-07-20 Thread Evan Cheng


Changes in directory llvm/utils/TableGen:

DAGISelEmitter.cpp updated: 1.223 -> 1.224
---
Log message:

Also checks for noResults field.

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

 DAGISelEmitter.cpp |5 -
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.223 
llvm/utils/TableGen/DAGISelEmitter.cpp:1.224
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.223Tue Jul 18 19:24:41 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp  Thu Jul 20 18:36:20 2006
@@ -742,8 +742,11 @@
 
 assert(NumResults <= 1 &&
"Only supports zero or one result instrs!");
+
+CodeGenInstruction &InstInfo =
+  ISE.getTargetInfo().getInstruction(getOperator()->getName());
 // Apply the result type to the node
-if (NumResults == 0) {
+if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack...
   MadeChange = UpdateNodeType(MVT::isVoid, TP);
 } else {
   Record *ResultNode = Inst.getResult(0);



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


[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll

2006-07-20 Thread Evan Cheng


Changes in directory llvm/test/Regression/CodeGen/X86:

vec_shuffle-6.ll updated: 1.3 -> 1.4
---
Log message:

Fix a broken test.

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

 vec_shuffle-6.ll |5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll
diff -u llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.3 
llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.4
--- llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll:1.3   Wed Jul 12 
01:48:47 2006
+++ llvm/test/Regression/CodeGen/X86/vec_shuffle-6.ll   Thu Jul 20 18:50:13 2006
@@ -1,5 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movapd | wc -l | grep 
1
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | wc -l | grep 
1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 &&
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movapd | wc -l | grep 
1 &&
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | wc -l | grep 
1 &&
 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movups | wc -l | grep 
2
 
 target triple = "i686-apple-darwin"



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


[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/vec_shuffle-7.ll

2006-07-20 Thread Evan Cheng


Changes in directory llvm/test/Regression/CodeGen/X86:

vec_shuffle-7.ll added (r1.1)
---
Log message:

New vector shuffle test case.

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

 vec_shuffle-7.ll |   10 ++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/vec_shuffle-7.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/vec_shuffle-7.ll:1.1
*** /dev/null   Thu Jul 20 18:51:11 2006
--- llvm/test/Regression/CodeGen/X86/vec_shuffle-7.ll   Thu Jul 20 18:51:01 2006
***
*** 0 
--- 1,10 
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | wc -l | grep 
1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shufps
+ 
+ void %test() {
+   cast <4 x int> zeroinitializer to <4 x float>
+   shufflevector <4 x float> %0, <4 x float> zeroinitializer, <4 x uint> 
zeroinitializer
+   store <4 x float> %1, <4 x float>* null
+   unreachable
+ }



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


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

2006-07-20 Thread Chris Lattner


Changes in directory llvm/docs:

GettingStarted.html updated: 1.135 -> 1.136
---
Log message:

Add some notes about mingw, patch contributed by Anton Korobeynikov.


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

 GettingStarted.html |   16 +++-
 1 files changed, 11 insertions(+), 5 deletions(-)


Index: llvm/docs/GettingStarted.html
diff -u llvm/docs/GettingStarted.html:1.135 llvm/docs/GettingStarted.html:1.136
--- llvm/docs/GettingStarted.html:1.135 Fri Jun 16 18:20:21 2006
+++ llvm/docs/GettingStarted.html   Thu Jul 20 19:06:27 2006
@@ -239,12 +239,12 @@
 
 
   Cygwin/Win32
-  x861
+  x861,8
   GCC 3.4.X, binutils 2.15
 
 
   MinGW/Win32
-  x861,6
+  x861,6,8
   GCC 3.4.X, binutils 2.15
 
 
@@ -306,9 +306,15 @@
 The GCC-based C/C++ frontend does not build
 The port is done using the MSYS shell. 
 http://www.mingw.org/MinGWiki/";>Download and install 
-bison (excl. M4.exe) and flex in that order.  Build binutils-2.15 from source,
-if necessary.
+bison (excl. M4.exe) and flex in that order. Build binutils-2.15 from source,
+if necessary. Bison & flex can be also grabbed from GNUWin32 sf.net 
project
 Native code generation exists but is not complete.
+Binutils up to post-2.17 has bug in bfd/cofflink.c
+preventing LLVM from building correctly. Several workarounds have been
+introduced into LLVM build system, but the bug can occur anytime in the
+future. It's highly recommended to rebuild your current binutils with the
+patch from http://sourceware.org/bugzilla/show_bug.cgi?id=2659";>
+Binutils bugzilla, if it's wasn't already applied. 
 
 
 
@@ -1543,7 +1549,7 @@
   mailto:[EMAIL PROTECTED]">Chris Lattner
   http://llvm.x10sys.com/rspencer/";>Reid Spencer
   http://llvm.org";>The LLVM Compiler Infrastructure
-  Last modified: $Date: 2006/06/16 23:20:21 $
+  Last modified: $Date: 2006/07/21 00:06:27 $
 
 
 



___
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/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/CodeGen/SelectionDAG:

Makefile updated: 1.5 -> 1.6
---
Log message:

Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.



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

 Makefile |1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/SelectionDAG/Makefile
diff -u llvm/lib/CodeGen/SelectionDAG/Makefile:1.5 
llvm/lib/CodeGen/SelectionDAG/Makefile:1.6
--- llvm/lib/CodeGen/SelectionDAG/Makefile:1.5  Wed May 31 20:30:26 2006
+++ llvm/lib/CodeGen/SelectionDAG/Makefile  Thu Jul 20 19:10:47 2006
@@ -9,5 +9,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMSelectionDAG
 PARALLEL_DIRS =
+BUILD_ARCHIVE = 1
 
 include $(LEVEL)/Makefile.common



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


[llvm-commits] CVS: llvm/lib/Debugger/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/lib/Debugger:

Makefile updated: 1.4 -> 1.5
---
Log message:

Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.



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

 Makefile |1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Debugger/Makefile
diff -u llvm/lib/Debugger/Makefile:1.4 llvm/lib/Debugger/Makefile:1.5
--- llvm/lib/Debugger/Makefile:1.4  Fri Jul  7 11:46:43 2006
+++ llvm/lib/Debugger/Makefile  Thu Jul 20 19:10:47 2006
@@ -11,5 +11,6 @@
 LIBRARYNAME = LLVMDebugger
 EXTRA_DIST = README.txt
 REQUIRES_EH := 1
+BUILD_ARCHIVE = 1
 
 include $(LEVEL)/Makefile.common



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


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

2006-07-20 Thread Chris Lattner


Changes in directory llvm:

Makefile.rules updated: 1.386 -> 1.387
---
Log message:

Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.



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

 Makefile.rules |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.386 llvm/Makefile.rules:1.387
--- llvm/Makefile.rules:1.386   Thu Jul 20 12:27:58 2006
+++ llvm/Makefile.rules Thu Jul 20 19:10:06 2006
@@ -620,7 +620,7 @@
 
 # What the X86 JIT requires
 ifdef ENABLE_X86_JIT
-  JIT_LIBS += LLVMX86 LLVMSelectionDAG
+  JIT_LIBS += LLVMX86 LLVMSelectionDAG.a
 endif
 
 # You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
@@ -632,7 +632,7 @@
 
 # What the PowerPC JIT requires
 ifdef ENABLE_PPC_JIT
-  JIT_LIBS += LLVMPowerPC LLVMSelectionDAG
+  JIT_LIBS += LLVMPowerPC LLVMSelectionDAG.a
 endif
 
 # You can enable the Alpha JIT on a non-Alpha host by setting the flag
@@ -644,7 +644,7 @@
 
 # What the Alpha JIT requires
 ifdef ENABLE_ALPHA_JIT
-  JIT_LIBS += LLVMAlpha LLVMSelectionDAG
+  JIT_LIBS += LLVMAlpha LLVMSelectionDAG.a
 endif
 
 LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts.a LLVMTransformUtils.a LLVMAnalysis.a \



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


[llvm-commits] CVS: llvm/tools/llc/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.85 -> 1.86
---
Log message:

Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.



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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.85 llvm/tools/llc/Makefile:1.86
--- llvm/tools/llc/Makefile:1.85Thu Jul 20 12:27:58 2006
+++ llvm/tools/llc/Makefile Thu Jul 20 19:10:06 2006
@@ -55,7 +55,7 @@
 endif
 
 USEDLIBS += \
-   LLVMSelectionDAG \
+   LLVMSelectionDAG.a \
LLVMCodeGen.a \
LLVMTarget.a \
LLVMipa.a \



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


[llvm-commits] CVS: llvm/tools/llvm-db/Makefile

2006-07-20 Thread Chris Lattner


Changes in directory llvm/tools/llvm-db:

Makefile updated: 1.11 -> 1.12
---
Log message:

Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.



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

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


Index: llvm/tools/llvm-db/Makefile
diff -u llvm/tools/llvm-db/Makefile:1.11 llvm/tools/llvm-db/Makefile:1.12
--- llvm/tools/llvm-db/Makefile:1.11Thu Jul  6 19:46:18 2006
+++ llvm/tools/llvm-db/Makefile Thu Jul 20 19:10:47 2006
@@ -9,7 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llvm-db
-USEDLIBS = LLVMDebugger LLVMBCReader.a LLVMCore.a LLVMSupport.a \
+USEDLIBS = LLVMDebugger.a LLVMBCReader.a LLVMCore.a LLVMSupport.a \
  LLVMbzip2.a LLVMSystem.a
 REQUIRES_EH := 1
 



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


[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl

2006-07-20 Thread Patrick Jenkins


Changes in directory llvm/utils:

NewNightlyTest.pl updated: 1.18 -> 1.19
---
Log message:

The nightly tester will no longer report numbers instead of tests performed.



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

 NewNightlyTest.pl |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.18 llvm/utils/NewNightlyTest.pl:1.19
--- llvm/utils/NewNightlyTest.pl:1.18   Thu Jul 20 17:28:43 2006
+++ llvm/utils/NewNightlyTest.plThu Jul 20 20:34:01 2006
@@ -824,13 +824,13 @@
 
 for($x=0; $x<@DEJAGNU; $x++){
if($DEJAGNU[$x] =~ m/^PASS:/){
-   $passes.="$x\n";
+   $passes.="$DEJAGNU[$x]\n";
}
elsif($DEJAGNU[$x] =~ m/^FAIL:/){
-   $fails.="$x\n";
+   $fails.="$DEJAGNU[$x]\n";
}
elsif($DEJAGNU[$x] =~ m/^XFAIL:/){
-   $xfails.="$x\n";
+   $xfails.="$DEJAGNU[$x]\n";
}
 }
 



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


[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl

2006-07-20 Thread Patrick Jenkins


Changes in directory llvm/utils:

NewNightlyTest.pl updated: 1.19 -> 1.20
---
Log message:

Fixed issue where nightly test always tells you you need to use -nickname


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

 NewNightlyTest.pl |3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.19 llvm/utils/NewNightlyTest.pl:1.20
--- llvm/utils/NewNightlyTest.pl:1.19   Thu Jul 20 20:34:01 2006
+++ llvm/utils/NewNightlyTest.plThu Jul 20 20:39:42 2006
@@ -106,7 +106,7 @@
 #
 ##
 $CONFIGUREARGS="";
-
+$nickname="";
 $NOTEST=0;
 $NORUNNINGTESTS=0;
 
@@ -139,7 +139,6 @@
$CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next;
 }
 if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
-else{ $nickname=""; }
 if (/^-gccpath/) { $CONFIGUREARGS .= 

   " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; 
$GCCPATH=$ARGV[0]; 



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