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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/CodeGen:

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

Prevent the -pedantic option from causing Mac OS/X build problems:
LiveIntervalAnalysis.cpp:218: error: floating constant exceeds range of 'double'



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

 Makefile |3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/CodeGen/Makefile
diff -u llvm/lib/CodeGen/Makefile:1.26 llvm/lib/CodeGen/Makefile:1.27
--- llvm/lib/CodeGen/Makefile:1.26  Wed May 31 20:30:26 2006
+++ llvm/lib/CodeGen/Makefile   Thu Jun  1 01:12:21 2006
@@ -12,3 +12,6 @@
 PARALLEL_DIRS = SelectionDAG
 
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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

2006-05-31 Thread Owen Anderson


Changes in directory llvm/lib/Transforms/Scalar:

LCSSA.cpp updated: 1.8 -> 1.9
---
Log message:

More cleanups.  Also, add a special case for updating PHI nodes, and 
reimplement getValueDominatingFunction to walk the DominanceTree rather than
just searching blindly.


---
Diffs of the changes:  (+33 -21)

 LCSSA.cpp |   54 +-
 1 files changed, 33 insertions(+), 21 deletions(-)


Index: llvm/lib/Transforms/Scalar/LCSSA.cpp
diff -u llvm/lib/Transforms/Scalar/LCSSA.cpp:1.8 
llvm/lib/Transforms/Scalar/LCSSA.cpp:1.9
--- llvm/lib/Transforms/Scalar/LCSSA.cpp:1.8Wed May 31 15:55:06 2006
+++ llvm/lib/Transforms/Scalar/LCSSA.cppThu Jun  1 01:05:47 2006
@@ -36,7 +36,7 @@
 #include "llvm/Analysis/LoopInfo.h"
 #include "llvm/Support/CFG.h"
 #include 
-#include 
+#include 
 #include 
 #include 
 
@@ -143,17 +143,12 @@
   std::vector workList;
   
   for (std::vector::const_iterator BBI = exitBlocks.begin(),
-  BBE = exitBlocks.end(); BBI != BBE; ++BBI) {
-PHINode *phi = new PHINode(Instr->getType(), "lcssa", (*BBI)->begin());
-workList.push_back(phi);
-Phis[*BBI] = phi;
-
-// Since LoopSimplify has been run, we know that all of these predecessors
-// are in the loop, so just hook them up in the obvious manner.
-//for (pred_iterator PI = pred_begin(*BBI), PE = pred_end(*BBI); PI != PE;
-// ++PI)
-//  phi->addIncoming(Instr, *PI);
-  }
+  BBE = exitBlocks.end(); BBI != BBE; ++BBI)
+if (DT->getNode(Instr->getParent())->dominates(DT->getNode(*BBI))) {
+  PHINode *phi = new PHINode(Instr->getType(), "lcssa", (*BBI)->begin());
+  workList.push_back(phi);
+  Phis[*BBI] = phi;
+}
   
   // Calculate the IDF of these LCSSA Phi nodes, inserting new Phi's where
   // necessary.  Keep track of these new Phi's in Phis.
