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

2007-05-06 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.91 - 1.92
llc.cpp updated: 1.147 - 1.148
---
Log message:

switch tools to bitcode from bytecode


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

 Makefile |2 +-
 llc.cpp  |   24 
 2 files changed, 9 insertions(+), 17 deletions(-)


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.91 llvm/tools/llc/Makefile:1.92
--- llvm/tools/llc/Makefile:1.91Sat May  5 23:55:19 2007
+++ llvm/tools/llc/Makefile Sun May  6 04:32:02 2007
@@ -15,7 +15,7 @@
 # early so we can set up LINK_COMPONENTS before including Makefile.rules
 include $(LEVEL)/Makefile.config
 
-LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader bitreader
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader
 
 include $(LLVM_SRC_ROOT)/Makefile.rules
 


Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.147 llvm/tools/llc/llc.cpp:1.148
--- llvm/tools/llc/llc.cpp:1.147Sun May  6 00:47:36 2007
+++ llvm/tools/llc/llc.cpp  Sun May  6 04:32:02 2007
@@ -14,7 +14,6 @@
 
//===--===//
 
 #include llvm/Bitcode/ReaderWriter.h
-#include llvm/Bytecode/Reader.h
 #include llvm/CodeGen/FileWriters.h
 #include llvm/CodeGen/LinkAllCodegenComponents.h
 #include llvm/Target/SubtargetFeature.h
@@ -23,10 +22,10 @@
 #include llvm/Target/TargetMachineRegistry.h
 #include llvm/Transforms/Scalar.h
 #include llvm/Module.h
+#include llvm/ModuleProvider.h
 #include llvm/PassManager.h
 #include llvm/Pass.h
 #include llvm/Support/CommandLine.h
-#include llvm/Support/Compressor.h
 #include llvm/Support/ManagedStatic.h
 #include llvm/Support/MemoryBuffer.h
 #include llvm/Support/PluginLoader.h
@@ -40,9 +39,6 @@
 #include memory
 using namespace llvm;
 
-cl::optbool Bitcode(bitcode);
-
-
 // General options for llc.  Other pass-specific options are specified
 // within the corresponding llc passes, and target-specific options
 // and back-end code generation options are specified with the target machine.
@@ -183,17 +179,13 @@
   std::string ErrorMessage;
   std::auto_ptrModule M;
   
