OSDN Git Service

Update LLVM for merge to 3.4.
authorStephen Hines <srhines@google.com>
Fri, 7 Feb 2014 07:41:26 +0000 (23:41 -0800)
committerStephen Hines <srhines@google.com>
Thu, 13 Feb 2014 21:31:07 +0000 (13:31 -0800)
Update config.h files.

Add RS SubtargetFeature for +long64 on ARM devices.

Adjust Android.mk for added/removed files:

+  Delinearization.cpp
-  PathNumbering.cpp
-  PathProfileInfo.cpp
-  PathProfileVerifier.cpp
-  ProfileDataLoader.cpp
-  ProfileDataLoaderPass.cpp
-  ProfileEstimatorPass.cpp
-  ProfileInfo.cpp
-  ProfileInfoLoader.cpp
-  ProfileInfoLoaderPass.cpp
-  ProfileVerifierPass.cpp

+  LiveRegUnits.cpp
-  ShrinkWrapping.cpp
+  StackMaps.cpp
-  StrongPHIElimination.cpp

+  DIEHash.cpp

+  LegacyPassManager.cpp

+  ELF.cpp

+  Unicode.cpp

-  MipsOptimizeMathLibCalls.cpp

-  MipsELFStreamer.cpp
+  MipsTargetStreamer.cpp

-  EdgeProfiling.cpp
+  DataFlowSanitizer.cpp
+  DebugIR.cpp
-  OptimalEdgeProfiling.cpp
-  PathProfiling.cpp
-  ProfilingUtils.cpp

-  BasicBlockPlacement.cpp
+  LoopRerollPass.cpp
+  PartiallyInlineLibCalls.cpp
+  SampleProfile.cpp

+  GlobalStatus.cpp

Change-Id: I17dcf0bf53a1720acd8226ae3e30d84993562a91

20 files changed:
README.android
device/include/llvm/Config/config.h
device/include/llvm/Config/llvm-config.h
host/include/llvm/Config/config.h
host/include/llvm/Config/llvm-config.h
lib/Analysis/Android.mk
lib/CodeGen/Android.mk
lib/CodeGen/AsmPrinter/Android.mk
lib/IR/Android.mk
lib/MC/Android.mk
lib/Object/Android.mk
lib/Support/Android.mk
lib/Target/ARM/ARM.td
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/Mips/Android.mk
lib/Target/Mips/MCTargetDesc/Android.mk
lib/Transforms/Instrumentation/Android.mk
lib/Transforms/Scalar/Android.mk
lib/Transforms/Utils/Android.mk

index 3cac705..d9942ee 100644 (file)
 * For Jellybean MR1: Synced to upstream r162314
 * For Jellybean MR2: Synced to upstream r177342
 * For Key Lime Pie: Synced to upstream r187913
+* For FUTURE: Synced to LLVM 3.4 r197944
 
+* Cherry-pick on 2014/2/13: https://llvm.org/svn/llvm-project/llvm/trunk@201362 (Contact srhines for merge questions.)
+* Recent downstreaming on 2014/2/11: Synced to r197944 (Contact srhines for merge questions.)
 * Recent downstreaming on 2013/8/8: Synced to r187913 (Contact srhines for merge questions.)
 * Recent downstreaming on 2013/6/13: Synced to r183849 (Contact srhines for merge questions.)
 * Recent downstreaming on 2013/5/3: Synced to r180947 (Contact srhines for merge questions.)
index 9c963c8..f76132a 100644 (file)
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 3
+#define LLVM_VERSION_MINOR 4
 
 /* Define if the OS needs help to load dependent libraries for dlopen(). */
 /* #undef LTDL_DLOPEN_DEPLIBS */
 #define PACKAGE_NAME "LLVM"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "LLVM 3.1svn"
+#define PACKAGE_STRING "LLVM 3.4"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "llvm"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "3.1svn"
+#define PACKAGE_VERSION "3.4"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
index e809281..637daed 100644 (file)
@@ -87,7 +87,7 @@
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 3
+#define LLVM_VERSION_MINOR 4
 
 #include "llvm/Config/llvm-platform-config.h"
 
index c889158..6e2bea5 100644 (file)
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 3
+#define LLVM_VERSION_MINOR 4
 
 /* Define if the OS needs help to load dependent libraries for dlopen(). */
 /* #undef LTDL_DLOPEN_DEPLIBS */
 #define PACKAGE_NAME "LLVM"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "LLVM 3.3"
+#define PACKAGE_STRING "LLVM 3.4"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "llvm"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "3.3"
+#define PACKAGE_VERSION "3.4"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
index 8637f41..5f3596e 100644 (file)
@@ -95,7 +95,7 @@
 #define LLVM_VERSION_MAJOR 3
 
 /* Minor version of the LLVM API */
