Fixed official chromium build on Linux

A warning treated as an error was causing the
official build to fail. Added -Wno-unused-result
to the LLVM build file to solve the issue.

Also ran 'git cl format' on the BUILD.gn files
to fix all formatting issues.

Change-Id: I235c7d9d3e60f788e1dc694a40991c214e6c77e3
Reviewed-on: https://swiftshader-review.googlesource.com/8110
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index e6e7a8e..ae6087e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -15,18 +15,18 @@
 config("swiftshader_config") {
   if (is_win) {
     cflags = [
-      "/GS", # Detects some buffer overruns
+      "/GS",  # Detects some buffer overruns
       "/Zc:wchar_t",
       "/D_CRT_SECURE_NO_DEPRECATE",
       "/DNOMINMAX",
       "/D_WINDLL",
       "/EHsc",
       "/nologo",
-      "/Gd", # Default calling convention
+      "/Gd",  # Default calling convention
     ]
 
     if (is_debug) {
-      cflags += [ "/RTC1" ] # Run-Time Error Checks
+      cflags += [ "/RTC1" ]  # Run-Time Error Checks
     } else {
       cflags += [ "/DANGLE_DISABLE_TRACE" ]
     }
@@ -35,7 +35,7 @@
 
     if (is_debug) {
       cflags += [ "-g" ]
-    } else { # Release
+    } else {  # Release
       # All Release builds use function/data sections to make the shared libraries smaller
       cflags += [
         "-ffunction-sections",
@@ -47,17 +47,17 @@
       # Choose the right Release architecture
       if (target_cpu == "x64") {
         cflags += [ "-march=core2" ]
-      } else { # 32
+      } else {  # 32
         cflags += [ "-march=i686" ]
       }
     }
 
-    if (target_cpu == "x64") { # 64 bit version
+    if (target_cpu == "x64") {  # 64 bit version
       cflags += [
         "-m64",
         "-fPIC",
       ]
-    } else { # 32 bit version
+    } else {  # 32 bit version
       cflags += [ "-m32" ]
     }
   }
@@ -76,4 +76,4 @@
   data_deps = [
     "tests/unittests:swiftshader_unittests",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/Common/BUILD.gn b/src/Common/BUILD.gn
index 979def0..803e043 100644
--- a/src/Common/BUILD.gn
+++ b/src/Common/BUILD.gn
@@ -15,7 +15,7 @@
 # Need a separate config to ensure the warnings are added to the end.
 config("swiftshader_common_private_config") {
   if (is_win) {
-    cflags = [ "/wd4201" ] # nameless struct/union
+    cflags = [ "/wd4201" ]  # nameless struct/union
   } else {
     cflags = [
       "-DLOG_TAG=\"swiftshader_common\"",
@@ -39,4 +39,4 @@
   ]
 
   configs += [ ":swiftshader_common_private_config" ]
-}
\ No newline at end of file
+}
diff --git a/src/Main/BUILD.gn b/src/Main/BUILD.gn
index 99f6444..1206be3 100644
--- a/src/Main/BUILD.gn
+++ b/src/Main/BUILD.gn
@@ -15,7 +15,7 @@
 # Need a separate config to ensure the warnings are added to the end.
 config("swiftshader_main_private_config") {
   if (is_win) {
-    cflags = [ "/wd4201" ] # nameless struct/union
+    cflags = [ "/wd4201" ]  # nameless struct/union
 
     if (is_clang) {
       cflags += [
@@ -32,7 +32,9 @@
 }
 
 source_set("swiftshader_main") {
-  deps = [ "../Common:swiftshader_common" ]
+  deps = [
+    "../Common:swiftshader_common",
+  ]
 
   sources = [
     "Config.cpp",
@@ -42,8 +44,8 @@
 
   if (is_linux) {
     sources += [
-      "libX11.cpp",
       "FrameBufferX11.cpp",
+      "libX11.cpp",
     ]
   } else if (is_mac) {
     sources += [ "FrameBufferOSX.mm" ]
@@ -57,8 +59,9 @@
 
   if (is_win) {
     configs -= [ "//build/config/win:unicode" ]
-    libs = [ "dxguid.lib" ] # For FrameBufferDD
+    libs = [ "dxguid.lib" ]  # For FrameBufferDD
   }
+
   configs += [ ":swiftshader_main_private_config" ]
 
   include_dirs = [
@@ -70,7 +73,7 @@
     include_dirs += [ "../../include" ]
     libs = [
       "Quartz.framework",
-      "Cocoa.framework"
+      "Cocoa.framework",
     ]
   }
-}
\ No newline at end of file
+}
diff --git a/src/OpenGL/common/BUILD.gn b/src/OpenGL/common/BUILD.gn
index d244f96..bc5ad97 100644
--- a/src/OpenGL/common/BUILD.gn
+++ b/src/OpenGL/common/BUILD.gn
@@ -16,8 +16,8 @@
 config("swiftshader_opengl_common_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4201", # nameless struct/union
-      "/wd4324", # structure was padded due to alignment specifier
+      "/wd4201",  # nameless struct/union
+      "/wd4324",  # structure was padded due to alignment specifier
     ]
   } else {
     cflags = [ "-DLOG_TAG=\"swiftshader_opengl_common\"" ]
@@ -26,10 +26,10 @@
 
 source_set("swiftshader_opengl_common") {
   sources = [
-    "debug.cpp",
     "Image.cpp",
-    "Object.cpp",
     "MatrixStack.cpp",
+    "Object.cpp",
+    "debug.cpp",
   ]
 
   configs += [ ":swiftshader_opengl_common_private_config" ]
@@ -39,4 +39,4 @@
     "../..",
     "../../../include",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/OpenGL/compiler/BUILD.gn b/src/OpenGL/compiler/BUILD.gn
index facdfc0..881be39 100644
--- a/src/OpenGL/compiler/BUILD.gn
+++ b/src/OpenGL/compiler/BUILD.gn
@@ -16,14 +16,14 @@
 config("swiftshader_opengl_compiler_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4005", # macro redefinition (in autogenerated code)
-      "/wd4201", # nameless struct/union
-      "/wd4267", # conversion from size_t to int/unsigned int
-      "/wd4702", # unreachable code (in autogenerated code)
+      "/wd4005",  # macro redefinition (in autogenerated code)
+      "/wd4201",  # nameless struct/union
+      "/wd4267",  # conversion from size_t to int/unsigned int
+      "/wd4702",  # unreachable code (in autogenerated code)
     ]
 
     if (!is_debug) {
-      cflags += [ "/wd4189" ] # local variable is initialized but not referenced (variables only used in ASSERTS)
+      cflags += [ "/wd4189" ]  # local variable is initialized but not referenced (variables only used in ASSERTS)
     }
   } else {
     cflags = [
@@ -32,38 +32,40 @@
     ]
 
     if (!is_debug) {
-      cflags += [ "-Wno-unused-variable" ] # local variable is initialized but not referenced (variables only used in ASSERTS)
+      cflags += [ "-Wno-unused-variable" ]  # local variable is initialized but not referenced (variables only used in ASSERTS)
     }
   }
 }
 
 source_set("swiftshader_opengl_compiler") {
-  deps = [ "preprocessor:swiftshader_opengl_preprocessor" ]
+  deps = [
+    "preprocessor:swiftshader_opengl_preprocessor",
+  ]
 
   sources = [
     "AnalyzeCallDepth.cpp",
     "Compiler.cpp",
-    "debug.cpp",
     "Diagnostics.cpp",
     "DirectiveHandler.cpp",
-    "glslang_lex.cpp",
-    "glslang_tab.cpp",
     "InfoSink.cpp",
     "Initialize.cpp",
     "InitializeParseContext.cpp",
     "IntermTraverse.cpp",
     "Intermediate.cpp",
-    "intermOut.cpp",
     "OutputASM.cpp",
-    "parseConst.cpp",
     "ParseHelper.cpp",
     "PoolAlloc.cpp",
     "SymbolTable.cpp",
     "TranslatorASM.cpp",
-    "util.cpp",
     "ValidateGlobalInitializer.cpp",
     "ValidateLimitations.cpp",
     "ValidateSwitch.cpp",
+    "debug.cpp",
+    "glslang_lex.cpp",
+    "glslang_tab.cpp",
+    "intermOut.cpp",
+    "parseConst.cpp",
+    "util.cpp",
   ]
 
   if (is_linux || is_mac) {
@@ -79,4 +81,4 @@
     "../..",
     "../../../include",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/OpenGL/compiler/preprocessor/BUILD.gn b/src/OpenGL/compiler/preprocessor/BUILD.gn
index c0fe53b..19352c9 100644
--- a/src/OpenGL/compiler/preprocessor/BUILD.gn
+++ b/src/OpenGL/compiler/preprocessor/BUILD.gn
@@ -16,14 +16,12 @@
 config("swiftshader_opengl_preprocessor_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4005", # macro redefinition (in autogenerated code)
-      "/wd4267", # conversion from size_t to int/unsigned int (in autogenerated code)
-      "/wd4702", # unreachable code (in autogenerated code)
+      "/wd4005",  # macro redefinition (in autogenerated code)
+      "/wd4267",  # conversion from size_t to int/unsigned int (in autogenerated code)
+      "/wd4702",  # unreachable code (in autogenerated code)
     ]
   } else {
-    cflags = [
-      "-DLOG_TAG=\"swiftshader_opengl_compiler\"",
-    ]
+    cflags = [ "-DLOG_TAG=\"swiftshader_opengl_compiler\"" ]
   }
 }
 
@@ -42,7 +40,5 @@
     "Tokenizer.cpp",
   ]
 
-  configs += [
-    ":swiftshader_opengl_preprocessor_private_config",
-  ]
-}
\ No newline at end of file
+  configs += [ ":swiftshader_opengl_preprocessor_private_config" ]
+}
diff --git a/src/OpenGL/libEGL/BUILD.gn b/src/OpenGL/libEGL/BUILD.gn
index 7b3e6fe..3adafd2 100644
--- a/src/OpenGL/libEGL/BUILD.gn
+++ b/src/OpenGL/libEGL/BUILD.gn
@@ -19,8 +19,8 @@
       "/DEGLAPI=",
       "/DEGL_EGLEXT_PROTOTYPES",
       "/DLIBEGL_EXPORTS",
-      "/wd4201", # nameless struct/union
-      "/wd4065", # switch statement contains 'default' but no 'case' labels
+      "/wd4201",  # nameless struct/union
+      "/wd4065",  # switch statement contains 'default' but no 'case' labels
     ]
   } else {
     cflags = [
@@ -39,18 +39,18 @@
   }
 
   sources = [
+    "../common/Object.cpp",
     "Config.cpp",
     "Display.cpp",
     "Surface.cpp",
     "libEGL.cpp",
-    "main.cpp",
-    "../common/Object.cpp",
     "libEGL.def",
     "libEGL.rc",
+    "main.cpp",
     "resource.h",
   ]
 
-  if(is_debug) {
+  if (is_debug) {
     sources += [ "../common/debug.cpp" ]
   }
 
@@ -79,4 +79,4 @@
     "../..",
     "..",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/OpenGL/libGLESv2/BUILD.gn b/src/OpenGL/libGLESv2/BUILD.gn
index a4d684d..1b798a3 100644
--- a/src/OpenGL/libGLESv2/BUILD.gn
+++ b/src/OpenGL/libGLESv2/BUILD.gn
@@ -20,12 +20,11 @@
       "/DGL_APICALL=",
       "/DGL_GLEXT_PROTOTYPES",
       "/DLIBGLESV2_EXPORTS",
-      "/wd4201", # nameless struct/union
-      "/wd4324", # structure was padded due to alignment specifier
+      "/wd4201",  # nameless struct/union
+      "/wd4324",  # structure was padded due to alignment specifier
     ]
 
-    if (is_clang)
-    {
+    if (is_clang) {
       cflags += [
         "-D__STDC_CONSTANT_MACROS",
         "-D__STDC_LIMIT_MACROS",
@@ -63,9 +62,6 @@
     "Fence.cpp",
     "Framebuffer.cpp",
     "IndexDataManager.cpp",
-    "libGLESv2.cpp",
-    "libGLESv3.cpp",
-    "main.cpp",
     "Program.cpp",
     "Query.cpp",
     "Renderbuffer.cpp",
@@ -73,12 +69,15 @@
     "Shader.cpp",
     "Texture.cpp",
     "TransformFeedback.cpp",
-    "utilities.cpp",
     "VertexArray.cpp",
     "VertexDataManager.cpp",
+    "libGLESv2.cpp",
     "libGLESv2.def",
     "libGLESv2.rc",
+    "libGLESv3.cpp",
+    "main.cpp",
     "resource.h",
+    "utilities.cpp",
   ]
 
   if (is_win) {
@@ -98,4 +97,4 @@
     "../..",
     "..",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/Reactor/BUILD.gn b/src/Reactor/BUILD.gn
index 7019f12..d98b74c 100644
--- a/src/Reactor/BUILD.gn
+++ b/src/Reactor/BUILD.gn
@@ -16,8 +16,8 @@
 config("swiftshader_reactor_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4201", # nameless struct/union
-      "/wd4245", # conversion from int to unsigned int (llvm)
+      "/wd4201",  # nameless struct/union
+      "/wd4245",  # conversion from int to unsigned int (llvm)
     ]
   } else {
     cflags = [
@@ -32,15 +32,15 @@
 
 source_set("swiftshader_reactor") {
   deps = [
-    "../OpenGL/common:swiftshader_opengl_common",
     "../../third_party/LLVM:swiftshader_llvm",
+    "../OpenGL/common:swiftshader_opengl_common",
   ]
 
   sources = [
     "LLVMReactor.cpp",
-    "Routine.cpp",
     "LLVMRoutine.cpp",
     "LLVMRoutineManager.cpp",
+    "Routine.cpp",
   ]
 
   if (is_win) {
@@ -54,4 +54,4 @@
     "../Common",
     "../../third_party/LLVM/include/",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/Renderer/BUILD.gn b/src/Renderer/BUILD.gn
index c7ee408..5f0d783 100644
--- a/src/Renderer/BUILD.gn
+++ b/src/Renderer/BUILD.gn
@@ -16,8 +16,8 @@
 config("swiftshader_renderer_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4201", # nameless struct/union
-      "/wd4324", # structure was padded due to alignment specifier
+      "/wd4201",  # nameless struct/union
+      "/wd4324",  # structure was padded due to alignment specifier
     ]
   } else {
     cflags = [
@@ -29,7 +29,9 @@
 }
 
 source_set("swiftshader_renderer") {
-  deps = [ "../Shader:swiftshader_shader" ]
+  deps = [
+    "../Shader:swiftshader_shader",
+  ]
 
   sources = [
     "Blitter.cpp",
@@ -64,4 +66,4 @@
     "../Main",
     "../Shader",
   ]
-}
\ No newline at end of file
+}
diff --git a/src/Shader/BUILD.gn b/src/Shader/BUILD.gn
index d437a1e..ca8b7d3 100644
--- a/src/Shader/BUILD.gn
+++ b/src/Shader/BUILD.gn
@@ -16,14 +16,12 @@
 config("swiftshader_shader_private_config") {
   if (is_win) {
     cflags = [
-      "/wd4201", # nameless struct/union
-      "/wd4324", # structure was padded due to alignment specifier
+      "/wd4201",  # nameless struct/union
+      "/wd4324",  # structure was padded due to alignment specifier
     ]
 
     if (is_clang) {
-      cflags += [
-        "-Wno-sign-compare",
-      ]
+      cflags += [ "-Wno-sign-compare" ]
     }
   } else {
     cflags = [ "-DLOG_TAG=\"swiftshader_shader\"" ]
@@ -31,7 +29,9 @@
 }
 
 source_set("swiftshader_shader") {
-  deps = [ "../Main:swiftshader_main" ]
+  deps = [
+    "../Main:swiftshader_main",
+  ]
 
   sources = [
     "Constants.cpp",
@@ -58,4 +58,4 @@
     "../Main",
     "../Renderer",
   ]
-}
\ No newline at end of file
+}
diff --git a/tests/unittests/BUILD.gn b/tests/unittests/BUILD.gn
index 0810dc6..1df1063 100644
--- a/tests/unittests/BUILD.gn
+++ b/tests/unittests/BUILD.gn
@@ -15,10 +15,13 @@
 import("//testing/test.gni")

 

 test("swiftshader_unittests") {

-  deps = [ 

-    "../../src/OpenGL/libGLESv2:swiftshader_libGLESv2",

+  deps = [

     "../../src/OpenGL/libEGL:swiftshader_libEGL",

+    "../../src/OpenGL/libGLESv2:swiftshader_libGLESv2",

     "//testing/gtest",

   ]

-  sources = [ "main.cpp" ]

+

+  sources = [

+    "main.cpp",

+  ]

 }

diff --git a/third_party/LLVM/BUILD.gn b/third_party/LLVM/BUILD.gn
index 1c69f3f..b06003d 100644
--- a/third_party/LLVM/BUILD.gn
+++ b/third_party/LLVM/BUILD.gn
@@ -60,6 +60,7 @@
       "-Wno-unused-function",
       "-Wno-deprecated-declarations",
       "-Wno-unused-variable",
+      "-Wno-unused-result",
     ]
   }
 }
@@ -72,24 +73,104 @@
     "lib/Analysis/BranchProbabilityInfo.cpp",
     "lib/Analysis/CaptureTracking.cpp",
     "lib/Analysis/ConstantFolding.cpp",
-    "lib/Analysis/DebugInfo.cpp",
     "lib/Analysis/DIBuilder.cpp",
-    "lib/Analysis/InstructionSimplify.cpp",
+    "lib/Analysis/DebugInfo.cpp",
     "lib/Analysis/IVUsers.cpp",
+    "lib/Analysis/InstructionSimplify.cpp",
     "lib/Analysis/Loads.cpp",
     "lib/Analysis/LoopInfo.cpp",
     "lib/Analysis/LoopPass.cpp",
     "lib/Analysis/MemoryBuiltins.cpp",
     "lib/Analysis/MemoryDependenceAnalysis.cpp",
     "lib/Analysis/NoAliasAnalysis.cpp",
-    "lib/Analysis/PathNumbering.cpp",
     "lib/Analysis/PHITransAddr.cpp",
+    "lib/Analysis/PathNumbering.cpp",
     "lib/Analysis/ProfileInfo.cpp",
     "lib/Analysis/ScalarEvolution.cpp",
     "lib/Analysis/ScalarEvolutionExpander.cpp",
     "lib/Analysis/ScalarEvolutionNormalization.cpp",
     "lib/Analysis/TypeBasedAliasAnalysis.cpp",
     "lib/Analysis/ValueTracking.cpp",
+    "lib/CodeGen/AggressiveAntiDepBreaker.cpp",
+    "lib/CodeGen/AllocationOrder.cpp",
+    "lib/CodeGen/Analysis.cpp",
+    "lib/CodeGen/BranchFolding.cpp",
+    "lib/CodeGen/CalcSpillWeights.cpp",
+    "lib/CodeGen/CallingConvLower.cpp",
+    "lib/CodeGen/CodeGen.cpp",
+    "lib/CodeGen/CodePlacementOpt.cpp",
+    "lib/CodeGen/CriticalAntiDepBreaker.cpp",
+    "lib/CodeGen/DeadMachineInstructionElim.cpp",
+    "lib/CodeGen/DwarfEHPrepare.cpp",
+    "lib/CodeGen/ELFCodeEmitter.cpp",
+    "lib/CodeGen/ELFWriter.cpp",
+    "lib/CodeGen/EdgeBundles.cpp",
+    "lib/CodeGen/ExecutionDepsFix.cpp",
+    "lib/CodeGen/ExpandISelPseudos.cpp",
+    "lib/CodeGen/ExpandPostRAPseudos.cpp",
+    "lib/CodeGen/GCMetadata.cpp",
+    "lib/CodeGen/GCStrategy.cpp",
+    "lib/CodeGen/IfConversion.cpp",
+    "lib/CodeGen/InlineSpiller.cpp",
+    "lib/CodeGen/InterferenceCache.cpp",
+    "lib/CodeGen/IntrinsicLowering.cpp",
+    "lib/CodeGen/LLVMTargetMachine.cpp",
+    "lib/CodeGen/LatencyPriorityQueue.cpp",
+    "lib/CodeGen/LexicalScopes.cpp",
+    "lib/CodeGen/LiveDebugVariables.cpp",
+    "lib/CodeGen/LiveInterval.cpp",
+    "lib/CodeGen/LiveIntervalAnalysis.cpp",
+    "lib/CodeGen/LiveIntervalUnion.cpp",
+    "lib/CodeGen/LiveRangeCalc.cpp",
+    "lib/CodeGen/LiveRangeEdit.cpp",
+    "lib/CodeGen/LiveStackAnalysis.cpp",
+    "lib/CodeGen/LiveVariables.cpp",
+    "lib/CodeGen/LocalStackSlotAllocation.cpp",
+    "lib/CodeGen/MachineBasicBlock.cpp",
+    "lib/CodeGen/MachineBlockFrequencyInfo.cpp",
+    "lib/CodeGen/MachineBranchProbabilityInfo.cpp",
+    "lib/CodeGen/MachineCSE.cpp",
+    "lib/CodeGen/MachineDominators.cpp",
+    "lib/CodeGen/MachineFunction.cpp",
+    "lib/CodeGen/MachineFunctionAnalysis.cpp",
+    "lib/CodeGen/MachineFunctionPass.cpp",
+    "lib/CodeGen/MachineFunctionPrinterPass.cpp",
+    "lib/CodeGen/MachineInstr.cpp",
+    "lib/CodeGen/MachineLICM.cpp",
+    "lib/CodeGen/MachineLoopInfo.cpp",
+    "lib/CodeGen/MachineLoopRanges.cpp",
+    "lib/CodeGen/MachineModuleInfo.cpp",
+    "lib/CodeGen/MachineModuleInfoImpls.cpp",
+    "lib/CodeGen/MachinePassRegistry.cpp",
+    "lib/CodeGen/MachineRegisterInfo.cpp",
+    "lib/CodeGen/MachineSSAUpdater.cpp",
+    "lib/CodeGen/MachineSink.cpp",
+    "lib/CodeGen/MachineVerifier.cpp",
+    "lib/CodeGen/ObjectCodeEmitter.cpp",
+    "lib/CodeGen/OcamlGC.cpp",
+    "lib/CodeGen/OptimizePHIs.cpp",
+    "lib/CodeGen/PHIElimination.cpp",
+    "lib/CodeGen/PHIEliminationUtils.cpp",
+    "lib/CodeGen/Passes.cpp",
+    "lib/CodeGen/PeepholeOptimizer.cpp",
+    "lib/CodeGen/PostRASchedulerList.cpp",
+    "lib/CodeGen/ProcessImplicitDefs.cpp",
+    "lib/CodeGen/PrologEpilogInserter.cpp",
+    "lib/CodeGen/PseudoSourceValue.cpp",
+    "lib/CodeGen/RegAllocBasic.cpp",
+    "lib/CodeGen/RegAllocFast.cpp",
+    "lib/CodeGen/RegAllocGreedy.cpp",
+    "lib/CodeGen/RegAllocLinearScan.cpp",
+    "lib/CodeGen/RegAllocPBQP.cpp",
+    "lib/CodeGen/RegisterClassInfo.cpp",
+    "lib/CodeGen/RegisterCoalescer.cpp",
+    "lib/CodeGen/RegisterScavenging.cpp",
+    "lib/CodeGen/RenderMachineFunction.cpp",
+    "lib/CodeGen/ScheduleDAG.cpp",
+    "lib/CodeGen/ScheduleDAGEmit.cpp",
+    "lib/CodeGen/ScheduleDAGInstrs.cpp",
+    "lib/CodeGen/ScheduleDAGPrinter.cpp",
+    "lib/CodeGen/ScoreboardHazardRecognizer.cpp",
     "lib/CodeGen/SelectionDAG/DAGCombiner.cpp",
     "lib/CodeGen/SelectionDAG/FastISel.cpp",
     "lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp",
@@ -111,92 +192,12 @@
     "lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp",
     "lib/CodeGen/SelectionDAG/TargetLowering.cpp",
     "lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp",
-    "lib/CodeGen/AggressiveAntiDepBreaker.cpp",
-    "lib/CodeGen/AllocationOrder.cpp",
-    "lib/CodeGen/Analysis.cpp",
-    "lib/CodeGen/BranchFolding.cpp",
-    "lib/CodeGen/CalcSpillWeights.cpp",
-    "lib/CodeGen/CallingConvLower.cpp",
-    "lib/CodeGen/CodeGen.cpp",
-    "lib/CodeGen/CodePlacementOpt.cpp",
-    "lib/CodeGen/CriticalAntiDepBreaker.cpp",
-    "lib/CodeGen/DeadMachineInstructionElim.cpp",
-    "lib/CodeGen/DwarfEHPrepare.cpp",
-    "lib/CodeGen/EdgeBundles.cpp",
-    "lib/CodeGen/ELFCodeEmitter.cpp",
-    "lib/CodeGen/ELFWriter.cpp",
-    "lib/CodeGen/ExecutionDepsFix.cpp",
-    "lib/CodeGen/ExpandISelPseudos.cpp",
-    "lib/CodeGen/ExpandPostRAPseudos.cpp",
-    "lib/CodeGen/GCMetadata.cpp",
-    "lib/CodeGen/GCStrategy.cpp",
-    "lib/CodeGen/IfConversion.cpp",
-    "lib/CodeGen/InlineSpiller.cpp",
-    "lib/CodeGen/InterferenceCache.cpp",
-    "lib/CodeGen/IntrinsicLowering.cpp",
-    "lib/CodeGen/LatencyPriorityQueue.cpp",
-    "lib/CodeGen/LexicalScopes.cpp",
-    "lib/CodeGen/LiveDebugVariables.cpp",
-    "lib/CodeGen/LiveIntervalAnalysis.cpp",
-    "lib/CodeGen/LiveInterval.cpp",
-    "lib/CodeGen/LiveIntervalUnion.cpp",
-    "lib/CodeGen/LiveRangeCalc.cpp",
-    "lib/CodeGen/LiveRangeEdit.cpp",
-    "lib/CodeGen/LiveStackAnalysis.cpp",
-    "lib/CodeGen/LiveVariables.cpp",
-    "lib/CodeGen/LLVMTargetMachine.cpp",
-    "lib/CodeGen/LocalStackSlotAllocation.cpp",
-    "lib/CodeGen/MachineBasicBlock.cpp",
-    "lib/CodeGen/MachineBlockFrequencyInfo.cpp",
-    "lib/CodeGen/MachineBranchProbabilityInfo.cpp",
-    "lib/CodeGen/MachineCSE.cpp",
-    "lib/CodeGen/MachineDominators.cpp",
-    "lib/CodeGen/MachineFunctionAnalysis.cpp",
-    "lib/CodeGen/MachineFunction.cpp",
-    "lib/CodeGen/MachineFunctionPass.cpp",
-    "lib/CodeGen/MachineFunctionPrinterPass.cpp",
-    "lib/CodeGen/MachineInstr.cpp",
-    "lib/CodeGen/MachineLICM.cpp",
-    "lib/CodeGen/MachineLoopInfo.cpp",
-    "lib/CodeGen/MachineLoopRanges.cpp",
-    "lib/CodeGen/MachineModuleInfo.cpp",
-    "lib/CodeGen/MachineModuleInfoImpls.cpp",
-    "lib/CodeGen/MachinePassRegistry.cpp",
-    "lib/CodeGen/MachineRegisterInfo.cpp",
-    "lib/CodeGen/MachineSink.cpp",
-    "lib/CodeGen/MachineSSAUpdater.cpp",
-    "lib/CodeGen/MachineVerifier.cpp",
-    "lib/CodeGen/ObjectCodeEmitter.cpp",
-    "lib/CodeGen/OcamlGC.cpp",
-    "lib/CodeGen/OptimizePHIs.cpp",
-    "lib/CodeGen/Passes.cpp",
-    "lib/CodeGen/PeepholeOptimizer.cpp",
-    "lib/CodeGen/PHIElimination.cpp",
-    "lib/CodeGen/PHIEliminationUtils.cpp",
-    "lib/CodeGen/PostRASchedulerList.cpp",
-    "lib/CodeGen/ProcessImplicitDefs.cpp",
-    "lib/CodeGen/PrologEpilogInserter.cpp",
-    "lib/CodeGen/PseudoSourceValue.cpp",
-    "lib/CodeGen/RegAllocBasic.cpp",
-    "lib/CodeGen/RegAllocFast.cpp",
-    "lib/CodeGen/RegAllocGreedy.cpp",
-    "lib/CodeGen/RegAllocLinearScan.cpp",
-    "lib/CodeGen/RegAllocPBQP.cpp",
-    "lib/CodeGen/RegisterClassInfo.cpp",
-    "lib/CodeGen/RegisterCoalescer.cpp",
-    "lib/CodeGen/RegisterScavenging.cpp",
-    "lib/CodeGen/RenderMachineFunction.cpp",
-    "lib/CodeGen/ScheduleDAG.cpp",
-    "lib/CodeGen/ScheduleDAGEmit.cpp",
-    "lib/CodeGen/ScheduleDAGInstrs.cpp",
-    "lib/CodeGen/ScheduleDAGPrinter.cpp",
-    "lib/CodeGen/ScoreboardHazardRecognizer.cpp",
     "lib/CodeGen/ShadowStackGC.cpp",
     "lib/CodeGen/ShrinkWrapping.cpp",
     "lib/CodeGen/SjLjEHPrepare.cpp",
     "lib/CodeGen/SlotIndexes.cpp",
-    "lib/CodeGen/Spiller.cpp",
     "lib/CodeGen/SpillPlacement.cpp",
+    "lib/CodeGen/Spiller.cpp",
     "lib/CodeGen/SplitKit.cpp",
     "lib/CodeGen/Splitter.cpp",
     "lib/CodeGen/StackProtector.cpp",
@@ -209,6 +210,7 @@
     "lib/CodeGen/UnreachableBlockElim.cpp",
     "lib/CodeGen/VirtRegMap.cpp",
     "lib/CodeGen/VirtRegRewriter.cpp",
+    "lib/ExecutionEngine/ExecutionEngine.cpp",
     "lib/ExecutionEngine/JIT/Intercept.cpp",
     "lib/ExecutionEngine/JIT/JIT.cpp",
     "lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp",
@@ -216,13 +218,11 @@
     "lib/ExecutionEngine/JIT/JITEmitter.cpp",
     "lib/ExecutionEngine/JIT/JITMemoryManager.cpp",
     "lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp",
-    "lib/ExecutionEngine/ExecutionEngine.cpp",
     "lib/ExecutionEngine/TargetSelect.cpp",
     "lib/MC/ELFObjectWriter.cpp",
-    "lib/MC/MachObjectWriter.cpp",
     "lib/MC/MCAsmBackend.cpp",
-    "lib/MC/MCAsmInfoCOFF.cpp",
     "lib/MC/MCAsmInfo.cpp",
+    "lib/MC/MCAsmInfoCOFF.cpp",
     "lib/MC/MCAsmInfoDarwin.cpp",
     "lib/MC/MCAsmStreamer.cpp",
     "lib/MC/MCAssembler.cpp",
@@ -241,16 +241,16 @@
     "lib/MC/MCInstrAnalysis.cpp",
     "lib/MC/MCLabel.cpp",
     "lib/MC/MCLoggingStreamer.cpp",
-    "lib/MC/MCMachObjectTargetWriter.cpp",
     "lib/MC/MCMachOStreamer.cpp",
+    "lib/MC/MCMachObjectTargetWriter.cpp",
     "lib/MC/MCModule.cpp",
     "lib/MC/MCNullStreamer.cpp",
     "lib/MC/MCObjectFileInfo.cpp",
     "lib/MC/MCObjectStreamer.cpp",
     "lib/MC/MCObjectWriter.cpp",
     "lib/MC/MCPureStreamer.cpp",
-    "lib/MC/MCSectionCOFF.cpp",
     "lib/MC/MCSection.cpp",
+    "lib/MC/MCSectionCOFF.cpp",
     "lib/MC/MCSectionELF.cpp",
     "lib/MC/MCSectionMachO.cpp",
     "lib/MC/MCStreamer.cpp",
@@ -259,17 +259,17 @@
     "lib/MC/MCTargetAsmLexer.cpp",
     "lib/MC/MCValue.cpp",
     "lib/MC/MCWin64EH.cpp",
+    "lib/MC/MachObjectWriter.cpp",
     "lib/MC/SubtargetFeature.cpp",
     "lib/MC/WinCOFFObjectWriter.cpp",
     "lib/MC/WinCOFFStreamer.cpp",
-    "lib/Support/Allocator.cpp",
     "lib/Support/APFloat.cpp",
     "lib/Support/APInt.cpp",
     "lib/Support/APSInt.cpp",
+    "lib/Support/Allocator.cpp",
     "lib/Support/Atomic.cpp",
     "lib/Support/BlockFrequency.cpp",
     "lib/Support/BranchProbability.cpp",
-    "lib/Support/circular_raw_ostream.cpp",
     "lib/Support/CommandLine.cpp",
     "lib/Support/ConstantRange.cpp",
     "lib/Support/CrashRecoveryContext.cpp",
@@ -293,8 +293,8 @@
     "lib/Support/IsInf.cpp",
     "lib/Support/IsNAN.cpp",
     "lib/Support/ManagedStatic.cpp",
-    "lib/Support/MemoryBuffer.cpp",
     "lib/Support/Memory.cpp",
+    "lib/Support/MemoryBuffer.cpp",
     "lib/Support/MemoryObject.cpp",
     "lib/Support/Mutex.cpp",
     "lib/Support/Path.cpp",
@@ -303,8 +303,6 @@
     "lib/Support/PrettyStackTrace.cpp",
     "lib/Support/Process.cpp",
     "lib/Support/Program.cpp",
-    "lib/Support/raw_os_ostream.cpp",
-    "lib/Support/raw_ostream.cpp",
     "lib/Support/RWMutex.cpp",
     "lib/Support/SearchForAddressOfSpecialSymbol.cpp",
     "lib/Support/Signals.cpp",
@@ -316,42 +314,20 @@
     "lib/Support/StringMap.cpp",
     "lib/Support/StringPool.cpp",
     "lib/Support/StringRef.cpp",
-    "lib/Support/system_error.cpp",
     "lib/Support/SystemUtils.cpp",
     "lib/Support/TargetRegistry.cpp",
-    "lib/Support/Threading.cpp",
     "lib/Support/ThreadLocal.cpp",
-    "lib/Support/Timer.cpp",
+    "lib/Support/Threading.cpp",
     "lib/Support/TimeValue.cpp",
+    "lib/Support/Timer.cpp",
     "lib/Support/ToolOutputFile.cpp",
     "lib/Support/Triple.cpp",
     "lib/Support/Twine.cpp",
     "lib/Support/Valgrind.cpp",
-    "lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp",
-    "lib/Target/X86/InstPrinter/X86InstComments.cpp",
-    "lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp",
-    "lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp",
-    "lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp",
-    "lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp",
-    "lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp",
-    "lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp",
-    "lib/Target/X86/TargetInfo/X86TargetInfo.cpp",
-    "lib/Target/X86/Utils/X86ShuffleDecode.cpp",
-    "lib/Target/X86/X86CodeEmitter.cpp",
-    "lib/Target/X86/X86ELFWriterInfo.cpp",
-    "lib/Target/X86/X86FastISel.cpp",
-    "lib/Target/X86/X86FloatingPoint.cpp",
-    "lib/Target/X86/X86FrameLowering.cpp",
-    "lib/Target/X86/X86InstrInfo.cpp",
-    "lib/Target/X86/X86ISelDAGToDAG.cpp",
-    "lib/Target/X86/X86ISelLowering.cpp",
-    "lib/Target/X86/X86JITInfo.cpp",
-    "lib/Target/X86/X86RegisterInfo.cpp",
-    "lib/Target/X86/X86SelectionDAGInfo.cpp",
-    "lib/Target/X86/X86Subtarget.cpp",
-    "lib/Target/X86/X86TargetMachine.cpp",
-    "lib/Target/X86/X86TargetObjectFile.cpp",
-    "lib/Target/X86/X86VZeroUpper.cpp",
+    "lib/Support/circular_raw_ostream.cpp",
+    "lib/Support/raw_os_ostream.cpp",
+    "lib/Support/raw_ostream.cpp",
+    "lib/Support/system_error.cpp",
     "lib/Target/Mangler.cpp",
     "lib/Target/Target.cpp",
     "lib/Target/TargetData.cpp",
@@ -363,6 +339,31 @@
     "lib/Target/TargetMachine.cpp",
     "lib/Target/TargetRegisterInfo.cpp",
     "lib/Target/TargetSubtargetInfo.cpp",
+    "lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp",
+    "lib/Target/X86/InstPrinter/X86InstComments.cpp",
+    "lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp",
+    "lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp",
+    "lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp",
+    "lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp",
+    "lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp",
+    "lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp",
+    "lib/Target/X86/TargetInfo/X86TargetInfo.cpp",
+    "lib/Target/X86/Utils/X86ShuffleDecode.cpp",
+    "lib/Target/X86/X86CodeEmitter.cpp",
+    "lib/Target/X86/X86ELFWriterInfo.cpp",
+    "lib/Target/X86/X86FastISel.cpp",
+    "lib/Target/X86/X86FloatingPoint.cpp",
+    "lib/Target/X86/X86FrameLowering.cpp",
+    "lib/Target/X86/X86ISelDAGToDAG.cpp",
+    "lib/Target/X86/X86ISelLowering.cpp",
+    "lib/Target/X86/X86InstrInfo.cpp",
+    "lib/Target/X86/X86JITInfo.cpp",
+    "lib/Target/X86/X86RegisterInfo.cpp",
+    "lib/Target/X86/X86SelectionDAGInfo.cpp",
+    "lib/Target/X86/X86Subtarget.cpp",
+    "lib/Target/X86/X86TargetMachine.cpp",
+    "lib/Target/X86/X86TargetObjectFile.cpp",
+    "lib/Target/X86/X86VZeroUpper.cpp",
     "lib/Transforms/InstCombine/InstCombineAddSub.cpp",
     "lib/Transforms/InstCombine/InstCombineAndOrXor.cpp",
     "lib/Transforms/InstCombine/InstCombineCalls.cpp",
@@ -384,8 +385,8 @@
     "lib/Transforms/Scalar/LoopStrengthReduce.cpp",
     "lib/Transforms/Scalar/Reassociate.cpp",
     "lib/Transforms/Scalar/Reg2Mem.cpp",
-    "lib/Transforms/Scalar/ScalarReplAggregates.cpp",
     "lib/Transforms/Scalar/SCCP.cpp",
+    "lib/Transforms/Scalar/ScalarReplAggregates.cpp",
     "lib/Transforms/Scalar/SimplifyCFGPass.cpp",
     "lib/Transforms/Utils/AddrModeMatcher.cpp",
     "lib/Transforms/Utils/BasicBlockUtils.cpp",
@@ -400,8 +401,8 @@
     "lib/Transforms/Utils/LowerSwitch.cpp",
     "lib/Transforms/Utils/Mem2Reg.cpp",
     "lib/Transforms/Utils/PromoteMemoryToRegister.cpp",
-    "lib/Transforms/Utils/SimplifyCFG.cpp",
     "lib/Transforms/Utils/SSAUpdater.cpp",
+    "lib/Transforms/Utils/SimplifyCFG.cpp",
     "lib/Transforms/Utils/UnifyFunctionExitNodes.cpp",
     "lib/VMCore/AsmWriter.cpp",
     "lib/VMCore/Attributes.cpp",
@@ -415,16 +416,16 @@
     "lib/VMCore/Dominators.cpp",
     "lib/VMCore/Function.cpp",
     "lib/VMCore/GCOV.cpp",
-    "lib/VMCore/Globals.cpp",
     "lib/VMCore/GVMaterializer.cpp",
+    "lib/VMCore/Globals.cpp",
+    "lib/VMCore/IRBuilder.cpp",
     "lib/VMCore/InlineAsm.cpp",
     "lib/VMCore/Instruction.cpp",
     "lib/VMCore/Instructions.cpp",
     "lib/VMCore/IntrinsicInst.cpp",
-    "lib/VMCore/IRBuilder.cpp",
-    "lib/VMCore/LeakDetector.cpp",
     "lib/VMCore/LLVMContext.cpp",
     "lib/VMCore/LLVMContextImpl.cpp",
+    "lib/VMCore/LeakDetector.cpp",
     "lib/VMCore/Metadata.cpp",
     "lib/VMCore/Module.cpp",
     "lib/VMCore/Pass.cpp",
@@ -458,4 +459,4 @@
   }
 
   include_dirs += [ "include" ]
-}
\ No newline at end of file
+}