From f3d15b0b3791d746d44d99b05d3bcb2e9bdf0eb3 Mon Sep 17 00:00:00 2001
From: Roman Divacky
Date: Thu, 15 Jul 2010 17:06:11 +0000
Subject: [PATCH] Update LLVM to r108428.
---
Makefile.rules | 63 ++-
docs/LangRef.html | 4 +-
docs/ProgrammersManual.html | 19 +-
docs/SourceLevelDebugging.html | 6 +-
include/llvm/ADT/APFloat.h | 8 +-
include/llvm/ADT/APInt.h | 6 +-
include/llvm/CodeGen/FastISel.h | 13 +-
include/llvm/CodeGen/LiveIntervalAnalysis.h | 4 -
include/llvm/CodeGen/MachineModuleInfo.h | 2 +-
include/llvm/CodeGen/ProcessImplicitDefs.h | 4 +-
include/llvm/MC/MCParser/AsmParser.h | 2 +-
include/llvm/Support/COFF.h | 92 ++--
include/llvm/Support/Regex.h | 4 +-
include/llvm/Support/StringPool.h | 2 +-
include/llvm/Target/TargetAsmParser.h | 2 +-
include/llvm/Target/TargetInstrInfo.h | 10 +-
include/llvm/Target/TargetOptions.h | 2 +-
include/llvm/Value.h | 4 +
lib/Analysis/InstructionSimplify.cpp | 48 +-
lib/Analysis/ProfileInfo.cpp | 10 +-
lib/AsmParser/LLParser.cpp | 94 ++--
lib/AsmParser/LLParser.h | 1 +
lib/Bitcode/Reader/BitcodeReader.cpp | 5 +-
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 +-
.../AsmPrinter/AsmPrinterInlineAsm.cpp | 14 -
lib/CodeGen/LiveInterval.cpp | 17 +-
lib/CodeGen/MachineLICM.cpp | 9 +-
lib/CodeGen/MachineModuleInfo.cpp | 23 +
lib/CodeGen/ProcessImplicitDefs.cpp | 54 +-
lib/CodeGen/SelectionDAG/FastISel.cpp | 45 +-
.../SelectionDAG/SelectionDAGBuilder.cpp | 13 +-
lib/MC/MCParser/AsmParser.cpp | 2 +-
lib/Support/APFloat.cpp | 9 +-
lib/Support/APInt.cpp | 6 +-
lib/Support/Regex.cpp | 4 +-
lib/Support/StringPool.cpp | 2 +-
lib/System/Unix/Program.inc | 5 +-
lib/Target/ARM/ARM.td | 4 +-
lib/Target/ARM/ARMAddressingModes.h | 5 +-
lib/Target/ARM/ARMISelLowering.cpp | 468 +++++++++++-------
lib/Target/ARM/ARMISelLowering.h | 21 +-
lib/Target/ARM/ARMInstrInfo.td | 41 +-
lib/Target/ARM/ARMInstrNEON.td | 145 +++---
lib/Target/ARM/ARMInstrThumb2.td | 37 +-
lib/Target/ARM/ARMSubtarget.h | 4 +
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 14 +-
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 6 +-
lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp | 2 +-
lib/Target/ARM/README.txt | 67 +++
lib/Target/Alpha/AlphaMCAsmInfo.cpp | 2 +-
lib/Target/Alpha/AlphaMCAsmInfo.h | 4 +-
lib/Target/Blackfin/BlackfinMCAsmInfo.cpp | 2 +-
lib/Target/Blackfin/BlackfinMCAsmInfo.h | 4 +-
lib/Target/CellSPU/SPUMCAsmInfo.cpp | 2 +-
lib/Target/CellSPU/SPUMCAsmInfo.h | 4 +-
lib/Target/MBlaze/MBlazeMCAsmInfo.cpp | 2 +-
lib/Target/MBlaze/MBlazeMCAsmInfo.h | 4 +-
lib/Target/MSIL/MSILWriter.cpp | 3 +-
lib/Target/MSIL/MSILWriter.h | 2 +-
lib/Target/MSP430/MSP430MCAsmInfo.cpp | 2 +-
lib/Target/MSP430/MSP430MCAsmInfo.h | 5 +-
lib/Target/Mips/MipsMCAsmInfo.cpp | 2 +-
lib/Target/Mips/MipsMCAsmInfo.h | 4 +-
lib/Target/PIC16/PIC16DebugInfo.cpp | 2 +-
lib/Target/PIC16/PIC16MCAsmInfo.cpp | 2 +-
lib/Target/PIC16/PIC16MCAsmInfo.h | 2 +-
lib/Target/Sparc/SparcMCAsmInfo.cpp | 3 +-
lib/Target/Sparc/SparcMCAsmInfo.h | 5 +-
lib/Target/SystemZ/SystemZMCAsmInfo.cpp | 2 +-
lib/Target/SystemZ/SystemZMCAsmInfo.h | 2 +-
lib/Target/TargetMachine.cpp | 2 +-
lib/Target/X86/AsmParser/X86AsmParser.cpp | 6 +-
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp | 13 +-
lib/Target/X86/AsmPrinter/X86MCInstLower.cpp | 16 +-
lib/Target/X86/X86COFF.h | 95 ----
lib/Target/X86/X86FastISel.cpp | 7 +-
lib/Target/X86/X86ISelLowering.cpp | 74 +--
lib/Target/X86/X86ISelLowering.h | 1 -
lib/Target/X86/X86InstrFormats.td | 3 +
lib/Target/X86/X86InstrInfo.h | 8 +-
lib/Target/X86/X86InstrSSE.td | 116 ++++-
lib/Target/X86/X86MCCodeEmitter.cpp | 3 +
lib/Target/XCore/XCoreMCAsmInfo.cpp | 2 +-
lib/Target/XCore/XCoreMCAsmInfo.h | 5 +-
lib/Transforms/IPO/Inliner.cpp | 2 +-
lib/Transforms/IPO/MergeFunctions.cpp | 5 +
.../InstCombine/InstCombineAndOrXor.cpp | 19 +
.../InstCombine/InstCombineSelect.cpp | 28 ++
lib/Transforms/Scalar/LoopStrengthReduce.cpp | 11 +-
lib/Transforms/Utils/Local.cpp | 5 +-
lib/Transforms/Utils/SimplifyCFG.cpp | 71 ++-
lib/VMCore/AsmWriter.cpp | 14 +-
lib/VMCore/Metadata.cpp | 3 +-
test/CodeGen/ARM/fpcmp-opt.ll | 71 ++-
test/CodeGen/ARM/reg_sequence.ll | 2 +-
test/CodeGen/ARM/sub.ll | 29 ++
test/CodeGen/ARM/vdup.ll | 12 +
test/CodeGen/ARM/vmov.ll | 48 ++
.../Thumb2/2009-10-15-ITBlockBranch.ll | 2 +-
test/CodeGen/Thumb2/thumb2-sbc.ll | 50 +-
test/CodeGen/Thumb2/thumb2-sub3.ll | 55 ++
test/CodeGen/X86/2006-05-22-FPSetEQ.ll | 2 +-
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll | 4 +-
test/CodeGen/X86/2010-06-28-DbgEntryPC.ll | 108 ++++
test/CodeGen/X86/2010-07-06-asm-RIP.ll | 2 +-
.../X86/2010-07-13-indirectXconstraint.ll | 18 +
test/CodeGen/X86/fabs.ll | 2 +-
test/CodeGen/X86/fast-isel-loads.ll | 23 -
test/CodeGen/X86/lsr-i386.ll | 44 ++
test/CodeGen/X86/sibcall-4.ll | 13 +
test/CodeGen/X86/sse-minmax.ll | 2 +-
test/Feature/metadata.ll | 4 +-
test/FrontendC/2010-06-28-DbgEntryPC.c | 50 --
.../2010-07-14-overconservative-align.c | 14 +
test/FrontendC/2010-07-14-ref-off-end.c | 27 +
test/FrontendC/vla-1.c | 8 +
test/MC/AsmParser/X86/x86_32-encoding.s | 328 ++++++++++++
test/MC/AsmParser/X86/x86_64-encoding.s | 328 ++++++++++++
test/Makefile | 4 +
test/Transforms/InstCombine/bit-checks.ll | 15 +
test/Transforms/JumpThreading/crash.ll | 47 ++
tools/Makefile | 5 -
tools/edis/Makefile | 2 +
unittests/ADT/APIntTest.cpp | 4 +-
unittests/VMCore/PassManagerTest.cpp | 18 +-
utils/buildit/GNUmakefile | 4 +-
utils/buildit/build_llvm | 26 +-
127 files changed, 2487 insertions(+), 877 deletions(-)
delete mode 100644 lib/Target/X86/X86COFF.h
create mode 100644 test/CodeGen/ARM/sub.ll
create mode 100644 test/CodeGen/Thumb2/thumb2-sub3.ll
create mode 100644 test/CodeGen/X86/2010-06-28-DbgEntryPC.ll
create mode 100644 test/CodeGen/X86/2010-07-13-indirectXconstraint.ll
delete mode 100644 test/CodeGen/X86/fast-isel-loads.ll
create mode 100644 test/CodeGen/X86/lsr-i386.ll
create mode 100644 test/CodeGen/X86/sibcall-4.ll
delete mode 100644 test/FrontendC/2010-06-28-DbgEntryPC.c
create mode 100644 test/FrontendC/2010-07-14-overconservative-align.c
create mode 100644 test/FrontendC/2010-07-14-ref-off-end.c
create mode 100644 test/FrontendC/vla-1.c
create mode 100644 test/Transforms/InstCombine/bit-checks.ll
diff --git a/Makefile.rules b/Makefile.rules
index dc15c921ffc..12582f6f91d 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -42,7 +42,7 @@ VPATH=$(PROJ_SRC_DIR)
# Reset the list of suffixes we know how to build.
#--------------------------------------------------------------------
.SUFFIXES:
-.SUFFIXES: .c .cpp .cc .h .hpp .o .a .bc .td .ps .dot .ll
+.SUFFIXES: .c .cpp .cc .h .hpp .o .a .bc .td .ps .dot .ll .m .mm
.SUFFIXES: $(SHLIBEXT) $(SUFFIXES)
#--------------------------------------------------------------------
@@ -632,7 +632,12 @@ ifdef TOOLNAME
endif
endif
endif
+else
+ifneq ($(DARWIN_MAJVERS),4)
+ LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif
+endif
+
#----------------------------------------------------------
# Options To Invoke Tools
@@ -1442,6 +1447,11 @@ $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
$(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
+$(ObjDir)/%.o: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+ $(Echo) "Compiling $*.mm for $(BuildMode) build" $(PIC_FLAG)
+ $(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
+ $(DEPEND_MOVEFILE)
+
$(ObjDir)/%.o: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
$(Echo) "Compiling $*.cc for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
@@ -1452,6 +1462,11 @@ $(ObjDir)/%.o: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
$(Verb) if $(Compile.C) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
+$(ObjDir)/%.o: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+ $(Echo) "Compiling $*.m for $(BuildMode) build" $(PIC_FLAG)
+ $(Verb) if $(Compile.C) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
+ $(DEPEND_MOVEFILE)
+
#---------------------------------------------------------
# Create .bc files in the ObjDir directory from .cpp .cc and .c files...
#---------------------------------------------------------
@@ -1470,6 +1485,12 @@ $(ObjDir)/%.ll: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
$(BC_DEPEND_MOVEFILE)
+$(ObjDir)/%.ll: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
+ $(Echo) "Compiling $*.mm for $(BuildMode) build (bytecode)"
+ $(Verb) if $(BCCompile.CXX) $(BC_DEPEND_OPTIONS) \
+ $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $(BC_DEPEND_MOVEFILE)
+
$(ObjDir)/%.ll: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cc for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.CXX) $(BC_DEPEND_OPTIONS) \
@@ -1482,6 +1503,12 @@ $(ObjDir)/%.ll: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
$(BC_DEPEND_MOVEFILE)
+$(ObjDir)/%.ll: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
+ $(Echo) "Compiling $*.m for $(BuildMode) build (bytecode)"
+ $(Verb) if $(BCCompile.C) $(BC_DEPEND_OPTIONS) \
+ $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $(BC_DEPEND_MOVEFILE)
+
# Provide alternate rule sets if dependencies are disabled
else
@@ -1489,6 +1516,10 @@ $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cpp for $(BuildMode) build" $(PIC_FLAG)
$(Compile.CXX) $< -o $@
+$(ObjDir)/%.o: %.mm $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.mm for $(BuildMode) build" $(PIC_FLAG)
+ $(Compile.CXX) $< -o $@
+
$(ObjDir)/%.o: %.cc $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cc for $(BuildMode) build" $(PIC_FLAG)
$(Compile.CXX) $< -o $@
@@ -1497,10 +1528,18 @@ $(ObjDir)/%.o: %.c $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.c for $(BuildMode) build" $(PIC_FLAG)
$(Compile.C) $< -o $@
+$(ObjDir)/%.o: %.m $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.m for $(BuildMode) build" $(PIC_FLAG)
+ $(Compile.C) $< -o $@
+
$(ObjDir)/%.ll: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)"
$(BCCompile.CXX) $< -o $@ -S -emit-llvm
+$(ObjDir)/%.ll: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
+ $(Echo) "Compiling $*.mm for $(BuildMode) build (bytecode)"
+ $(BCCompile.CXX) $< -o $@ -S -emit-llvm
+
$(ObjDir)/%.ll: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cc for $(BuildMode) build (bytecode)"
$(BCCompile.CXX) $< -o $@ -S -emit-llvm
@@ -1509,6 +1548,10 @@ $(ObjDir)/%.ll: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)"
$(BCCompile.C) $< -o $@ -S -emit-llvm
+$(ObjDir)/%.ll: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
+ $(Echo) "Compiling $*.m for $(BuildMode) build (bytecode)"
+ $(BCCompile.C) $< -o $@ -S -emit-llvm
+
endif
@@ -1517,6 +1560,10 @@ $(BuildMode)/%.ii: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cpp for $(BuildMode) build to .ii file"
$(Verb) $(Preprocess.CXX) $< -o $@
+$(BuildMode)/%.ii: %.mm $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.mm for $(BuildMode) build to .ii file"
+ $(Verb) $(Preprocess.CXX) $< -o $@
+
$(BuildMode)/%.ii: %.cc $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cc for $(BuildMode) build to .ii file"
$(Verb) $(Preprocess.CXX) $< -o $@
@@ -1525,11 +1572,19 @@ $(BuildMode)/%.i: %.c $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.c for $(BuildMode) build to .i file"
$(Verb) $(Preprocess.C) $< -o $@
+$(BuildMode)/%.i: %.m $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.m for $(BuildMode) build to .i file"
+ $(Verb) $(Preprocess.C) $< -o $@
+
$(ObjDir)/%.s: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cpp to asm for $(BuildMode) build" $(PIC_FLAG)
$(Compile.CXX) $< -o $@ -S
+$(ObjDir)/%.s: %.mm $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.mm to asm for $(BuildMode) build" $(PIC_FLAG)
+ $(Compile.CXX) $< -o $@ -S
+
$(ObjDir)/%.s: %.cc $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.cc to asm for $(BuildMode) build" $(PIC_FLAG)
$(Compile.CXX) $< -o $@ -S
@@ -1538,6 +1593,10 @@ $(ObjDir)/%.s: %.c $(ObjDir)/.dir $(BUILT_SOURCES)
$(Echo) "Compiling $*.c to asm for $(BuildMode) build" $(PIC_FLAG)
$(Compile.C) $< -o $@ -S
+$(ObjDir)/%.s: %.m $(ObjDir)/.dir $(BUILT_SOURCES)
+ $(Echo) "Compiling $*.m to asm for $(BuildMode) build" $(PIC_FLAG)
+ $(Compile.C) $< -o $@ -S
+
# make the C and C++ compilers strip debug info out of bytecode libraries.
ifdef DEBUG_RUNTIME
@@ -1750,7 +1809,7 @@ ifndef DISABLE_AUTO_DEPENDENCIES
ifndef IS_CLEANING_TARGET
# Get the list of dependency files
-DependSourceFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))
+DependSourceFiles := $(basename $(filter %.cpp %.c %.cc %.m %.mm, $(Sources)))
DependFiles := $(DependSourceFiles:%=$(PROJ_OBJ_DIR)/$(BuildMode)/%.d)
# Include bitcode dependency files if using bitcode libraries
diff --git a/docs/LangRef.html b/docs/LangRef.html
index ca988b72694..4b4348d07f2 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -954,7 +954,9 @@ define [linkage] [visibility]
Syntax:
+; An unnamed metadata node, which is referenced by the named metadata.
!1 = metadata !{metadata !"one"}
+; A named metadata.
!name = !{null, !1}
@@ -7744,7 +7746,7 @@ LLVM.
Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2010-07-13 14:26:09 +0200 (Tue, 13 Jul 2010) $
+ Last modified: $Date: 2010-07-13 21:48:13 +0200 (Tue, 13 Jul 2010) $