-#define LLVM_VERSION_MINOR 3
+#define LLVM_VERSION_MINOR 4
 
 #include "llvm/Config/llvm-platform-config.h"
 
index 7e0bccc..86d71f0 100644 (file)
@@ -16,6 +16,7 @@ analysis_SRC_FILES := \
   CodeMetrics.cpp \
   ConstantFolding.cpp \
   CostModel.cpp \
+  Delinearization.cpp \
   DependenceAnalysis.cpp \
   DomPrinter.cpp \
   DominanceFrontier.cpp \
@@ -37,17 +38,7 @@ analysis_SRC_FILES := \
   ModuleDebugInfoPrinter.cpp \
   NoAliasAnalysis.cpp \
   PHITransAddr.cpp \
-  PathNumbering.cpp \
-  PathProfileInfo.cpp \
-  PathProfileVerifier.cpp \
   PostDominators.cpp \
-  ProfileDataLoader.cpp \
-  ProfileDataLoaderPass.cpp \
-  ProfileEstimatorPass.cpp \
-  ProfileInfo.cpp \
-  ProfileInfoLoader.cpp \
-  ProfileInfoLoaderPass.cpp \
-  ProfileVerifierPass.cpp \
   PtrUseVisitor.cpp \
   RegionInfo.cpp \
   RegionPass.cpp \
index 3ac7c19..be0c6e2 100644 (file)
@@ -36,6 +36,7 @@ codegen_SRC_FILES := \
   LiveRangeCalc.cpp \
   LiveRangeEdit.cpp \
   LiveRegMatrix.cpp \
+  LiveRegUnits.cpp \
   LiveStackAnalysis.cpp \
   LiveVariables.cpp \
   LLVMTargetMachine.cpp \
@@ -90,16 +91,15 @@ codegen_SRC_FILES := \
   ScheduleDAGPrinter.cpp \
   ScoreboardHazardRecognizer.cpp \
   ShadowStackGC.cpp \
-  ShrinkWrapping.cpp \
   SjLjEHPrepare.cpp \
   SlotIndexes.cpp \
   Spiller.cpp \
   SpillPlacement.cpp \
   SplitKit.cpp \
   StackColoring.cpp \
+  StackMaps.cpp \
   StackProtector.cpp \
   StackSlotColoring.cpp \
-  StrongPHIElimination.cpp \
   TailDuplication.cpp \
   TargetFrameLoweringImpl.cpp \
   TargetInstrInfo.cpp \
index d408475..b2cc47e 100644 (file)
@@ -13,6 +13,7 @@ LOCAL_SRC_FILES :=    \
        AsmPrinterInlineAsm.cpp \
        ARMException.cpp        \
        DIE.cpp \
+       DIEHash.cpp \
        DwarfAccelTable.cpp \
        DwarfCFIException.cpp \
        DwarfCompileUnit.cpp \
@@ -40,6 +41,7 @@ LOCAL_SRC_FILES :=    \
        AsmPrinterInlineAsm.cpp \
        ARMException.cpp        \
        DIE.cpp \
+       DIEHash.cpp \
        DwarfAccelTable.cpp \
        DwarfCFIException.cpp \
        DwarfCompileUnit.cpp \
index 6df36f8..b2b99e4 100644 (file)
@@ -24,6 +24,7 @@ vmcore_SRC_FILES := \
   LLVMContext.cpp \
   LLVMContextImpl.cpp \
   LeakDetector.cpp \
+  LegacyPassManager.cpp \
   Metadata.cpp \
   Module.cpp \
   Pass.cpp \
index 6c69ca2..ed0a43f 100644 (file)
@@ -7,6 +7,7 @@ mc_SRC_FILES := \
   MCAsmInfo.cpp \
   MCAsmInfoCOFF.cpp \
   MCAsmInfoDarwin.cpp \
+  MCAsmInfoELF.cpp \
   MCAsmStreamer.cpp \
   MCAssembler.cpp \
   MCCodeEmitter.cpp \
index 09dcda6..93b5434 100644 (file)
@@ -4,6 +4,7 @@ object_SRC_FILES := \
   Archive.cpp \
   Binary.cpp \
   COFFObjectFile.cpp \
+  ELF.cpp \
   ELFObjectFile.cpp \
   Error.cpp \
   MachOObjectFile.cpp \
index f07ad12..e4c1175 100644 (file)
@@ -68,6 +68,7 @@ support_SRC_FILES := \
   ToolOutputFile.cpp \
   Triple.cpp \
   Twine.cpp \
+  Unicode.cpp \
   Valgrind.cpp \
   Watchdog.cpp \
   circular_raw_ostream.cpp \