-  if (Bitcode) {
-std::auto_ptrMemoryBuffer Buffer(
-MemoryBuffer::getFileOrSTDIN(InputFilename[0], InputFilename.size()));
-if (Buffer.get())
-  M.reset(ParseBitcodeFile(Buffer.get(), ErrorMessage));
-else
-  ErrorMessage = Error reading file ' + InputFilename + ';
-  } else {
-M.reset(ParseBytecodeFile(InputFilename, 
-  Compressor::decompressToNewBuffer,
-  ErrorMessage));
+  {
+  std::auto_ptrMemoryBuffer Buffer(
+   MemoryBuffer::getFileOrSTDIN(InputFilename[0], InputFilename.size()));
+  if (Buffer.get())
+M.reset(ParseBitcodeFile(Buffer.get(), ErrorMessage));
+  else
+ErrorMessage = Error reading file ' + InputFilename + ';
   }
   if (M.get() == 0) {
 std::cerr  argv[0]  : bytecode didn't read correctly.\n;



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


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

2006-09-04 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.89 - 1.90
---
Log message:

Use LINK_COMPONENTS to specify *components* to link against instead of
using USED_LIBS to specify *libraries* to link against.


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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.89 llvm/tools/llc/Makefile:1.90
--- llvm/tools/llc/Makefile:1.89Sun Sep  3 23:04:41 2006
+++ llvm/tools/llc/Makefile Mon Sep  4 00:59:09 2006
@@ -13,24 +13,10 @@
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 
-# early so we can set up USEDLIBS properly before includeing Makefile.rules
+# early so we can set up LINK_COMPONENTS before including Makefile.rules
 include $(LEVEL)/Makefile.config
 
-USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
-   LLVMTarget.a \
-   LLVMCodeGen.a \
-   LLVMSelectionDAG.a \
-   LLVMipa.a \
-   LLVMTransforms.a \
-   LLVMScalarOpts.a \
-   LLVMTransformUtils.a \
-   LLVMAnalysis.a \
-   LLVMBCReader.a \
-   LLVMBCWriter.a \
-   LLVMCore.a \
-   LLVMSupport.a \
-   LLVMbzip2.a \
-   LLVMSystem.a
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
 
 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/tools/llc/Makefile

2006-08-03 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.87 - 1.88
---
Log message:

Now that SparcV9 is gone, this logical can be simplified significantly.


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

 Makefile |   40 +---
 1 files changed, 1 insertion(+), 39 deletions(-)


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.87 llvm/tools/llc/Makefile:1.88
--- llvm/tools/llc/Makefile:1.87Fri Jul 21 14:44:55 2006
+++ llvm/tools/llc/Makefile Thu Aug  3 11:59:17 2006
@@ -16,45 +16,7 @@
 # early so we can set up USEDLIBS properly before includeing Makefile.rules
 include $(LEVEL)/Makefile.config
 
-# Initialize the USEDLIBS so we can add to it
-USEDLIBS :=
-
-# Check for LLVMCBackend  target
-ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMCBackend
-endif
-
-ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMSparc
-endif
-
-
-#Check for X86 Target
-ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMX86
-endif
-
-#Check for PowerPC Target
-ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMPowerPC
-endif
-
-#Check for Alpha Target
-ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMAlpha
-endif
-
-#Check for IA64 Target
-ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMIA64
-endif
-
-#Check for ARM Target
-ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
-USEDLIBS += LLVMARM
-endif
-
-USEDLIBS += \
+USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
LLVMCodeGen.a \
LLVMSelectionDAG.a \
LLVMTarget.a \



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


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

2006-07-21 Thread Devang Patel


Changes in directory llvm/tools/llc:

Makefile updated: 1.86 - 1.87
---
Log message:

Fix MacOSX build failures. (pr841: http://llvm.org/PR841 )


---
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.86 llvm/tools/llc/Makefile:1.87
--- llvm/tools/llc/Makefile:1.86Thu Jul 20 19:10:06 2006
+++ llvm/tools/llc/Makefile Fri Jul 21 14:44:55 2006
@@ -55,8 +55,8 @@
 endif
 
 USEDLIBS += \
-   LLVMSelectionDAG.a \
LLVMCodeGen.a \
+   LLVMSelectionDAG.a \
LLVMTarget.a \
LLVMipa.a \
LLVMTransforms.a \



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


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

2006-07-20 Thread Andrew Lenharth


Changes in directory llvm/tools/llc:

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

Fix linking on Alpha

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

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


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



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


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

2006-07-06 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.83 - 1.84
---
Log message:

Tools require EH for their top-level try blocks.


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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.83 llvm/tools/llc/Makefile:1.84
--- llvm/tools/llc/Makefile:1.83Wed May 31 20:42:33 2006
+++ llvm/tools/llc/Makefile Thu Jul  6 19:46:18 2006
@@ -9,6 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llc
+REQUIRES_EH := 1
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 



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

2006-05-14 Thread Rafael Espindola


Changes in directory llvm/tools/llc:

Makefile updated: 1.80 - 1.81
---
Log message:

added a skeleton of the ARM backend


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

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


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.80 llvm/tools/llc/Makefile:1.81
--- llvm/tools/llc/Makefile:1.80Thu Apr 20 12:07:46 2006
+++ llvm/tools/llc/Makefile Sun May 14 17:18:28 2006
@@ -48,6 +48,11 @@
 USEDLIBS += LLVMIA64
 endif
 
+#Check for ARM Target
+ifneq ($(strip $(filter ARM,$(TARGETS_TO_BUILD))),)
+USEDLIBS += LLVMARM
+endif
+
 USEDLIBS += \
LLVMSelectionDAG \
LLVMCodeGen \



___
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-04-20 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.79 - 1.80
---
Log message:

Never link in sparcv9


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

 Makefile |   10 --
 1 files changed, 10 deletions(-)


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.79 llvm/tools/llc/Makefile:1.80
--- llvm/tools/llc/Makefile:1.79Thu Feb 16 15:10:57 2006
+++ llvm/tools/llc/Makefile Thu Apr 20 12:07:46 2006
@@ -23,16 +23,6 @@
 USEDLIBS += LLVMCBackend
 endif
 
-# Check for Sparc target
-ifneq ($(strip $(filter SparcV9,$(TARGETS_TO_BUILD))),)
-USEDLIBS += \
-   LLVMSparcV9ModuloSched \
-   LLVMSparcV9 \
-   LLVMSparcV9RegAlloc \
-   LLVMSparcV9InstrSched \
-   LLVMSparcV9LiveVar
-endif
-
 ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),)
 USEDLIBS += LLVMSparc
 endif



___
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-02-16 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.78 - 1.79
---
Log message:

remove support for the skeleton target


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

 Makefile |5 -
 1 files changed, 5 deletions(-)


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.78 llvm/tools/llc/Makefile:1.79
--- llvm/tools/llc/Makefile:1.78Sun Feb  5 02:30:45 2006
+++ llvm/tools/llc/Makefile Thu Feb 16 15:10:57 2006
@@ -23,11 +23,6 @@
 USEDLIBS += LLVMCBackend
 endif
 
-# Check for Skeleton target
-ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)
-USEDLIB += LLVMSkeleton
-endif
-
 # Check for Sparc target
 ifneq ($(strip $(filter SparcV9,$(TARGETS_TO_BUILD))),)
 USEDLIBS += \



___
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

2005-10-27 Thread John Criswell


Changes in directory llvm/tools/llc:

Makefile updated: 1.76 - 1.77
---
Log message:

Move some constant folding code shared by Analysis and Transform passes
into the LLVMAnalysis library.
This allows LLVMTranform and LLVMTransformUtils to be archives and linked
with LLVMAnalysis.a, which provides any missing definitions.



---
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.76 llvm/tools/llc/Makefile:1.77
--- llvm/tools/llc/Makefile:1.76Wed Oct 26 15:35:12 2005
+++ llvm/tools/llc/Makefile Thu Oct 27 10:54:34 2005
@@ -70,7 +70,7 @@
LLVMipa.a \
LLVMTransforms.a \
LLVMScalarOpts.a \
-   LLVMTransformUtils \
+   LLVMTransformUtils.a \
LLVMAnalysis.a \
LLVMBCReader \
LLVMBCWriter \



___
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

2005-10-25 Thread Chris Lattner


Changes in directory llvm/tools/llc:

Makefile updated: 1.74 - 1.75
---
Log message:

transforms before analyses


---
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.74 llvm/tools/llc/Makefile:1.75
--- llvm/tools/llc/Makefile:1.74Sun Oct 23 20:13:21 2005
+++ llvm/tools/llc/Makefile Tue Oct 25 12:10:30 2005
@@ -70,8 +70,8 @@
LLVMipa.a \
LLVMTransforms.a \
LLVMScalarOpts.a \
-   LLVMAnalysis.a \
LLVMTransformUtils.a \
+   LLVMAnalysis.a \
LLVMBCReader \
LLVMBCWriter \
LLVMCore \



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