@@ -170,8 +165,7 @@
PE = S.end(); P != PE; ++P) {
 if (Phis[*P] == 0) {
   // Still doesn't have operands...
-  PHINode *phi = new PHINode(Instr->getType(), "lcssa");
-  (*P)->getInstList().insert((*P)->front(), phi);
+  PHINode *phi = new PHINode(Instr->getType(), "lcssa", (*P)->begin());
   Phis[*P] = phi;
   
   workList.push_back(phi);
@@ -208,8 +202,21 @@
   
   for (std::vector::iterator II = Uses.begin(), IE = Uses.end();
II != IE; ++II) {
-(*II)->replaceUsesOfWith(Instr, getValueDominatingBlock((*II)->getParent(),
-  Phis));
+if (PHINode* phi = dyn_cast(*II)) {
+  for (unsigned int i = 0; i < phi->getNumIncomingValues(); ++i) {
+// FIXME: Replace a Phi entry if and only if the corresponding 
+// predecessor is dominated.
+Instruction* dominator = 
+getValueDominatingBlock(phi->getIncomingBlock(i), 
Phis);
+
+if (phi->getIncomingValue(i) == Instr)
+  phi->setIncomingValue(i, dominator);
+  }
+} else {
+   (*II)->replaceUsesOfWith(Instr,
+getValueDominatingBlock((*II)->getParent(),
+Phis));
+}
   }
 }
 
@@ -241,12 +248,17 @@
 
 Instruction *LCSSA::getValueDominatingBlock(BasicBlock *BB,
   std::map PotDoms) 
{
-  for (std::map::iterator MI = PotDoms.begin(),
-   ME = PotDoms.end(); MI != ME; ++MI)
-if (DT->getNode((*MI).first)->dominates(DT->getNode(BB)))
-  return (*MI).second;
+  DominatorTree::Node* bbNode = DT->getNode(BB);
+  while (bbNode != 0) {
+std::map::iterator I =
+   
PotDoms.find(bbNode->getBlock());
+if (I != PotDoms.end()) {
+  return (*I).second;
+}
+bbNode = bbNode->getIDom();
+  }
   
-  // FIXME: Should assert false
+  assert(0 && "No dominating value found.");
   
   return 0;
 }



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

2006-05-31 Thread Owen Anderson


Changes in directory llvm/lib/Transforms/Scalar:

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

Remove a FIXME that was fixed with my last patch.


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

 LCSSA.cpp |2 --
 1 files changed, 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/LCSSA.cpp
diff -u llvm/lib/Transforms/Scalar/LCSSA.cpp:1.9 
llvm/lib/Transforms/Scalar/LCSSA.cpp:1.10
--- llvm/lib/Transforms/Scalar/LCSSA.cpp:1.9Thu Jun  1 01:05:47 2006
+++ llvm/lib/Transforms/Scalar/LCSSA.cppThu Jun  1 01:07:40 2006
@@ -204,8 +204,6 @@
II != IE; ++II) {
 if (PHINode* phi = dyn_cast(*II)) {
   for (unsigned int i = 0; i < phi->getNumIncomingValues(); ++i) {
-// FIXME: Replace a Phi entry if and only if the corresponding 
-// predecessor is dominated.
 Instruction* dominator = 
 getValueDominatingBlock(phi->getIncomingBlock(i), 
Phis);
 



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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Target/CBackend:

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

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Don't warn about -pedantic errors. Add a note to the PR instead.


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

 Makefile |3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/Target/CBackend/Makefile
diff -u llvm/lib/Target/CBackend/Makefile:1.6 
llvm/lib/Target/CBackend/Makefile:1.7
--- llvm/lib/Target/CBackend/Makefile:1.6   Wed May 31 20:55:21 2006
+++ llvm/lib/Target/CBackend/Makefile   Thu Jun  1 00:49:51 2006
@@ -10,3 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



___
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-05-31 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.225 -> 1.226
---
Log message:

Typos

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

 X86ISelLowering.cpp |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.225 
llvm/lib/Target/X86/X86ISelLowering.cpp:1.226
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.225   Wed May 31 19:30:39 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Thu Jun  1 00:53:27 2006
@@ -380,7 +380,7 @@
 static void
 HowToPassCCCArgument(MVT::ValueType ObjectVT, unsigned NumXMMRegs,
  unsigned &ObjSize, unsigned &ObjXMMRegs) {
-  NumXMMRegs = 0;
+  ObjXMMRegs = 0;
 
   switch (ObjectVT) {
   default: assert(0 && "Unhandled argument type!");
@@ -784,8 +784,8 @@
 unsigned &ObjSize, unsigned &ObjIntRegs,
 unsigned &ObjXMMRegs) {
   ObjSize = 0;
-  NumIntRegs = 0;
-  NumXMMRegs = 0;
+  ObjIntRegs = 0;
+  ObjXMMRegs = 0;
 
   switch (ObjectVT) {
   default: assert(0 && "Unhandled argument type!");



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


[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm2cpp:

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

Fix a bug where incorrect C++ was being emitted.


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

 CppWriter.cpp |1 -
 1 files changed, 1 deletion(-)


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.9 
llvm/tools/llvm2cpp/CppWriter.cpp:1.10
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.9   Wed May 31 15:18:56 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp   Wed May 31 23:21:20 2006
@@ -1446,7 +1446,6 @@
 ) {
   Out << "\nModule* " << fname << "(Module *mod) {\n";
   Out << "\nmod->setModuleIdentifier(\"" << mName << "\");\n";
-  Out << "\");\n";
   printModuleBody();
   Out << "\nreturn mod;\n";
   Out << "\n}\n";



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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Target/CBackend:

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

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

 Makefile |1 -
 1 files changed, 1 deletion(-)


Index: llvm/lib/Target/CBackend/Makefile
diff -u llvm/lib/Target/CBackend/Makefile:1.5 
llvm/lib/Target/CBackend/Makefile:1.6
--- llvm/lib/Target/CBackend/Makefile:1.5   Wed May 31 20:30:26 2006
+++ llvm/lib/Target/CBackend/Makefile   Wed May 31 20:55:21 2006
@@ -9,5 +9,4 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
-CXXFLAGS += -pedantic -Wno-long-long
 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/runtime/libdummy/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/runtime/libdummy:

Makefile updated: 1.7 -> 1.8
---
Log message:

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

 Makefile |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/runtime/libdummy/Makefile
diff -u llvm/runtime/libdummy/Makefile:1.7 llvm/runtime/libdummy/Makefile:1.8
--- llvm/runtime/libdummy/Makefile:1.7  Tue Dec 21 23:57:33 2004
+++ llvm/runtime/libdummy/Makefile  Wed May 31 20:55:21 2006
@@ -15,3 +15,5 @@
 
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


[llvm-commits] CVS: llvm/projects/sample/lib/sample/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/projects/sample/lib/sample:

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

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

 Makefile |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/projects/sample/lib/sample/Makefile
diff -u llvm/projects/sample/lib/sample/Makefile:1.6 
llvm/projects/sample/lib/sample/Makefile:1.7
--- llvm/projects/sample/lib/sample/Makefile:1.6Fri Jan  6 16:51:19 2006
+++ llvm/projects/sample/lib/sample/MakefileWed May 31 20:55:21 2006
@@ -19,3 +19,5 @@
 #
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


[llvm-commits] CVS: llvm/projects/Stacker/lib/runtime/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/projects/Stacker/lib/runtime:

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

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

 Makefile |3 +++
 1 files changed, 3 insertions(+)


Index: llvm/projects/Stacker/lib/runtime/Makefile
diff -u llvm/projects/Stacker/lib/runtime/Makefile:1.4 
llvm/projects/Stacker/lib/runtime/Makefile:1.5
--- llvm/projects/Stacker/lib/runtime/Makefile:1.4  Sat Dec  4 23:18:16 2004
+++ llvm/projects/Stacker/lib/runtime/Makefile  Wed May 31 20:55:21 2006
@@ -12,3 +12,6 @@
 MODULE_NAME = stkr_runtime
 
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/System:

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

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

 Makefile |3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/System/Makefile
diff -u llvm/lib/System/Makefile:1.10 llvm/lib/System/Makefile:1.11
--- llvm/lib/System/Makefile:1.10   Thu Apr 13 01:39:24 2006
+++ llvm/lib/System/MakefileWed May 31 20:55:21 2006
@@ -14,3 +14,6 @@
 EXTRA_DIST = Unix Win32 README.txt
 
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



___
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-05-31 Thread Reid Spencer


Changes in directory llvm:

Makefile.rules updated: 1.375 -> 1.376
---
Log message:

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.


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

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


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.375 llvm/Makefile.rules:1.376
--- llvm/Makefile.rules:1.375   Wed May 31 20:30:26 2006
+++ llvm/Makefile.rules Wed May 31 20:55:21 2006
@@ -357,7 +357,8 @@
 # Options To Invoke Tools
 #--
 
-CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused 
+CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -Wno-long-long \
+ -pedantic 
 
 ifeq ($(OS),HP-UX)
   CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-config:

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

Build llvm-config into the ToolDir not in the local directory. This makes
it more likely to be in a developer's path and consistent with all the 
other tools.


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

 Makefile |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/tools/llvm-config/Makefile
diff -u llvm/tools/llvm-config/Makefile:1.6 llvm/tools/llvm-config/Makefile:1.7
--- llvm/tools/llvm-config/Makefile:1.6 Wed May  3 12:49:50 2006
+++ llvm/tools/llvm-config/Makefile Wed May 31 20:52:49 2006
@@ -49,7 +49,7 @@
$(ConfigStatusScript) tools/llvm-config/llvm-config.in
 
 # Build our final script.
-llvm-config: llvm-config.in $(FinalLibDeps)
+$(ToolDir)/llvm-config: llvm-config.in $(FinalLibDeps)
$(Echo) "Building llvm-config script."
$(Verb) $(ECHO) 's,@LLVM_CXXFLAGS@,$(SUB_CXXFLAGS),' > temp.sed
$(Verb) $(ECHO) 's,@LLVM_LDFLAGS@,$(SUB_LDFLAGS),' >> temp.sed
@@ -61,19 +61,19 @@
 
 else
 # We don't have perl, just generate a dummy llvm-config
-llvm-config:
+$(ToolDir)/llvm-config:
$(Echo) "Building place holder llvm-config script."
$(Verb) $(ECHO) 'echo llvm-config: Perl not found so llvm-config could 
not be generated' >> $@
$(Verb) chmod +x $@
 
 endif
 # Hook into the standard Makefile rules.
-all-local:: llvm-config
+all-local:: $(ToolDir)/llvm-config
 clean-local::
-   $(Verb) $(RM) -f llvm-config llvm-config.in $(FinalLibDeps) $(LibDeps) \
- GenLibDeps.out
+   $(Verb) $(RM) -f $(ToolDir)/llvm-config llvm-config.in $(FinalLibDeps) \
+ $(LibDeps) GenLibDeps.out
 install-local:: all-local
$(Echo) Installing llvm-config
$(Verb) $(MKDIR) $(PROJ_bindir)
-   $(Verb) $(ScriptInstall) llvm-config $(PROJ_bindir)
+   $(Verb) $(ScriptInstall) $(ToolDir)/llvm-config $(PROJ_bindir)
 



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


[llvm-commits] CVS: llvm/runtime/GCCLibraries/libm/temp.c

2006-05-31 Thread Reid Spencer


Changes in directory llvm/runtime/GCCLibraries/libm:

temp.c updated: 1.1 -> 1.2
---
Log message:

Put an innocuous statement in this file to quelch warnings about compiling
an empty file.


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

 temp.c |1 +
 1 files changed, 1 insertion(+)


Index: llvm/runtime/GCCLibraries/libm/temp.c
diff -u llvm/runtime/GCCLibraries/libm/temp.c:1.1 
llvm/runtime/GCCLibraries/libm/temp.c:1.2
--- llvm/runtime/GCCLibraries/libm/temp.c:1.1   Fri Mar  8 17:20:46 2002
+++ llvm/runtime/GCCLibraries/libm/temp.c   Wed May 31 20:49:08 2006
@@ -0,0 +1 @@
+typedef int INTEGER;



___
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-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llc:

Makefile updated: 1.82 -> 1.83
---
Log message:

Oops, llc needs libTarget.a not Target.o


---
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.82 llvm/tools/llc/Makefile:1.83
--- llvm/tools/llc/Makefile:1.82Wed May 31 20:30:26 2006
+++ llvm/tools/llc/Makefile Wed May 31 20:42:33 2006
@@ -56,7 +56,7 @@
 USEDLIBS += \
LLVMSelectionDAG \
LLVMCodeGen \
-   LLVMTarget \
+   LLVMTarget.a \
LLVMipa.a \
LLVMTransforms.a \
LLVMScalarOpts.a \



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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Bytecode/Writer:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/Bytecode/Writer/Makefile
diff -u llvm/lib/Bytecode/Writer/Makefile:1.4 
llvm/lib/Bytecode/Writer/Makefile:1.5
--- llvm/lib/Bytecode/Writer/Makefile:1.4   Thu Oct 28 00:30:54 2004
+++ llvm/lib/Bytecode/Writer/Makefile   Wed May 31 20:30:26 2006
@@ -8,5 +8,6 @@
 
##===--===##
 LEVEL = ../../..
 LIBRARYNAME = LLVMBCWriter
+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/tools/llvm2cpp/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm2cpp:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm2cpp/Makefile
diff -u llvm/tools/llvm2cpp/Makefile:1.3 llvm/tools/llvm2cpp/Makefile:1.4
--- llvm/tools/llvm2cpp/Makefile:1.3Mon May 29 13:05:59 2006
+++ llvm/tools/llvm2cpp/MakefileWed May 31 20:30:27 2006
@@ -8,7 +8,7 @@
 
##===--===##
 LEVEL = ../..
 TOOLNAME = llvm2cpp
-USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
-   LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
+   LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/SelectionDAG/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/CodeGen/SelectionDAG:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/CodeGen/SelectionDAG/Makefile
diff -u llvm/lib/CodeGen/SelectionDAG/Makefile:1.4 
llvm/lib/CodeGen/SelectionDAG/Makefile:1.5
--- llvm/lib/CodeGen/SelectionDAG/Makefile:1.4  Wed Oct 27 18:18:44 2004
+++ llvm/lib/CodeGen/SelectionDAG/Makefile  Wed May 31 20:30:26 2006
@@ -7,7 +7,7 @@
 # 
 
##===--===##
 LEVEL = ../../..
-PARALLEL_DIRS =
 LIBRARYNAME = LLVMSelectionDAG
+PARALLEL_DIRS =
 
 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/tools/llvm-ranlib/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-ranlib:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-ranlib/Makefile
diff -u llvm/tools/llvm-ranlib/Makefile:1.3 llvm/tools/llvm-ranlib/Makefile:1.4
--- llvm/tools/llvm-ranlib/Makefile:1.3 Thu May 19 16:10:31 2005
+++ llvm/tools/llvm-ranlib/Makefile Wed May 31 20:30:27 2006
@@ -9,7 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llvm-ranlib
-USEDLIBS = LLVMArchive.a LLVMBCReader \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMArchive.a LLVMBCReader.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/Support/bzip2/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Support/bzip2:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/Support/bzip2/Makefile
diff -u llvm/lib/Support/bzip2/Makefile:1.4 llvm/lib/Support/bzip2/Makefile:1.5
--- llvm/lib/Support/bzip2/Makefile:1.4 Sun Dec 25 23:00:25 2005
+++ llvm/lib/Support/bzip2/Makefile Wed May 31 20:30:26 2006
@@ -8,6 +8,7 @@
 
##===--===##
 LEVEL = ../../..
 LIBRARYNAME = LLVMbzip2
+BUILD_ARCHIVE = 1
 SOURCES = blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c 
\
  bzlib.c
 EXTRA_DIST = bzlib.h bzlib_private.h CHANGES LICENSE README \



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/gccld:

Makefile updated: 1.14 -> 1.15
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/gccld/Makefile
diff -u llvm/tools/gccld/Makefile:1.14 llvm/tools/gccld/Makefile:1.15
--- llvm/tools/gccld/Makefile:1.14  Thu Oct 27 10:54:33 2005
+++ llvm/tools/gccld/Makefile   Wed May 31 20:30:26 2006
@@ -12,7 +12,7 @@
 TOOLNAME = gccld
 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
-   LLVMArchive.a LLVMBCReader LLVMBCWriter \
-   LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+   LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
+   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/examples/ModuleMaker/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/examples/ModuleMaker:

Makefile updated: 1.8 -> 1.9
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/examples/ModuleMaker/Makefile
diff -u llvm/examples/ModuleMaker/Makefile:1.8 
llvm/examples/ModuleMaker/Makefile:1.9
--- llvm/examples/ModuleMaker/Makefile:1.8  Thu Nov 25 14:22:07 2004
+++ llvm/examples/ModuleMaker/Makefile  Wed May 31 20:30:26 2006
@@ -9,6 +9,6 @@
 LEVEL=../..
 TOOLNAME=ModuleMaker
 EXAMPLE_TOOL = 1
-USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/llvm-dis/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-dis:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-dis/Makefile
diff -u llvm/tools/llvm-dis/Makefile:1.17 llvm/tools/llvm-dis/Makefile:1.18
--- llvm/tools/llvm-dis/Makefile:1.17   Thu Nov 25 14:22:07 2004
+++ llvm/tools/llvm-dis/MakefileWed May 31 20:30:27 2006
@@ -9,5 +9,5 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-dis
-USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 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/tools/llvm-bcanalyzer/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-bcanalyzer:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-bcanalyzer/Makefile
diff -u llvm/tools/llvm-bcanalyzer/Makefile:1.4 
llvm/tools/llvm-bcanalyzer/Makefile:1.5
--- llvm/tools/llvm-bcanalyzer/Makefile:1.4 Thu Nov 25 14:22:07 2004
+++ llvm/tools/llvm-bcanalyzer/Makefile Wed May 31 20:30:26 2006
@@ -9,5 +9,5 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-bcanalyzer
-USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 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/tools/gccas/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/gccas:

Makefile updated: 1.24 -> 1.25
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/gccas/Makefile
diff -u llvm/tools/gccas/Makefile:1.24 llvm/tools/gccas/Makefile:1.25
--- llvm/tools/gccas/Makefile:1.24  Thu Oct 27 10:54:33 2005
+++ llvm/tools/gccas/Makefile   Wed May 31 20:30:26 2006
@@ -9,8 +9,8 @@
 LEVEL = ../..
 
 TOOLNAME = gccas
-USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
+USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a 
\
LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
-   LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/llvm-ar/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-ar:

Makefile updated: 1.8 -> 1.9
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-ar/Makefile
diff -u llvm/tools/llvm-ar/Makefile:1.8 llvm/tools/llvm-ar/Makefile:1.9
--- llvm/tools/llvm-ar/Makefile:1.8 Thu May 19 16:03:11 2005
+++ llvm/tools/llvm-ar/Makefile Wed May 31 20:30:26 2006
@@ -9,8 +9,8 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-ar
-USEDLIBS = LLVMArchive.a LLVMBCReader \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMArchive.a LLVMBCReader.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/opt/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/opt:

Makefile updated: 1.54 -> 1.55
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/opt/Makefile
diff -u llvm/tools/opt/Makefile:1.54 llvm/tools/opt/Makefile:1.55
--- llvm/tools/opt/Makefile:1.54Tue Feb 21 18:59:06 2006
+++ llvm/tools/opt/Makefile Wed May 31 20:30:27 2006
@@ -9,9 +9,9 @@
 LEVEL = ../..
 TOOLNAME = opt
 
-USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation.a \
+USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
   LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure 
LLVMTransforms.a \
-  LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore 
LLVMSupport.a \
-  LLVMbzip2 LLVMSystem.a 
+  LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore.a 
LLVMSupport.a \
+  LLVMbzip2.a LLVMSystem.a 
 
 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/tools/llvm-db/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-db:

Makefile updated: 1.9 -> 1.10
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-db/Makefile
diff -u llvm/tools/llvm-db/Makefile:1.9 llvm/tools/llvm-db/Makefile:1.10
--- llvm/tools/llvm-db/Makefile:1.9 Sat Apr 22 00:04:23 2006
+++ llvm/tools/llvm-db/Makefile Wed May 31 20:30:26 2006
@@ -9,6 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llvm-db
-USEDLIBS = LLVMDebugger LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 
LLVMSystem.a
+USEDLIBS = LLVMDebugger LLVMBCReader.a LLVMCore.a LLVMSupport.a \
+ LLVMbzip2.a LLVMSystem.a
 
 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/AsmParser/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/AsmParser:

Makefile updated: 1.9 -> 1.10
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/AsmParser/Makefile
diff -u llvm/lib/AsmParser/Makefile:1.9 llvm/lib/AsmParser/Makefile:1.10
--- llvm/lib/AsmParser/Makefile:1.9 Wed Apr 12 15:57:05 2006
+++ llvm/lib/AsmParser/Makefile Wed May 31 20:30:26 2006
@@ -9,6 +9,7 @@
 
 LEVEL = ../..
 LIBRARYNAME := LLVMAsmParser
+BUILD_ARCHIVE = 1
 EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
   llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
 



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


[llvm-commits] CVS: llvm/projects/Stacker/tools/stkrc/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/projects/Stacker/tools/stkrc:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/projects/Stacker/tools/stkrc/Makefile
diff -u llvm/projects/Stacker/tools/stkrc/Makefile:1.10 
llvm/projects/Stacker/tools/stkrc/Makefile:1.11
--- llvm/projects/Stacker/tools/stkrc/Makefile:1.10 Thu Oct 27 11:30:44 2005
+++ llvm/projects/Stacker/tools/stkrc/Makefile  Wed May 31 20:30:26 2006
@@ -9,9 +9,9 @@
 # Give the name of a library.  This will build a dynamic version.
 #
 TOOLNAME = stkrc
-LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMipo.a \
-  LLVMScalarOpts.a LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a 
LLVMAnalysis.a LLVMTarget.a \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a 
+LLVMLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMipo.a LLVMScalarOpts.a \
+ LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a LLVMAnalysis.a \
+ LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a 
 CONFIG_FILES = st
 EXTRA_DIST = st
 USEDLIBS=stkr_compiler 



___
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-05-31 Thread Reid Spencer


Changes in directory llvm:

Makefile.rules updated: 1.374 -> 1.375
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

 Makefile.rules |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.374 llvm/Makefile.rules:1.375
--- llvm/Makefile.rules:1.374   Tue May 30 11:38:06 2006
+++ llvm/Makefile.rules Wed May 31 20:30:26 2006
@@ -357,7 +357,7 @@
 # Options To Invoke Tools
 #--
 
-CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
+CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused 
 
 ifeq ($(OS),HP-UX)
   CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
@@ -628,7 +628,7 @@
 endif
 
 LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts.a LLVMTransformUtils.a LLVMAnalysis.a \
-LLVMBCReader LLVMTarget.a LLVMCore LLVMSupport.a LLVMbzip2 \
+LLVMBCReader.a LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a \
 LLVMSystem.a $(PLATFORMLIBDL)
 endif
 



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-nm:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-nm/Makefile
diff -u llvm/tools/llvm-nm/Makefile:1.6 llvm/tools/llvm-nm/Makefile:1.7
--- llvm/tools/llvm-nm/Makefile:1.6 Thu Nov 25 14:22:07 2004
+++ llvm/tools/llvm-nm/Makefile Wed May 31 20:30:27 2006
@@ -9,6 +9,6 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-nm
-USEDLIBS = LLVMArchive.a LLVMBCReader \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMArchive.a LLVMBCReader.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 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/runtime/libtrace/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/runtime/libtrace:

Makefile updated: 1.13 -> 1.14
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

 Makefile |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/runtime/libtrace/Makefile
diff -u llvm/runtime/libtrace/Makefile:1.13 llvm/runtime/libtrace/Makefile:1.14
--- llvm/runtime/libtrace/Makefile:1.13 Tue Dec 21 23:57:33 2004
+++ llvm/runtime/libtrace/Makefile  Wed May 31 20:30:26 2006
@@ -14,3 +14,5 @@
 
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-as:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-as/Makefile
diff -u llvm/tools/llvm-as/Makefile:1.16 llvm/tools/llvm-as/Makefile:1.17
--- llvm/tools/llvm-as/Makefile:1.16Sun Apr 24 12:43:39 2005
+++ llvm/tools/llvm-as/Makefile Wed May 31 20:30:26 2006
@@ -8,7 +8,7 @@
 
##===--===##
 LEVEL = ../..
 TOOLNAME = llvm-as
-USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
-   LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
+   LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/llvmc/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvmc:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvmc/Makefile
diff -u llvm/tools/llvmc/Makefile:1.16 llvm/tools/llvmc/Makefile:1.17
--- llvm/tools/llvmc/Makefile:1.16  Wed Apr 12 15:56:12 2006
+++ llvm/tools/llvmc/Makefile   Wed May 31 20:30:27 2006
@@ -8,7 +8,7 @@
 
##===--===##
 LEVEL = ../..
 TOOLNAME = llvmc
-USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 CONFIG_FILES = c cpp ll
 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
 



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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Target/CBackend:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/Target/CBackend/Makefile
diff -u llvm/lib/Target/CBackend/Makefile:1.4 
llvm/lib/Target/CBackend/Makefile:1.5
--- llvm/lib/Target/CBackend/Makefile:1.4   Wed Oct 27 18:18:45 2004
+++ llvm/lib/Target/CBackend/Makefile   Wed May 31 20:30:26 2006
@@ -9,5 +9,5 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
+CXXFLAGS += -pedantic -Wno-long-long
 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/tools/bugpoint/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/bugpoint:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/bugpoint/Makefile
diff -u llvm/tools/bugpoint/Makefile:1.16 llvm/tools/bugpoint/Makefile:1.17
--- llvm/tools/bugpoint/Makefile:1.16   Thu Oct 27 10:54:33 2005
+++ llvm/tools/bugpoint/MakefileWed May 31 20:30:26 2006
@@ -15,7 +15,7 @@
 
 USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
   LLVMTransformUtils.a \
-  LLVMAsmParser LLVMLinker.a LLVMBCReader LLVMBCWriter \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+  LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/VMCore/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/VMCore:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

 Makefile |6 +-
 1 files changed, 1 insertion(+), 5 deletions(-)


Index: llvm/lib/VMCore/Makefile
diff -u llvm/lib/VMCore/Makefile:1.15 llvm/lib/VMCore/Makefile:1.16
--- llvm/lib/VMCore/Makefile:1.15   Fri Apr 14 01:32:31 2006
+++ llvm/lib/VMCore/MakefileWed May 31 20:30:26 2006
@@ -8,14 +8,10 @@
 
##===--===##
 LEVEL = ../..
 LIBRARYNAME = LLVMCore
+BUILD_ARCHIVE = 1
 
 BUILT_SOURCES = $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen
 
-include $(LEVEL)/Makefile.config
-ifeq ($(ARCH),Alpha)
-BUILD_ARCHIVE = 1
-endif
-
 include $(LEVEL)/Makefile.common
 
 GENFILE:=$(PROJ_SRC_ROOT)/include/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/lib/Bytecode/Reader/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Bytecode/Reader:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/Bytecode/Reader/Makefile
diff -u llvm/lib/Bytecode/Reader/Makefile:1.4 
llvm/lib/Bytecode/Reader/Makefile:1.5
--- llvm/lib/Bytecode/Reader/Makefile:1.4   Thu Oct 28 00:32:01 2004
+++ llvm/lib/Bytecode/Reader/Makefile   Wed May 31 20:30:26 2006
@@ -8,6 +8,7 @@
 
##===--===##
 LEVEL = ../../..
 LIBRARYNAME = LLVMBCReader
+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/tools/llvm-extract/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-extract:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-extract/Makefile
diff -u llvm/tools/llvm-extract/Makefile:1.3 
llvm/tools/llvm-extract/Makefile:1.4
--- llvm/tools/llvm-extract/Makefile:1.3Thu Oct 27 10:54:34 2005
+++ llvm/tools/llvm-extract/MakefileWed May 31 20:30:27 2006
@@ -9,8 +9,8 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-extract
-USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
-   LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
-   LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
+  LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
+   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/runtime/GC/SemiSpace/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/runtime/GC/SemiSpace:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

 Makefile |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/runtime/GC/SemiSpace/Makefile
diff -u llvm/runtime/GC/SemiSpace/Makefile:1.6 
llvm/runtime/GC/SemiSpace/Makefile:1.7
--- llvm/runtime/GC/SemiSpace/Makefile:1.6  Tue Oct 18 13:48:30 2005
+++ llvm/runtime/GC/SemiSpace/Makefile  Wed May 31 20:30:26 2006
@@ -15,3 +15,5 @@
 
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-link:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-link/Makefile
diff -u llvm/tools/llvm-link/Makefile:1.12 llvm/tools/llvm-link/Makefile:1.13
--- llvm/tools/llvm-link/Makefile:1.12  Thu Nov 25 14:22:07 2004
+++ llvm/tools/llvm-link/Makefile   Wed May 31 20:30:27 2006
@@ -9,7 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-link
-USEDLIBS = LLVMLinker.a LLVMBCReader LLVMBCWriter \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/llvm-ld/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-ld:

Makefile updated: 1.7 -> 1.8
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-ld/Makefile
diff -u llvm/tools/llvm-ld/Makefile:1.7 llvm/tools/llvm-ld/Makefile:1.8
--- llvm/tools/llvm-ld/Makefile:1.7 Thu Oct 27 10:54:34 2005
+++ llvm/tools/llvm-ld/Makefile Wed May 31 20:30:27 2006
@@ -12,7 +12,7 @@
 TOOLNAME = llvm-ld
 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
   LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
-  LLVMArchive.a LLVMBCReader LLVMBCWriter \
-  LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+  LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
+  LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/tools/llc/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llc:

Makefile updated: 1.81 -> 1.82
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.81 llvm/tools/llc/Makefile:1.82
--- llvm/tools/llc/Makefile:1.81Sun May 14 17:18:28 2006
+++ llvm/tools/llc/Makefile Wed May 31 20:30:26 2006
@@ -56,17 +56,17 @@
 USEDLIBS += \
LLVMSelectionDAG \
LLVMCodeGen \
-   LLVMTarget.a \
+   LLVMTarget \
LLVMipa.a \
LLVMTransforms.a \
LLVMScalarOpts.a \
LLVMTransformUtils.a \
LLVMAnalysis.a \
-   LLVMBCReader \
-   LLVMBCWriter \
-   LLVMCore \
+   LLVMBCReader.a \
+   LLVMBCWriter.a \
+   LLVMCore.a \
LLVMSupport.a \
-   LLVMbzip2 \
+   LLVMbzip2.a \
LLVMSystem.a
 
 include $(LLVM_SRC_ROOT)/Makefile.rules



___
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-05-31 Thread Reid Spencer


Changes in directory llvm/lib/CodeGen:

Makefile updated: 1.25 -> 1.26
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/lib/CodeGen/Makefile
diff -u llvm/lib/CodeGen/Makefile:1.25 llvm/lib/CodeGen/Makefile:1.26
--- llvm/lib/CodeGen/Makefile:1.25  Wed Oct 27 18:18:44 2004
+++ llvm/lib/CodeGen/Makefile   Wed May 31 20:30:26 2006
@@ -8,7 +8,7 @@
 
##===--===##
 
 LEVEL = ../..
-PARALLEL_DIRS = SelectionDAG
 LIBRARYNAME = LLVMCodeGen
+PARALLEL_DIRS = SelectionDAG
 
 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/tools/llvm-prof/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm-prof:

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

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/llvm-prof/Makefile
diff -u llvm/tools/llvm-prof/Makefile:1.6 llvm/tools/llvm-prof/Makefile:1.7
--- llvm/tools/llvm-prof/Makefile:1.6   Sun Apr 24 12:43:41 2005
+++ llvm/tools/llvm-prof/Makefile   Wed May 31 20:30:27 2006
@@ -9,7 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-prof
-USEDLIBS = LLVMAnalysis.a LLVMBCReader \
-   LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
+   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 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/runtime/GCCLibraries/libc/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/runtime/GCCLibraries/libc:

Makefile updated: 1.7 -> 1.8
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

 Makefile |4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/runtime/GCCLibraries/libc/Makefile
diff -u llvm/runtime/GCCLibraries/libc/Makefile:1.7 
llvm/runtime/GCCLibraries/libc/Makefile:1.8
--- llvm/runtime/GCCLibraries/libc/Makefile:1.7 Tue Dec 21 23:57:33 2004
+++ llvm/runtime/GCCLibraries/libc/Makefile Wed May 31 20:30:26 2006
@@ -1,4 +1,4 @@
-##===- runtime/GCCLibraries/libc/Makefile --*- 
Makefile -*-===##
+##===- runtime/GCCLibraries/libc/Makefile --*- Makefile 
-*-===##
 # 
 # The LLVM Compiler Infrastructure
 #
@@ -15,3 +15,5 @@
 
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))



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


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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/analyze:

Makefile updated: 1.30 -> 1.31
---
Log message:

Use archive libraries instead of object files for VMCore, BCReader, 
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.


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

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


Index: llvm/tools/analyze/Makefile
diff -u llvm/tools/analyze/Makefile:1.30 llvm/tools/analyze/Makefile:1.31
--- llvm/tools/analyze/Makefile:1.30Thu Oct 27 10:54:33 2005
+++ llvm/tools/analyze/Makefile Wed May 31 20:30:26 2006
@@ -8,9 +8,9 @@
 
##===--===##
 LEVEL = ../..
 TOOLNAME = analyze
-USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis.a LLVMipa.a \
+USEDLIBS = LLVMAsmParser.a LLVMBCReader.a LLVMAnalysis.a LLVMipa.a \
LLVMDataStructure \
   LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
-  LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+  LLVMTransformUtils.a LLVMCore.a LLVMSupport.a LLVMbzip2.a 
LLVMSystem.a
 
 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.config.in

2006-05-31 Thread Reid Spencer


Changes in directory llvm:

Makefile.config.in updated: 1.57 -> 1.58
---
Log message:

Support correct build:
1. Capture the ENABLE_THREADS configure variable in Makefile.config
2. Use ENABLE_THREADS to avoid building ParallelJIT if threads are not
   present.


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

 Makefile.config.in |3 +++
 1 files changed, 3 insertions(+)


Index: llvm/Makefile.config.in
diff -u llvm/Makefile.config.in:1.57 llvm/Makefile.config.in:1.58
--- llvm/Makefile.config.in:1.57Sun Apr  9 18:39:43 2006
+++ llvm/Makefile.config.in Wed May 31 20:09:43 2006
@@ -201,6 +201,9 @@
 # When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
 ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
 
+# Do we want to enable threads?
+ENABLE_THREADS := @ENABLE_THREADS@
+
 # This option tells the Makefiles to produce verbose output.
 # It essentially prints the commands that make is executing
 #VERBOSE = 1



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


[llvm-commits] CVS: llvm/examples/Makefile

2006-05-31 Thread Reid Spencer


Changes in directory llvm/examples:

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

Support correct build:
1. Capture the ENABLE_THREADS configure variable in Makefile.config
2. Use ENABLE_THREADS to avoid building ParallelJIT if threads are not
   present.


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

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


Index: llvm/examples/Makefile
diff -u llvm/examples/Makefile:1.6 llvm/examples/Makefile:1.7
--- llvm/examples/Makefile:1.6  Tue Jul 12 16:51:34 2005
+++ llvm/examples/Makefile  Wed May 31 20:09:43 2006
@@ -10,7 +10,10 @@
 
 include $(LEVEL)/Makefile.config
 
-#PARALLEL_DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile))
-PARALLEL_DIRS:= ParallelJIT Fibonacci HowToUseJIT ModuleMaker BFtoLLVM
+PARALLEL_DIRS:= Fibonacci HowToUseJIT ModuleMaker BFtoLLVM
+
+ifeq ($(ENABLE_THREADS),1)
+PARALLEL_DIRS += ParallelJIT 
+endif
 
 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/autoconf/AutoRegen.sh

2006-05-31 Thread Reid Spencer


Changes in directory llvm/autoconf:

AutoRegen.sh updated: 1.12 -> 1.13
---
Log message:

Tighten this script up a bit.


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

 AutoRegen.sh |   22 +++---
 1 files changed, 7 insertions(+), 15 deletions(-)


Index: llvm/autoconf/AutoRegen.sh
diff -u llvm/autoconf/AutoRegen.sh:1.12 llvm/autoconf/AutoRegen.sh:1.13
--- llvm/autoconf/AutoRegen.sh:1.12 Tue Dec 21 23:56:41 2004
+++ llvm/autoconf/AutoRegen.sh  Wed May 31 20:08:28 2006
@@ -7,22 +7,14 @@
 configfile=configure.ac
 test -d autoconf && test -f autoconf/$configfile && cd autoconf
 test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
-autoconf --version | egrep '2\.59' > /dev/null
-if test $? -ne 0 ; then
-  die "Your autoconf was not detected as being 2.59"
-fi
-aclocal --version | egrep '1\.9\.2' > /dev/null
-if test $? -ne 0 ; then
-  die "Your aclocal was not detected as being 1.9.2"
-fi
-autoheader --version | egrep '2\.59' > /dev/null
-if test $? -ne 0 ; then
-  die "Your autoheader was not detected as being 2.59"
-fi
+autoconf --version | grep '2\.59' > /dev/null
+test $? -eq 0 || die "Your autoconf was not detected as being 2.59"
+aclocal --version | grep '^aclocal.*1\.9\.2' > /dev/null
+test $? -eq 0 || die "Your aclocal was not detected as being 1.9.2"
+autoheader --version | grep '^autoheader.*2\.59' > /dev/null
+test $? -eq 0 || die "Your autoheader was not detected as being 2.59"
 libtool --version | grep '1\.5\.10' > /dev/null
-if test $? -ne 0 ; then
-  die "Your libtool was not detected as being 1.5.10"
-fi
+test $? -eq 0 || die "Your libtool was not detected as being 1.5.10"
 echo ""
 echo "### NOTE: "
 echo "### If you get *any* warnings from autoconf below you MUST fix the"



___
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-05-31 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.224 -> 1.225
---
Log message:

Remove a warning

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

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


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.224 
llvm/lib/Target/X86/X86ISelLowering.cpp:1.225
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.224   Tue May 30 19:50:42 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed May 31 19:30:39 2006
@@ -874,7 +874,7 @@
 if (ObjSize > 4)
   ArgIncrement = ObjSize;
 
-unsigned Reg;
+unsigned Reg = 0;
 SDOperand ArgValue;
 if (ObjIntRegs || ObjXMMRegs) {
   switch (ObjectVT) {



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

2006-05-31 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86ATTAsmPrinter.cpp updated: 1.49 -> 1.50
X86InstrInfo.td updated: 1.273 -> 1.274
X86IntelAsmPrinter.cpp updated: 1.51 -> 1.52
---
Log message:

Rename ASM modifier trunc8, trunc16 to subreg8, subreg16.


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

 X86ATTAsmPrinter.cpp   |4 ++--
 X86InstrInfo.td|6 +++---
 X86IntelAsmPrinter.cpp |4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.49 
llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.50
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.49   Fri May 26 03:04:31 2006
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cppWed May 31 17:34:26 2006
@@ -118,8 +118,8 @@
"Virtual registers should not make it this far!");
 O << '%';
 unsigned Reg = MO.getReg();
-if (Modifier && strncmp(Modifier, "trunc", strlen("trunc")) == 0) {
-  MVT::ValueType VT = (strcmp(Modifier,"trunc16") == 0)
+if (Modifier && strncmp(Modifier, "subreg", strlen("subreg")) == 0) {
+  MVT::ValueType VT = (strcmp(Modifier,"subreg16") == 0)
 ? MVT::i16 : MVT::i8;
   Reg = getX86SubSuperRegister(Reg, VT);
 }


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.273 
llvm/lib/Target/X86/X86InstrInfo.td:1.274
--- llvm/lib/Target/X86/X86InstrInfo.td:1.273   Wed May 31 17:05:11 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Wed May 31 17:34:26 2006
@@ -360,11 +360,11 @@
 
 // Truncate
 def TRUNC_GR32_GR8  : I<0x88, MRMDestReg, (ops GR8:$dst, GR32_:$src),
-  "mov{b} {${src:trunc8}, $dst|$dst, ${src:trunc8}", []>;
+  "mov{b} {${src:subreg8}, $dst|$dst, ${src:subreg8}", []>;
 def TRUNC_GR16_GR8  : I<0x88, MRMDestReg, (ops GR8:$dst, GR16_:$src),
-  "mov{b} {${src:trunc8}, $dst|$dst, ${src:trunc8}}", []>;
+  "mov{b} {${src:subreg8}, $dst|$dst, ${src:subreg8}}", 
[]>;
 def TRUNC_GR32_GR16 : I<0x89, MRMDestReg, (ops GR16:$dst, GR32:$src),
-  "mov{w} {${src:trunc16}, $dst|$dst, ${src:trunc16}}",
+  "mov{w} {${src:subreg16}, $dst|$dst, ${src:subreg16}}",
   [(set GR16:$dst, (trunc GR32:$src))]>;
 
 
//===--===//


Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.51 
llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.52
--- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.51 Fri May 26 03:04:31 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp  Wed May 31 17:34:26 2006
@@ -87,8 +87,8 @@
   case MachineOperand::MO_Register:
 if (MRegisterInfo::isPhysicalRegister(MO.getReg())) {
   unsigned Reg = MO.getReg();
-  if (Modifier && strncmp(Modifier, "trunc", strlen("trunc")) == 0) {
-MVT::ValueType VT = (strcmp(Modifier,"trunc16") == 0)
+  if (Modifier && strncmp(Modifier, "subreg", strlen("subreg")) == 0) {
+MVT::ValueType VT = (strcmp(Modifier,"subreg16") == 0)
   ? MVT::i16 : MVT::i8;
 Reg = getX86SubSuperRegister(Reg, VT);
   }



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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.262 -> 1.263
---
Log message:

Fix casting so there's no warning on Alpha.


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

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


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.262 
llvm/lib/Target/CBackend/Writer.cpp:1.263
--- llvm/lib/Target/CBackend/Writer.cpp:1.262   Wed May 24 14:21:12 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Wed May 31 17:26:11 2006
@@ -685,7 +685,7 @@
 char Buffer[100];
 
 uint64_t ll = DoubleToBits(FPC->getValue());
-sprintf(Buffer, "0x%llx", uint64_t(ll));
+sprintf(Buffer, "0x%llx", static_cast(ll));
 
 std::string Num(&Buffer[0], &Buffer[6]);
 unsigned long Val = strtoul(Num.c_str(), 0, 16);



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


[llvm-commits] CVS: llvm/CREDITS.TXT

2006-05-31 Thread Owen Anderson


Changes in directory llvm:

CREDITS.TXT updated: 1.54 -> 1.55
---
Log message:

Add my most recent work.


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

 CREDITS.TXT |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/CREDITS.TXT
diff -u llvm/CREDITS.TXT:1.54 llvm/CREDITS.TXT:1.55
--- llvm/CREDITS.TXT:1.54   Tue May 16 00:36:15 2006
+++ llvm/CREDITS.TXTWed May 31 17:15:45 2006
@@ -15,7 +15,7 @@
 
 N: Owen Anderson
 E: [EMAIL PROTECTED]
-D: TargetData refactoring, random improvements
+D: LCSSA pass, TargetData refactoring, random improvements
 
 N: Henrik Bach
 D: MingW Win32 API portability layer



___
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-05-31 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.272 -> 1.273
---
Log message:

Sign extender

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

 X86InstrInfo.td |   18 ++
 1 files changed, 10 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.272 
llvm/lib/Target/X86/X86InstrInfo.td:1.273
--- llvm/lib/Target/X86/X86InstrInfo.td:1.272   Tue May 30 01:59:36 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Wed May 31 17:05:11 2006
@@ -706,14 +706,6 @@
 def IDIV32m: I<0xF7, MRM7m, (ops i32mem:$src), // EDX:EAX/[mem32] = EAX,EDX
"idiv{l} $src", []>, Imp<[EAX,EDX],[EAX,EDX]>;
 
-// Sign-extenders for division.
-def CBW : I<0x98, RawFrm, (ops),
-"{cbtw|cbw}", []>, Imp<[AL],[AH]>;   // AX = signext(AL)
-def CWD : I<0x99, RawFrm, (ops),
-"{cwtd|cwd}", []>, Imp<[AX],[DX]>;   // DX:AX = signext(AX)
-def CDQ : I<0x99, RawFrm, (ops),
-"{cltd|cdq}", []>, Imp<[EAX],[EDX]>; // EDX:EAX = signext(EAX)
-  
 
 
//===--===//
 //  Two address Instructions...
@@ -2285,6 +2277,16 @@
"movz{wl|x} {$src, $dst|$dst, $src}",
[(set GR32:$dst, (zextloadi32i16 addr:$src))]>, TB;
 
+def CBW : I<0x98, RawFrm, (ops),
+"{cbtw|cbw}", []>, Imp<[AL],[AX]>;   // AX = signext(AL)
+def CWDE : I<0x98, RawFrm, (ops),
+"{cwtl|cwde}", []>, Imp<[AX],[EAX]>;   // EAX = signext(AX)
+
+def CWD : I<0x99, RawFrm, (ops),
+"{cwtd|cwd}", []>, Imp<[AX],[AX,DX]>;   // DX:AX = signext(AX)
+def CDQ : I<0x99, RawFrm, (ops),
+"{cltd|cdq}", []>, Imp<[EAX],[EAX,EDX]>; // EDX:EAX = signext(EAX)
+  
 
//===--===//
 // Miscellaneous Instructions
 
//===--===//



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


[llvm-commits] CVS: llvm/lib/Support/bzip2/bzlib.c

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/Support/bzip2:

bzlib.c updated: 1.2 -> 1.3
---
Log message:

Squelch this warning:
/bzlib.c:126: warning: string length `1056' is greater than the length `509' ISO
C89 compilers are required to support


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

 bzlib.c |4 
 1 files changed, 4 insertions(+)


Index: llvm/lib/Support/bzip2/bzlib.c
diff -u llvm/lib/Support/bzip2/bzlib.c:1.2 llvm/lib/Support/bzip2/bzlib.c:1.3
--- llvm/lib/Support/bzip2/bzlib.c:1.2  Thu Apr 21 23:08:30 2005
+++ llvm/lib/Support/bzip2/bzlib.c  Wed May 31 16:53:42 2006
@@ -108,6 +108,8 @@
   "memory reads/writes, and so acts (unintendedly) as a stress\n"
   "test of your memory system.\n"
   "\n"
+   );
+   fprintf(stderr,
   "I suggest the following: try compressing the file again,\n"
   "possibly monitoring progress in detail with the -vv flag.\n"
   "\n"
@@ -118,6 +120,8 @@
   "  Memtest86 tests memory much more thorougly than your BIOSs\n"
   "  power-on test, and may find failures that the BIOS doesn't.\n"
   "\n"
+   );
+   fprintf(stderr,
   "* If the error can be repeatably reproduced, this is a bug in\n"
   "  bzip2, and I would very much like to hear about it.  Please\n"
   "  let me know, and, ideally, save a copy of the file causing the\n"



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


[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

2006-05-31 Thread Chris Lattner


Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.31 -> 1.32
---
Log message:

Fix utostr once and for all, by making there only be one function named
utostr.  To keep the efficiency in the 32-bit case, make it check to see if
the value is 32-bits and if so switch over to the faster 32-bit case.


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

 StringExtras.h |   31 ++-
 1 files changed, 14 insertions(+), 17 deletions(-)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.31 
llvm/include/llvm/ADT/StringExtras.h:1.32
--- llvm/include/llvm/ADT/StringExtras.h:1.31   Wed May 31 15:18:27 2006
+++ llvm/include/llvm/ADT/StringExtras.hWed May 31 16:25:50 2006
@@ -39,9 +39,9 @@
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(uint64_t X, bool isNeg = false) {
-  char Buffer[40];
-  char *BufPtr = Buffer+39;
+static inline std::string utostr_32(uint32_t X, bool isNeg = false) {
+  char Buffer[20];
+  char *BufPtr = Buffer+19;
 
   *BufPtr = 0;  // Null terminate buffer...
   if (X == 0) *--BufPtr = '0';  // Handle special case...
@@ -52,26 +52,30 @@
   }
 
   if (isNeg) *--BufPtr = '-';   // Add negative sign...
+
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(uint32_t X, bool isNeg = false) {
-  char Buffer[20];
-  char *BufPtr = Buffer+19;
-
+static inline std::string utostr(uint64_t X, bool isNeg = false) {
+  if (X == (uint32_t)X)
+return utostr_32((uint32_t)X, isNeg);
+  
+  char Buffer[40];
+  char *BufPtr = Buffer+39;
+  
   *BufPtr = 0;  // Null terminate buffer...
   if (X == 0) *--BufPtr = '0';  // Handle special case...
-
+  
   while (X) {
 *--BufPtr = '0' + char(X % 10);
 X /= 10;
   }
-
+  
   if (isNeg) *--BufPtr = '-';   // Add negative sign...
-
   return std::string(BufPtr);
 }
 
+
 static inline std::string itostr(int64_t X) {
   if (X < 0)
 return utostr(static_cast(-X), true);
@@ -79,13 +83,6 @@
 return utostr(static_cast(X));
 }
 
-static inline std::string itostr(int32_t X) {
-  if (X < 0)
-return utostr(static_cast(-X), true);
-  else
-return utostr(static_cast(X));
-}
-
 static inline std::string ftostr(double V) {
   char Buffer[200];
   sprintf(Buffer, "%20.6e", V);



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

2006-05-31 Thread Chris Lattner


Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.488 -> 1.489
---
Log message:

Swap the order of operands created here.  For +&|^, the order doesn't matter,
but for sub, it really does!  Fix fixes a miscompilation of fibheap_cut in
llvmgcc4.


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

 InstructionCombining.cpp |5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.488 
llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.489
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.488   Fri May 26 
14:19:20 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Wed May 31 16:14:00 2006
@@ -4437,7 +4437,7 @@
 Op0BO->getName());
 InsertNewInstBefore(YS, I); // (Y << C)
 Instruction *X =
-  BinaryOperator::create(Op0BO->getOpcode(), YS, V1,
+  BinaryOperator::create(Op0BO->getOpcode(), V1, YS,
  Op0BO->getOperand(0)->getName());
 InsertNewInstBefore(X, I);  // (X + (Y << C))
 Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
@@ -4445,6 +4445,7 @@
 return BinaryOperator::createAnd(X, C2);
   }
   
+  // Turn (((X >> C)&CC) + Y) << C  ->  (X + (Y << C)) & (CC << C)
   if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
   match(Op0BO->getOperand(0),
 m_And(m_Shr(m_Value(V1), m_Value(V2)),
@@ -4460,7 +4461,7 @@
 V1->getName()+".mask");
 InsertNewInstBefore(XM, I); // X & (CC << C)
 
-return BinaryOperator::create(Op0BO->getOpcode(), YS, XM);
+return BinaryOperator::create(Op0BO->getOpcode(), XM, YS);
   }
   
   break;



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

2006-05-31 Thread Owen Anderson


Changes in directory llvm/lib/Transforms/Scalar:

LCSSA.cpp updated: 1.7 -> 1.8
---
Log message:

Extract a huge loop into a helper method.  Fix a few iterator-invalidation bugs.


---
Diffs of the changes:  (+115 -88)

 LCSSA.cpp |  203 +++---
 1 files changed, 115 insertions(+), 88 deletions(-)


Index: llvm/lib/Transforms/Scalar/LCSSA.cpp
diff -u llvm/lib/Transforms/Scalar/LCSSA.cpp:1.7 
llvm/lib/Transforms/Scalar/LCSSA.cpp:1.8
--- llvm/lib/Transforms/Scalar/LCSSA.cpp:1.7Sun May 28 20:00:00 2006
+++ llvm/lib/Transforms/Scalar/LCSSA.cppWed May 31 15:55:06 2006
@@ -36,6 +36,7 @@
 #include "llvm/Analysis/LoopInfo.h"
 #include "llvm/Support/CFG.h"
 #include 
+#include 
 #include 
 #include 
 
@@ -55,6 +56,9 @@
 
 virtual bool runOnFunction(Function &F);
 bool visitSubloop(Loop* L);
+void processInstruction(Instruction* Instr,
+const std::vector& LoopBlocks,
+const std::vector& exitBlocks);
 
 /// This transformation requires natural loop information & requires that
 /// loop preheaders be inserted into the CFG.  It maintains both of these,
@@ -71,7 +75,9 @@
 }
   private:
 std::set getLoopValuesUsedOutsideLoop(Loop *L,
-   std::vector 
LoopBlocks);
+const std::vector& 
LoopBlocks);
+Instruction *getValueDominatingBlock(BasicBlock *BB,
+   std::map 
PotDoms);
   };
   
   RegisterOpt X("lcssa", "Loop-Closed SSA Form Pass");
@@ -103,113 +109,120 @@
   std::set AffectedValues = getLoopValuesUsedOutsideLoop(L,
LoopBlocks);
   
+  // If no values are affected, we can save a lot of work, since we know that
+  // nothing will be changed.
+  if (AffectedValues.empty())
+return false;
+  
   std::vector exitBlocks;
   L->getExitBlocks(exitBlocks);
   
-  // Phi nodes that need to be IDF-processed
-  std::vector workList;
   
   // Iterate over all affected values for this loop and insert Phi nodes
   // for them in the appropriate exit blocks
-  std::map ExitPhis;
+  
   for (std::set::iterator I = AffectedValues.begin(),
E = AffectedValues.end(); I != E; ++I) {
-++NumLCSSA; // We are applying the transformation
-for (std::vector::iterator BBI = exitBlocks.begin(),
- BBE = exitBlocks.end(); BBI != BBE; ++BBI) {
-  PHINode *phi = new PHINode((*I)->getType(), "lcssa");
-  (*BBI)->getInstList().insert((*BBI)->front(), phi);
-  workList.push_back(phi);
-  ExitPhis[*BBI] = phi;
-
-  // Since LoopSimplify has been run, we know that all of these 
predecessors
-  // are in the loop, so just hook them up in the obvious manner.
-  for (pred_iterator PI = pred_begin(*BBI), PE = pred_end(*BBI); PI != PE;
-   ++PI)
-phi->addIncoming(*I, *PI);
-}
+processInstruction(*I, LoopBlocks, exitBlocks);
+  }
+  
+  return true; // FIXME: Should be more intelligent in our return value.
+}
+
+/// processInstruction - 
+void LCSSA::processInstruction(Instruction* Instr,
+   const std::vector& LoopBlocks,
+   const std::vector& exitBlocks)
+{
+  ++NumLCSSA; // We are applying the transformation
   
-// Calculate the IDF of these LCSSA Phi nodes, inserting new Phi's where
-// necessary.  Keep track of these new Phi's in DFPhis.
-std::map DFPhis;
-for (std::vector::iterator DFI = workList.begin(),
- E = workList.end(); DFI != E; ++DFI) {
-
-  // Get the current Phi's DF, and insert Phi nodes.  Add these new
-  // nodes to our worklist.
-  DominanceFrontier::const_iterator it = DF->find((*DFI)->getParent());
-  if (it != DF->end()) {
-const DominanceFrontier::DomSetType &S = it->second;
-for (DominanceFrontier::DomSetType::const_iterator P = S.begin(),
- PE = S.end(); P != PE; ++P) {
-  if (DFPhis[*P] == 0) {
-// Still doesn't have operands...
-PHINode *phi = new PHINode((*DFI)->getType(), "lcssa");
-(*P)->getInstList().insert((*P)->front(), phi);
-DFPhis[*P] = phi;
+  std::map Phis;
+  Phis[Instr->getParent()] = Instr;
+  
+  // Phi nodes that need to be IDF-processed
+  std::vector workList;
+  
+  for (std::vector::const_iterator BBI = exitBlocks.begin(),
+  BBE = exitBlocks.end(); BBI != BBE; ++BBI) {
+PHINode *phi = new PHINode(Instr->getType(), "lcssa", (*BBI)->begin());
+workList.push_back(phi);
+Phis[*BBI] = phi;
+
+// Since LoopSimplify has been run, we know that all of these predecessors
+// are in the loop, so just hook them up in the obvious manner.
+//for (pred_iterator PI = pred_begin(*BBI), PE = pred_end(*BBI); PI != PE;
+// ++PI)
+//  phi->addIncoming(Instr, *PI);
+  }
+  
+  // Calculate the IDF of these LCSSA 

[llvm-commits] CVS: llvm/include/llvm/ValueSymbolTable.h TypeSymbolTable.h SymbolTable.h

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/include/llvm:

ValueSymbolTable.h updated: 1.2 -> 1.3
TypeSymbolTable.h updated: 1.3 -> 1.4
SymbolTable.h updated: 1.52 -> 1.53
---
Log message:

4 billion names is enough for anyone.  And really fix the build on alpha this 
time

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

 SymbolTable.h  |3 ++-
 TypeSymbolTable.h  |2 +-
 ValueSymbolTable.h |2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/ValueSymbolTable.h
diff -u llvm/include/llvm/ValueSymbolTable.h:1.2 
llvm/include/llvm/ValueSymbolTable.h:1.3
--- llvm/include/llvm/ValueSymbolTable.h:1.2Wed May 31 15:18:28 2006
+++ llvm/include/llvm/ValueSymbolTable.hWed May 31 15:40:31 2006
@@ -127,7 +127,7 @@
 /// @{
 private:
   ValueMap vmap;///< The map that holds the symbol table.
-  mutable uint64_t LastUnique; ///< Counter for tracking unique names
+  mutable uint32_t LastUnique; ///< Counter for tracking unique names
 
 /// @}
 


Index: llvm/include/llvm/TypeSymbolTable.h
diff -u llvm/include/llvm/TypeSymbolTable.h:1.3 
llvm/include/llvm/TypeSymbolTable.h:1.4
--- llvm/include/llvm/TypeSymbolTable.h:1.3 Wed May 31 15:18:28 2006
+++ llvm/include/llvm/TypeSymbolTable.h Wed May 31 15:40:34 2006
@@ -138,7 +138,7 @@
 /// @{
 private:
   TypeMap tmap; ///< This is the mapping of names to types.
-  mutable uint64_t LastUnique; ///< Counter for tracking unique names
+  mutable uint32_t LastUnique; ///< Counter for tracking unique names
 
 /// @}
 


Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.52 
llvm/include/llvm/SymbolTable.h:1.53
--- llvm/include/llvm/SymbolTable.h:1.52Wed May 31 15:18:28 2006
+++ llvm/include/llvm/SymbolTable.h Wed May 31 15:40:36 2006
@@ -16,6 +16,7 @@
 #define LLVM_SYMBOL_TABLE_H
 
 #include "llvm/Value.h"
+#include "llvm/Support/DataTypes.h"
 #include 
 
 namespace llvm {
@@ -292,7 +293,7 @@
 
   /// This value is used to retain the last unique value used
   /// by getUniqueName to generate unique names.
-  mutable uint64_t LastUnique;
+  mutable uint32_t LastUnique;
 
 /// @}
 



___
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/ValueSymbolTable.h TypeSymbolTable.h SymbolTable.h

2006-05-31 Thread Andrew Lenharth
On Wed, 2006-05-31 at 16:17, Chris Lattner wrote:
> On Wed, 31 May 2006, Reid Spencer wrote:
> > Wouldn't uint32_t be sufficient for these? I can't see anyone having
> > more than 4 billion name collisions. And it reduce a little arithmetic
> > cost on 32-bit platforms.
> 
> Fine with me either way.  Collision handling code isn't going to amazingly 
> suffer from having to increment a 64-bit value on 32-bit hosts, but utostr 
> is a little more expensive for 64-bit values I guess.

I almost made it uint32_t.  I don't think it matters.

Andrew

> -Chris
> 
> > On Wed, 2006-05-31 at 15:18 -0500, Andrew Lenharth wrote:
> >> Log message:
> >>
> >> Fix build breakage on alpha, without causing it on x86.  as a bonus, all 
> >> platforms can invent the same number of unique names now
> >> Index: llvm/include/llvm/ValueSymbolTable.h
> >> diff -u llvm/include/llvm/ValueSymbolTable.h:1.1 
> >> llvm/include/llvm/ValueSymbolTable.h:1.2
> >> --- llvm/include/llvm/ValueSymbolTable.h:1.1   Tue Jan 10 03:51:48 2006
> >> +++ llvm/include/llvm/ValueSymbolTable.h   Wed May 31 15:18:28 2006
> >> @@ -127,7 +127,7 @@
> >>  /// @{
> >>  private:
> >>ValueMap vmap;///< The map that holds the symbol 
> >> table.
> >> -  mutable unsigned long LastUnique; ///< Counter for tracking unique names
> >> +  mutable uint64_t LastUnique; ///< Counter for tracking unique names
> >>
> >
> >
> 
> -Chris
-- 
http://www.lenharth.org/~andrewl/

And without software to do something useful with all that hardware, the
hardware's nothing more than a really complicated space heater.
--Neal Stephenson

___
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/ValueSymbolTable.h TypeSymbolTable.h SymbolTable.h

2006-05-31 Thread Chris Lattner

On Wed, 31 May 2006, Reid Spencer wrote:

Wouldn't uint32_t be sufficient for these? I can't see anyone having
more than 4 billion name collisions. And it reduce a little arithmetic
cost on 32-bit platforms.


Fine with me either way.  Collision handling code isn't going to amazingly 
suffer from having to increment a 64-bit value on 32-bit hosts, but utostr 
is a little more expensive for 64-bit values I guess.


-Chris


On Wed, 2006-05-31 at 15:18 -0500, Andrew Lenharth wrote:

Log message:

Fix build breakage on alpha, without causing it on x86.  as a bonus, all 
platforms can invent the same number of unique names now
Index: llvm/include/llvm/ValueSymbolTable.h
diff -u llvm/include/llvm/ValueSymbolTable.h:1.1 
llvm/include/llvm/ValueSymbolTable.h:1.2
--- llvm/include/llvm/ValueSymbolTable.h:1.1Tue Jan 10 03:51:48 2006
+++ llvm/include/llvm/ValueSymbolTable.hWed May 31 15:18:28 2006
@@ -127,7 +127,7 @@
 /// @{
 private:
   ValueMap vmap;///< The map that holds the symbol table.
-  mutable unsigned long LastUnique; ///< Counter for tracking unique names
+  mutable uint64_t LastUnique; ///< Counter for tracking unique names






-Chris

--
http://nondot.org/sabre/
http://llvm.org/
___
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/ValueSymbolTable.h TypeSymbolTable.h SymbolTable.h

2006-05-31 Thread Reid Spencer
Wouldn't uint32_t be sufficient for these? I can't see anyone having
more than 4 billion name collisions. And it reduce a little arithmetic
cost on 32-bit platforms.

Reid.

On Wed, 2006-05-31 at 15:18 -0500, Andrew Lenharth wrote:
> Log message:
> 
> Fix build breakage on alpha, without causing it on x86.  as a bonus, all 
> platforms can invent the same number of unique names now
> Index: llvm/include/llvm/ValueSymbolTable.h
> diff -u llvm/include/llvm/ValueSymbolTable.h:1.1 
> llvm/include/llvm/ValueSymbolTable.h:1.2
> --- llvm/include/llvm/ValueSymbolTable.h:1.1  Tue Jan 10 03:51:48 2006
> +++ llvm/include/llvm/ValueSymbolTable.h  Wed May 31 15:18:28 2006
> @@ -127,7 +127,7 @@
>  /// @{
>  private:
>ValueMap vmap;///< The map that holds the symbol table.
> -  mutable unsigned long LastUnique; ///< Counter for tracking unique names
> +  mutable uint64_t LastUnique; ///< Counter for tracking unique names
>  



signature.asc
Description: This is a digitally signed message part
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/tools/llvm2cpp:

CppWriter.cpp updated: 1.8 -> 1.9
---
Log message:

fix utostr

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

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


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.8 
llvm/tools/llvm2cpp/CppWriter.cpp:1.9
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.8   Wed May 31 12:31:38 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp   Wed May 31 15:18:56 2006
@@ -75,7 +75,7 @@
   const char* progname;
   std::ostream &Out;
   const Module *TheModule;
-  unsigned long uniqueNum;
+  uint64_t uniqueNum;
   TypeMap TypeNames;
   ValueMap ValueNames;
   TypeMap UnresolvedTypes;



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


[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.30 -> 1.31
---
Log message:

Fix build breakage on alpha, without causing it on x86.  as a bonus, all 
platforms can invent the same number of unique names now

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

 StringExtras.h |   15 ++-
 1 files changed, 2 insertions(+), 13 deletions(-)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.30 
llvm/include/llvm/ADT/StringExtras.h:1.31
--- llvm/include/llvm/ADT/StringExtras.h:1.30   Wed May 31 14:16:26 2006
+++ llvm/include/llvm/ADT/StringExtras.hWed May 31 15:18:27 2006
@@ -55,11 +55,7 @@
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(unsigned long X, bool isNeg = false) {
-  return utostr(static_cast(X), isNeg);
-}
-
-static inline std::string utostr(unsigned X, bool isNeg = false) {
+static inline std::string utostr(uint32_t X, bool isNeg = false) {
   char Buffer[20];
   char *BufPtr = Buffer+19;
 
@@ -83,14 +79,7 @@
 return utostr(static_cast(X));
 }
 
-static inline std::string itostr(long X) {
-  if (X < 0)
-return utostr(static_cast(-X), true);
-  else
-return utostr(static_cast(X));
-}
-
-static inline std::string itostr(int X) {
+static inline std::string itostr(int32_t X) {
   if (X < 0)
 return utostr(static_cast(-X), true);
   else



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


[llvm-commits] CVS: llvm/include/llvm/ValueSymbolTable.h TypeSymbolTable.h SymbolTable.h

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/include/llvm:

ValueSymbolTable.h updated: 1.1 -> 1.2
TypeSymbolTable.h updated: 1.2 -> 1.3
SymbolTable.h updated: 1.51 -> 1.52
---
Log message:

Fix build breakage on alpha, without causing it on x86.  as a bonus, all 
platforms can invent the same number of unique names now

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

 SymbolTable.h  |2 +-
 TypeSymbolTable.h  |2 +-
 ValueSymbolTable.h |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/ValueSymbolTable.h
diff -u llvm/include/llvm/ValueSymbolTable.h:1.1 
llvm/include/llvm/ValueSymbolTable.h:1.2
--- llvm/include/llvm/ValueSymbolTable.h:1.1Tue Jan 10 03:51:48 2006
+++ llvm/include/llvm/ValueSymbolTable.hWed May 31 15:18:28 2006
@@ -127,7 +127,7 @@
 /// @{
 private:
   ValueMap vmap;///< The map that holds the symbol table.
-  mutable unsigned long LastUnique; ///< Counter for tracking unique names
+  mutable uint64_t LastUnique; ///< Counter for tracking unique names
 
 /// @}
 


Index: llvm/include/llvm/TypeSymbolTable.h
diff -u llvm/include/llvm/TypeSymbolTable.h:1.2 
llvm/include/llvm/TypeSymbolTable.h:1.3
--- llvm/include/llvm/TypeSymbolTable.h:1.2 Tue Jan 10 23:38:15 2006
+++ llvm/include/llvm/TypeSymbolTable.h Wed May 31 15:18:28 2006
@@ -138,7 +138,7 @@
 /// @{
 private:
   TypeMap tmap; ///< This is the mapping of names to types.
-  mutable unsigned long LastUnique; ///< Counter for tracking unique names
+  mutable uint64_t LastUnique; ///< Counter for tracking unique names
 
 /// @}
 


Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.51 
llvm/include/llvm/SymbolTable.h:1.52
--- llvm/include/llvm/SymbolTable.h:1.51Sun May 15 11:13:11 2005
+++ llvm/include/llvm/SymbolTable.h Wed May 31 15:18:28 2006
@@ -292,7 +292,7 @@
 
   /// This value is used to retain the last unique value used
   /// by getUniqueName to generate unique names.
-  mutable unsigned long LastUnique;
+  mutable uint64_t LastUnique;
 
 /// @}
 



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


[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.29 -> 1.30
---
Log message:

revert for now

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

 StringExtras.h |   15 +--
 1 files changed, 13 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.29 
llvm/include/llvm/ADT/StringExtras.h:1.30
--- llvm/include/llvm/ADT/StringExtras.h:1.29   Wed May 31 13:56:42 2006
+++ llvm/include/llvm/ADT/StringExtras.hWed May 31 14:16:26 2006
@@ -55,7 +55,11 @@
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(uint32_t X, bool isNeg = false) {
+static inline std::string utostr(unsigned long X, bool isNeg = false) {
+  return utostr(static_cast(X), isNeg);
+}
+
+static inline std::string utostr(unsigned X, bool isNeg = false) {
   char Buffer[20];
   char *BufPtr = Buffer+19;
 
@@ -79,7 +83,14 @@
 return utostr(static_cast(X));
 }
 
-static inline std::string itostr(int32_t X) {
+static inline std::string itostr(long X) {
+  if (X < 0)
+return utostr(static_cast(-X), true);
+  else
+return utostr(static_cast(X));
+}
+
+static inline std::string itostr(int X) {
   if (X < 0)
 return utostr(static_cast(-X), true);
   else



___
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/X86InstrSSE.td X86RegisterInfo.cpp

2006-05-31 Thread Evan Cheng


Changes in directory llvm/lib/Target/X86:

X86InstrSSE.td updated: 1.121 -> 1.122
X86RegisterInfo.cpp updated: 1.154 -> 1.155
---
Log message:

Rename instructions for consistency sake.


---
Diffs of the changes:  (+102 -92)

 X86InstrSSE.td  |  164 ++--
 X86RegisterInfo.cpp |   30 ++---
 2 files changed, 102 insertions(+), 92 deletions(-)


Index: llvm/lib/Target/X86/X86InstrSSE.td
diff -u llvm/lib/Target/X86/X86InstrSSE.td:1.121 
llvm/lib/Target/X86/X86InstrSSE.td:1.122
--- llvm/lib/Target/X86/X86InstrSSE.td:1.121Tue May 30 19:51:37 2006
+++ llvm/lib/Target/X86/X86InstrSSE.td  Wed May 31 14:00:07 2006
@@ -534,20 +534,20 @@
 Requires<[HasSSE2]>;
 
 // Match intrinsics which expect XMM operand(s).
-def CVTSS2SIrr: SSI<0x2D, MRMSrcReg, (ops GR32:$dst, VR128:$src),
-"cvtss2si {$src, $dst|$dst, $src}",
-[(set GR32:$dst, (int_x86_sse_cvtss2si VR128:$src))]>;
-def CVTSS2SIrm: SSI<0x2D, MRMSrcMem, (ops GR32:$dst, f32mem:$src),
-"cvtss2si {$src, $dst|$dst, $src}",
-[(set GR32:$dst, (int_x86_sse_cvtss2si
- (loadv4f32 addr:$src)))]>;
-def CVTSD2SIrr: SDI<0x2D, MRMSrcReg, (ops GR32:$dst, VR128:$src),
-"cvtsd2si {$src, $dst|$dst, $src}",
-[(set GR32:$dst, (int_x86_sse2_cvtsd2si VR128:$src))]>;
-def CVTSD2SIrm: SDI<0x2D, MRMSrcMem, (ops GR32:$dst, f128mem:$src),
-"cvtsd2si {$src, $dst|$dst, $src}",
-[(set GR32:$dst, (int_x86_sse2_cvtsd2si
- (loadv2f64 addr:$src)))]>;
+def Int_CVTSS2SIrr: SSI<0x2D, MRMSrcReg, (ops GR32:$dst, VR128:$src),
+"cvtss2si {$src, $dst|$dst, $src}",
+[(set GR32:$dst, (int_x86_sse_cvtss2si VR128:$src))]>;
+def Int_CVTSS2SIrm: SSI<0x2D, MRMSrcMem, (ops GR32:$dst, f32mem:$src),
+"cvtss2si {$src, $dst|$dst, $src}",
+[(set GR32:$dst, (int_x86_sse_cvtss2si
+  (loadv4f32 addr:$src)))]>;
+def Int_CVTSD2SIrr: SDI<0x2D, MRMSrcReg, (ops GR32:$dst, VR128:$src),
+"cvtsd2si {$src, $dst|$dst, $src}",
+[(set GR32:$dst, (int_x86_sse2_cvtsd2si VR128:$src))]>;
+def Int_CVTSD2SIrm: SDI<0x2D, MRMSrcMem, (ops GR32:$dst, f128mem:$src),
+"cvtsd2si {$src, $dst|$dst, $src}",
+[(set GR32:$dst, (int_x86_sse2_cvtsd2si
+  (loadv2f64 addr:$src)))]>;
 
 // Aliases for intrinsics
 def Int_CVTTSS2SIrr: SSI<0x2C, MRMSrcReg, (ops GR32:$dst, VR128:$src),
@@ -884,81 +884,81 @@
 SSE_splat_v2_mask)))]>;
 
 // SSE2 instructions without OpSize prefix
-def CVTDQ2PSrr : I<0x5B, MRMSrcReg, (ops VR128:$dst, VR128:$src),
-   "cvtdq2ps {$src, $dst|$dst, $src}",
-   [(set VR128:$dst, (int_x86_sse2_cvtdq2ps VR128:$src))]>,
- TB, Requires<[HasSSE2]>;
-def CVTDQ2PSrm : I<0x5B, MRMSrcMem, (ops VR128:$dst, i128mem:$src),
-  "cvtdq2ps {$src, $dst|$dst, $src}",
-  [(set VR128:$dst, (int_x86_sse2_cvtdq2ps
- (bc_v4i32 (loadv2i64 addr:$src]>,
- TB, Requires<[HasSSE2]>;
+def Int_CVTDQ2PSrr : I<0x5B, MRMSrcReg, (ops VR128:$dst, VR128:$src),
+   "cvtdq2ps {$src, $dst|$dst, $src}",
+   [(set VR128:$dst, (int_x86_sse2_cvtdq2ps VR128:$src))]>,
+ TB, Requires<[HasSSE2]>;
+def Int_CVTDQ2PSrm : I<0x5B, MRMSrcMem, (ops VR128:$dst, i128mem:$src),
+   "cvtdq2ps {$src, $dst|$dst, $src}",
+   [(set VR128:$dst, (int_x86_sse2_cvtdq2ps
+  (bc_v4i32 (loadv2i64 addr:$src]>,
+ TB, Requires<[HasSSE2]>;
 
 // SSE2 instructions with XS prefix
-def CVTDQ2PDrr : I<0xE6, MRMSrcReg, (ops VR128:$dst, VR128:$src),
-   "cvtdq2pd {$src, $dst|$dst, $src}",
-   [(set VR128:$dst, (int_x86_sse2_cvtdq2pd VR128:$src))]>,
- XS, Requires<[HasSSE2]>;
-def CVTDQ2PDrm : I<0xE6, MRMSrcMem, (ops VR128:$dst, i64mem:$src),
-   "cvtdq2pd {$src, $dst|$dst, $src}",
-   [(set VR128:$dst, (int_x86_sse2_cvtdq2pd
-  (bc_v4i32 (loadv2i64 addr:$src]>,
- XS, Requires<[HasSSE2]>;
-
-def CVTPS2DQrr : PDI<0x5B, MRMSrcReg, (ops VR128:$dst, VR128:$src),
- "cvtps2dq {$src, $dst|$dst, $src}",
- [(set VR128:$dst, (int_x86_sse2_cvtps2dq VR128:$src))]>;
-def CVTPS2DQrm : PDI<0x5B, MRMSrcMem, (ops VR128:$dst, f128mem:$src),
- "cvtps2dq {$src, $dst|$dst, $src}",
- [(set VR128:$dst, (int_x86_sse2_cv

[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

2006-05-31 Thread Andrew Lenharth


Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.28 -> 1.29
---
Log message:

make 64-bit safe and fix the build on alpha

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

 StringExtras.h |   15 ++-
 1 files changed, 2 insertions(+), 13 deletions(-)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.28 
llvm/include/llvm/ADT/StringExtras.h:1.29
--- llvm/include/llvm/ADT/StringExtras.h:1.28   Wed May 24 14:21:13 2006
+++ llvm/include/llvm/ADT/StringExtras.hWed May 31 13:56:42 2006
@@ -55,11 +55,7 @@
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(unsigned long X, bool isNeg = false) {
-  return utostr(static_cast(X), isNeg);
-}
-
-static inline std::string utostr(unsigned X, bool isNeg = false) {
+static inline std::string utostr(uint32_t X, bool isNeg = false) {
   char Buffer[20];
   char *BufPtr = Buffer+19;
 
@@ -83,14 +79,7 @@
 return utostr(static_cast(X));
 }
 
-static inline std::string itostr(long X) {
-  if (X < 0)
-return utostr(static_cast(-X), true);
-  else
-return utostr(static_cast(X));
-}
-
-static inline std::string itostr(int X) {
+static inline std::string itostr(int32_t X) {
   if (X < 0)
 return utostr(static_cast(-X), true);
   else



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

2006-05-31 Thread Evan Cheng


Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAG.cpp updated: 1.94 -> 1.95
---
Log message:

commuteInstruction() does not always create a new MI!


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

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


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94 
llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.95
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94  Wed May 31 02:13:03 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp   Wed May 31 13:03:39 2006
@@ -402,8 +402,10 @@
 DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
   else {
 DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
-delete MI;
-MI = NewMI;
+if (MI != NewMI) {
+  delete MI;
+  MI = NewMI;
+}
   }
 }
 



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


[llvm-commits] CVS: llvm/docs/CommandGuide/tblgen.pod

2006-05-31 Thread Reid Spencer


Changes in directory llvm/docs/CommandGuide:

tblgen.pod added (r1.1)
---
Log message:

Add a brief description for the tblgen program. More detail is needed but
the current author is not the person to provide it. Now that the file 
exists, perhaps others will chime in and embellish.


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

 tblgen.pod |  119 +
 1 files changed, 119 insertions(+)


Index: llvm/docs/CommandGuide/tblgen.pod
diff -c /dev/null llvm/docs/CommandGuide/tblgen.pod:1.1
*** /dev/null   Wed May 31 12:54:50 2006
--- llvm/docs/CommandGuide/tblgen.pod   Wed May 31 12:54:39 2006
***
*** 0 
--- 1,119 
+ 
+ =pod
+ 
+ =head1 NAME
+ 
+ tblgen - Target Description To C++ Code Generator
+ 
+ =head1 SYNOPSIS
+ 
+ B [I] [I]
+ 
+ =head1 DESCRIPTION
+ 
+ B translates from target description (.td) files into C++ code that 
can
+ be included in the definition of an LLVM target library. Most users of LLVM 
will
+ not need to use this program. It is only for assisting with writing an LLVM
+ target backend.
+ 
+ The input and output of B is beyond the scope of this short
+ introduction. Please see the I page in the LLVM documentation.
+ 
+ The F argument specifies the name of a Target Description (.td) file
+ to read as input.
+ 
+ =head1 OPTIONS
+ 
+ =over
+ 
+ =item B<--help>
+ 
+ Print a summary of command line options.
+ 
+ =item B<-o> F
+ 
+ Specify the output file name.  If F is C<->, then B
+ sends its output to standard output.
+ 
+ =item B<-I> F
+ 
+ Specify where to find other target description files for inclusion. The
+ F value should be a full or partial path to a directory that 
contains
+ target description files.
+ 
+ =item B<-asmwriternum> F
+ 
+ Make -gen-asm-writer emit assembly writer number F.
+ 
+ =item B<-class> F
+ 
+ Print the enumeration list for this class.
+ 
+ =item B<-print-records>
+ 
+ Print all records to standard output (default).
+ 
+ =item B<-print-enums>
+ 
+ Print enumeration values for a class
+ 
+ =item B<-gen-emitter>
+ 
+ Generate machine code emitter.
+ 
+ =item B<-gen-register-enums>
+ 
+ Generate the enumeration values for all registers.
+ 
+ =item B<-gen-register-desc>
+ 
+ Generate a register info description for each register.
+ 
+ =item B<-gen-register-desc-header>
+ 
+ Generate a register info description header for each register.
+ 
+ =item B<-gen-instr-enums>
+ 
+ Generate enumeration values for instructions.
+ 
+ =item B<-gen-instr-desc>
+ 
+ Generate instruction descriptions.
+ 
+ =item B<-gen-asm-writer>
+ 
+ Generate the assembly writer.
+ 
+ =item B<-gen-dag-isel>
+ 
+ Generate a DAG (Directed Acycle Graph) instruction selector.
+ 
+ =item B<-gen-subtarget>
+ 
+ Generate subtarget enumerations.
+ 
+ =item B<-gen-intrinsic>
+ 
+ Generate intrinsic information.
+ 
+ =item B<-version>
+ 
+ Show the version number of this program.
+ 
+ =back
+ 
+ =head1 EXIT STATUS
+ 
+ If B succeeds, it will exit with 0.  Otherwise, if an error
+ occurs, it will exit with a non-zero value.
+ 
+ =head1 SEE ALSO
+ 
+ L
+ 
+ =head1 AUTHORS
+ 
+ Mainteind by The LLVM Team (L).
+ 
+ =cut



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


[llvm-commits] CVS: llvm/docs/CommandGuide/llvm2cpp.pod

2006-05-31 Thread Reid Spencer


Changes in directory llvm/docs/CommandGuide:

llvm2cpp.pod updated: 1.2 -> 1.3
---
Log message:

Update the documentation for llvm2cpp after the -gen-* options were added.


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

 llvm2cpp.pod |  122 ---
 1 files changed, 108 insertions(+), 14 deletions(-)


Index: llvm/docs/CommandGuide/llvm2cpp.pod
diff -u llvm/docs/CommandGuide/llvm2cpp.pod:1.2 
llvm/docs/CommandGuide/llvm2cpp.pod:1.3
--- llvm/docs/CommandGuide/llvm2cpp.pod:1.2 Tue May 30 16:19:29 2006
+++ llvm/docs/CommandGuide/llvm2cpp.pod Wed May 31 12:32:21 2006
@@ -57,19 +57,17 @@
 
 Print a summary of command line options.
 
+=item B<-f> 
+
+Normally, B will not overwrite an existing output file. With this
+option, that default behavior is changed and the program will overwrite 
existing
+output files.
+
 =item B<-o> F
 
 Specify the output file name.  If F is C<->, then B
 sends its output to standard output.
 
-=item B<-modname> F
-
-Specify the name of the module to be generated. Normally the generated program
-creates a module that has the same name as the input file. If the input file 
was
-read from the standard input then the module name will be ''. This 
option
-overrides both these default actions and specifies that the module name used
-must be F.
-
 =item B<-funcname> F
 
 Specify the name of the function to be generated. The generated code contains a
@@ -80,11 +78,107 @@
 single function that produces the module. With both options, such generated 
code
 could be I<#included> into another program.
 
-=item B<-fragment>
+=item B<-for>
+
+Specify the name of the thing for which C++ code should be generated. By 
default
+the entire input module is re-generated. However, use of the various B<-gen-*>
+options can restrict what is produced. This option indicates what that
+restriction is.
+
+=item B<-gen-program>
+
+Specify that the output should be a complete program. Such program will 
recreate
+B's input as an LLVM module, verify that module, and then write out
+the module in LLVM assembly format. This is useful for doing identity tests
+where the output of the generated program is identical to the input to
+B. The LLVM DejaGnu test suite can make use of this fact. This is the
+default form of generated output.
+
+If the B<-for> option is given with this option, it specifies the module
+identifier to use for the module created.
+
+=item B<-gen-module>
+
+Specify that the output should be a function that regenerates the module. It is
+assumed that this output will be #included into another program that has 
already
+arranged for the correct header files to be #included. The function generated
+takes no arguments and returns a I. 
+
+If the B<-for> option is given with this option, it specifies the module
+identifier to use in creating the module returned by the generated function.
+
+=item B<-gen-contents>
+
+Specify that the output should be a function that adds the contents of the 
input
+module to another module. It is assumed that the output will be #included into
+another program that has already arranged for the correct header files to be
+#included. The function generated takes a single argument of type I 
and
+returns that argument. Note that Module level attributes such as endianess,
+pointer size, target triple and inline asm are not passed on from the input
+module to the destination module. Only the sub-elements of the module (types,
+constants, functions, global variables) will be added to the input module.
+
+If the B<-for> option is given with this option, it specifies the module
+identifier to set in the input module by the generated function.
+
+=item B<-gen-function>
+
+Specify that the output should be a function that produces the definitions
+necessary for a specific function to be added to a module.  It is assumed that 
+the output will be #included into another program that has already arranged 
+for the correct header files to be #included. The function generated takes a 
+single argument of type I and returns the I that it added 
to
+the module.  Note that only those things (types, constants, etc.) directly 
+needed in the definition of the function will be placed in the generated
+function. 
+
+The B<-for> option must be given with this option or an error will be produced.
+The value of the option must be the name of a function in the input module for
+which code should be generated. If the named function does not exist an error
+will be produced.
+
+=item B<-gen-variable>
+
+Specify that the output should be a function that produces the definitions
+necessary for a specific global variable to be added to a module. It is assumed
+that the output will be #included into another program that has already 
arranged
+for the correct header files to be #included. The function generated takes a
+single argument of type I and returns the I that it 
+added to the module. Note that only those things (types, constants, etc.)
+directl

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Reid Spencer


Changes in directory llvm/tools/llvm2cpp:

CppWriter.cpp updated: 1.7 -> 1.8
---
Log message:

Major reorganization and extension of the code. The diff on this will be a
mess as functions were moved around into a better ordering. The code was
extended to provide various -gen-* options to better control what the 
generated output should be. Currently it is possible to generate entire
modules (three different ways), functions, global variables, and types.


---
Diffs of the changes:  (+727 -516)

 CppWriter.cpp | 1243 +-
 1 files changed, 727 insertions(+), 516 deletions(-)


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.7 
llvm/tools/llvm2cpp/CppWriter.cpp:1.8
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.7   Tue May 30 23:43:19 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp   Wed May 31 12:31:38 2006
@@ -32,15 +32,35 @@
 using namespace llvm;
 
 static cl::opt
-ModName("modname", cl::desc("Specify the module name to use"),
-cl::value_desc("module name"));
-
-static cl::opt
 FuncName("funcname", cl::desc("Specify the name of the generated function"),
  cl::value_desc("function name"));
 
-static cl::opt
-Fragment("fragment", cl::desc("Don't generate a complete program"));
+enum WhatToGenerate {
+  GenProgram,
+  GenModule,
+  GenContents,
+  GenFunction,
+  GenVariable,
+  GenType
+};
+
+static cl::opt GenerationType(cl::Optional,
+  cl::desc("Choose what kind of output to generate"),
+  cl::init(GenProgram),
+  cl::values(
+clEnumValN(GenProgram, "gen-program",  "Generate a complete program"),
+clEnumValN(GenModule,  "gen-module",   "Generate a module definition"),
+clEnumValN(GenContents,"gen-contents", "Generate contents of a module"),
+clEnumValN(GenFunction,"gen-function", "Generate a function definition"),
+clEnumValN(GenVariable,"gen-variable", "Generate a variable definition"),
+clEnumValN(GenType,"gen-type", "Generate a type definition"),
+clEnumValEnd
+  )
+);
+
+static cl::opt NameToGenerate("for", cl::Optional,
+  cl::desc("Specify the name of the thing to generate"),
+  cl::init("!bad!"));
 
 namespace {
 typedef std::vector TypeList;
@@ -52,6 +72,7 @@
 typedef std::map ForwardRefMap;
 
 class CppWriter {
+  const char* progname;
   std::ostream &Out;
   const Module *TheModule;
   unsigned long uniqueNum;
@@ -65,42 +86,110 @@
   ForwardRefMap ForwardRefs;
 
 public:
-  inline CppWriter(std::ostream &o, const Module *M)
-: Out(o), TheModule(M), uniqueNum(0), TypeNames(),
+  inline CppWriter(std::ostream &o, const Module *M, const char* pn="llvm2cpp")
+: progname(pn), Out(o), TheModule(M), uniqueNum(0), TypeNames(),
   ValueNames(), UnresolvedTypes(), TypeStack() { }
 
   const Module* getModule() { return TheModule; }
 
-  void printModule();
-  void printFragment();
+  void printProgram(const std::string& fname, const std::string& modName );
+  void printModule(const std::string& fname, const std::string& modName );
+  void printContents(const std::string& fname, const std::string& modName );
+  void printFunction(const std::string& fname, const std::string& funcName );
+  void printVariable(const std::string& fname, const std::string& varName );
+  void printType(const std::string& fname, const std::string& typeName );
+
+  void error(const std::string& msg);
 
 private:
-  void printTypes(const Module* M);
-  void printConstants(const Module* M);
-  void printConstant(const Constant *CPV);
-  void printGlobalHead(const GlobalVariable *GV);
-  void printGlobalBody(const GlobalVariable *GV);
-  void printFunctionHead(const Function *F);
-  void printFunctionBody(const Function *F);
-  void printInstruction(const Instruction *I, const std::string& bbname);
-  void printSymbolTable(const SymbolTable &ST);
   void printLinkageType(GlobalValue::LinkageTypes LT);
   void printCallingConv(unsigned cc);
+  void printEscapedString(const std::string& str);
+  void printCFP(const ConstantFP* CFP);
 
   std::string getCppName(const Type* val);
+  inline void printCppName(const Type* val);
+
   std::string getCppName(const Value* val);
   inline void printCppName(const Value* val);
-  inline void printCppName(const Type* val);
-  bool isOnStack(const Type*) const;
-  inline void printTypeDef(const Type* Ty);
-  bool printTypeDefInternal(const Type* Ty);
-  void printEscapedString(const std::string& str);
 
+  bool printTypeInternal(const Type* Ty);
+  inline void printType(const Type* Ty);
+  void printTypes(const Module* M);
+
+  void printConstant(const Constant *CPV);
+  void printConstants(const Module* M);
+
+  void printVariableUses(const GlobalVariable *GV);
+  void printVariableHead(const GlobalVariable *GV);
+  void printVariableBody(const GlobalVariable *GV);
+
+  void printFunctionUses(const Function *F);
+  void printFunctionHead(const Function *F);
+  void printFunctionBody(const Function *F);
+  void printInstruction(const Instruction *I, 

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

2006-05-31 Thread Reid Spencer


Changes in directory llvm/lib/VMCore:

Module.cpp updated: 1.67 -> 1.68
---
Log message:

Make the getNamedFunction and getNamedGlobal methods be const. They don't
change the module in any way and we should enforce that.


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

 Module.cpp |   16 
 1 files changed, 8 insertions(+), 8 deletions(-)


Index: llvm/lib/VMCore/Module.cpp
diff -u llvm/lib/VMCore/Module.cpp:1.67 llvm/lib/VMCore/Module.cpp:1.68
--- llvm/lib/VMCore/Module.cpp:1.67 Thu May 18 00:46:08 2006
+++ llvm/lib/VMCore/Module.cpp  Wed May 31 11:40:28 2006
@@ -250,16 +250,16 @@
 /// specified name, of arbitrary type.  This method returns null if a function
 /// with the specified name is not found.
 ///
-Function *Module::getNamedFunction(const std::string &Name) {
+Function *Module::getNamedFunction(const std::string &Name) const {
   // Loop over all of the functions, looking for the function desired
-  Function *Found = 0;
-  for (iterator I = begin(), E = end(); I != E; ++I)
+  const Function *Found = 0;
+  for (const_iterator I = begin(), E = end(); I != E; ++I)
 if (I->getName() == Name)
   if (I->isExternal())
 Found = I;
   else
-return I;
-  return Found; // Non-external function not found...
+return const_cast(&(*I));
+  return const_cast(Found); // Non-external function not found...
 }
 
 
//===--===//
@@ -287,13 +287,13 @@
 /// specified name, of arbitrary type.  This method returns null if a global
 /// with the specified name is not found.
 ///
-GlobalVariable *Module::getNamedGlobal(const std::string &Name) {
+GlobalVariable *Module::getNamedGlobal(const std::string &Name) const {
   // FIXME: This would be much faster with a symbol table that doesn't
   // discriminate based on type!
-  for (global_iterator I = global_begin(), E = global_end();
+  for (const_global_iterator I = global_begin(), E = global_end();
I != E; ++I)
 if (I->getName() == Name) 
-  return I;
+  return const_cast(&(*I));
   return 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/Module.h

2006-05-31 Thread Reid Spencer


Changes in directory llvm/include/llvm:

Module.h updated: 1.72 -> 1.73
---
Log message:

Make the getNamedFunction and getNamedGlobal methods be const. They don't
change the module in any way and we should enforce that.


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

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


Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.72 llvm/include/llvm/Module.h:1.73
--- llvm/include/llvm/Module.h:1.72 Wed May 17 21:10:31 2006
+++ llvm/include/llvm/Module.h  Wed May 31 11:40:28 2006
@@ -179,7 +179,7 @@
   /// getNamedFunction - Return the first function in the module with the
   /// specified name, of arbitrary type.  This method returns null if a 
function
   /// with the specified name is not found.
-  Function *getNamedFunction(const std::string &Name);
+  Function *getNamedFunction(const std::string &Name) const;
 
 /// @}
 /// @name Global Variable Accessors 
@@ -197,7 +197,7 @@
   /// getNamedGlobal - Return the first global variable in the module with the
   /// specified name, of arbitrary type.  This method returns null if a global
   /// with the specified name is not found.
-  GlobalVariable *getNamedGlobal(const std::string &Name);
+  GlobalVariable *getNamedGlobal(const std::string &Name) const;
   
 /// @}
 /// @name Type Accessors



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


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

2006-05-31 Thread Vladimir Prus


Changes in directory llvm/include/llvm:

Type.h updated: 1.86 -> 1.87
---
Log message:

Clarify type naming.


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

 Type.h |5 +
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.86 llvm/include/llvm/Type.h:1.87
--- llvm/include/llvm/Type.h:1.86   Tue May 30 10:49:30 2006
+++ llvm/include/llvm/Type.hWed May 31 11:03:20 2006
@@ -42,6 +42,11 @@
 /// 
 /// Once allocated, Types are never free'd, unless they are an abstract type
 /// that is resolved to a more concrete type.
+/// 
+/// Types themself don't have a name, and can be named either by:
+/// - using SymbolTable instance, typically from some Module,
+/// - using convenience methods in the Module class (which uses module's 
+///SymbolTable too).
 ///
 /// Opaque types are simple derived types with no state.  There may be many
 /// different Opaque type objects floating around, but two are only considered



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


[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h

2006-05-31 Thread Vladimir Prus


Changes in directory llvm/include/llvm/Support:

InstVisitor.h updated: 1.39 -> 1.40
---
Log message:

Improve InstVisitor docs.


---
Diffs of the changes:  (+46 -40)

 InstVisitor.h |   86 +++---
 1 files changed, 46 insertions(+), 40 deletions(-)


Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.39 
llvm/include/llvm/Support/InstVisitor.h:1.40
--- llvm/include/llvm/Support/InstVisitor.h:1.39Fri Apr  7 20:15:18 2006
+++ llvm/include/llvm/Support/InstVisitor.h Wed May 31 10:30:18 2006
@@ -6,46 +6,7 @@
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
 //
 
//===--===//
-//
-// This template class is used to define instruction visitors in a typesafe
-// manner without having to use lots of casts and a big switch statement (in
-// your code that is).  The win here is that if instructions are added in the
-// future, they will be added to the InstVisitor class, allowing you to
-// automatically support them (if you handle on of their superclasses).
-//
-// Note that this library is specifically designed as a template to avoid
-// virtual function call overhead.  Defining and using an InstVisitor is just 
as
-// efficient as having your own switch statement over the instruction opcode.
-//
-// InstVisitor Usage:
-//   You define InstVisitors from inheriting from the InstVisitor base class
-// and "overriding" functions in your class.  I say "overriding" because this
-// class is defined in terms of statically resolved overloading, not virtual
-// functions.  As an example, here is a visitor that counts the number of 
malloc
-// instructions processed:
-//
-//  // Declare the class.  Note that we derive from InstVisitor instantiated
-//  // with _our new subclasses_ type.
-//  //
-//  struct CountMallocVisitor : public InstVisitor {
-//unsigned Count;
-//CountMallocVisitor() : Count(0) {}
-//
-//void visitMallocInst(MallocInst *MI) { ++Count; }
-//  };
-//
-//  And this class would be used like this:
-//CountMallocVistor CMV;
-//CMV.visit(function);
-//NumMallocs = CMV.Count;
-//
-// Returning a value from the visitation function:
-//   The InstVisitor class takes an optional second template argument that
-// specifies what type the instruction visitation functions should return.  If
-// you specify this, you *MUST* provide an implementation of visitInstruction
-// though!.
-//
-//===--===//
+
 
 #ifndef LLVM_SUPPORT_INSTVISITOR_H
 #define LLVM_SUPPORT_INSTVISITOR_H
@@ -71,6 +32,51 @@
visit##CLASS_TO_VISIT(static_cast(I))
 
 
+/// @brief Base class for instruction visitors
+///
+/// Instruction visitors are used when you want to perform different action for
+/// different kinds of instruction without without having to use lots of casts 
+/// and a big switch statement (in your code that is). 
+///
+/// To define your own visitor, inherit from this class, specifying your
+/// new type for the 'SubClass' template parameter, and "override" visitXXX
+/// functions in your class. I say "overriding" because this class is defined 
+/// in terms of statically resolved overloading, not virtual functions.  
+/// 
+/// For example, here is a visitor that counts the number of malloc 
+/// instructions processed:
+///
+///  /// Declare the class.  Note that we derive from InstVisitor instantiated
+///  /// with _our new subclasses_ type.
+///  ///
+///  struct CountMallocVisitor : public InstVisitor {
+///unsigned Count;
+///CountMallocVisitor() : Count(0) {}
+///
+///void visitMallocInst(MallocInst *MI) { ++Count; }
+///  };
+///
+///  And this class would be used like this:
+///CountMallocVistor CMV;
+///CMV.visit(function);
+///NumMallocs = CMV.Count;
+///
+/// The defined has 'visit' methods for Instruction, and also for BasicBlock,
+/// Function, and Module, which recursively process all conained instructions.
+///
+/// Note that if you don't implement visitXXX for some instruction type,
+/// the visitXXX method for instruction superclass will be invoked. So
+/// if instructions are added in the future, they will be automatically
+/// supported, if you handle on of their superclasses.
+///
+/// The optional second template argument specifies the type that instruction 
+/// visitation functions should return. If you specify this, you *MUST* 
provide 
+/// an implementation of visitInstruction though!.
+///
+/// Note that this class is specifically designed as a template to avoid
+/// virtual function call overhead.  Defining and using an InstVisitor is just
+/// as efficient as having your own switch statement over the instruction
+/// opcode.
 template
 class InstVisitor {
   
//======//



_

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

2006-05-31 Thread Evan Cheng


Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAG.cpp updated: 1.93 -> 1.94
---
Log message:

Eliminate a memory leak.

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

 ScheduleDAG.cpp |1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.93 
llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.93  Thu May 18 15:42:07 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp   Wed May 31 02:13:03 2006
@@ -402,6 +402,7 @@
 DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
   else {
 DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
+delete MI;
 MI = NewMI;
   }
 }



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