index 36e5680..b73e981 100644 (file)
@@ -227,6 +227,12 @@ def ProcR5      : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5",
                                     FeatureAvoidPartialCPSR,
                                     FeatureT2XtPk]>;
 
+// RenderScript-specific support for 64-bit long types on all targets
+def FeatureLong64 : SubtargetFeature<"long64", "UseLong64",
+                                        "true",
+                                        "long type is forced to be 64-bit">;
+
+
 class ProcNoItin<string Name, list<SubtargetFeature> Features>
  : Processor<Name, NoItineraries, Features>;
 
index 8351c63..2d749af 100644 (file)
@@ -135,6 +135,7 @@ void ARMSubtarget::initializeEnvironment() {
   Thumb2DSP = false;
   UseNaClTrap = false;
   UnsafeFPMath = false;
+  UseLong64 = false;
 }
 
 void ARMSubtarget::resetSubtargetFeatures(const MachineFunction *MF) {
index 5276901..567463c 100644 (file)
@@ -191,6 +191,9 @@ protected:
   /// Target machine allowed unsafe FP math (such as use of NEON fp)
   bool UnsafeFPMath;
 
+  /// Force long to be a 64-bit type (RenderScript-specific)
+  bool UseLong64;
+
   /// stackAlignment - The minimum alignment known to hold of the stack frame on
   /// entry to the function and which must be maintained by every function.
   unsigned stackAlignment;
index 954b1d0..1af5985 100644 (file)
@@ -32,7 +32,6 @@ mips_codegen_SRC_FILES := \
   MipsMachineFunction.cpp \
   MipsMCInstLower.cpp \
   MipsModuleISelDAGToDAG.cpp \
-  MipsOptimizeMathLibCalls.cpp \
   MipsOs16.cpp \
   MipsRegisterInfo.cpp \
   MipsSEFrameLowering.cpp \
index fcf58c3..a2a7d63 100644 (file)
@@ -9,11 +9,11 @@ mips_mc_desc_TBLGEN_TABLES := \
 mips_mc_desc_SRC_FILES := \
   MipsAsmBackend.cpp \
   MipsELFObjectWriter.cpp \
-  MipsELFStreamer.cpp \
   MipsMCAsmInfo.cpp \
   MipsMCCodeEmitter.cpp \
   MipsMCTargetDesc.cpp \
-  MipsReginfo.cpp
+  MipsReginfo.cpp \
+  MipsTargetStreamer.cpp
 
 # For the host
 # =====================================================
index 7182e50..cd90933 100644 (file)
@@ -3,13 +3,11 @@ LOCAL_PATH:= $(call my-dir)
 instrumentation_SRC_FILES := \
   AddressSanitizer.cpp \
   BoundsChecking.cpp \
-  EdgeProfiling.cpp \
+  DataFlowSanitizer.cpp \
+  DebugIR.cpp \
   GCOVProfiling.cpp \
   Instrumentation.cpp \
   MemorySanitizer.cpp \
-  OptimalEdgeProfiling.cpp \
-  PathProfiling.cpp \
-  ProfilingUtils.cpp \
   ThreadSanitizer.cpp
 
 # For the host
index d2e1478..7deb605 100644 (file)
@@ -2,7 +2,6 @@ LOCAL_PATH:= $(call my-dir)
 
 transforms_scalar_SRC_FILES := \
   ADCE.cpp \
-  BasicBlockPlacement.cpp \
   CodeGenPrepare.cpp \
   ConstantProp.cpp \
   CorrelatedValuePropagation.cpp \
@@ -17,16 +16,19 @@ transforms_scalar_SRC_FILES := \
   LoopDeletion.cpp \
   LoopIdiomRecognize.cpp \
   LoopInstSimplify.cpp \
+  LoopRerollPass.cpp \
   LoopRotation.cpp \
   LoopStrengthReduce.cpp \
   LoopUnrollPass.cpp \
   LoopUnswitch.cpp \
   LowerAtomic.cpp \
   MemCpyOptimizer.cpp \
+  PartiallyInlineLibCalls.cpp \
   Reassociate.cpp \
   Reg2Mem.cpp \
   SCCP.cpp \
   SROA.cpp \
+  SampleProfile.cpp \
   Scalar.cpp \
   ScalarReplAggregates.cpp \
   SimplifyCFGPass.cpp \
index 9bf9ef3..73bb3bf 100644 (file)
@@ -10,6 +10,7 @@ transforms_utils_SRC_FILES := \
   CmpInstAnalysis.cpp \
   CodeExtractor.cpp \
   DemoteRegToStack.cpp \
+  GlobalStatus.cpp \
   InlineFunction.cpp \
   InstructionNamer.cpp \
   LCSSA.cpp \