[zorg] r260660 - A flag to enable GlobalISel

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 22:47:30 PST 2016


Author: cmatthews
Date: Fri Feb 12 00:47:29 2016
New Revision: 260660

URL: http://llvm.org/viewvc/llvm-project?rev=260660&view=rev
Log:
A flag to enable GlobalISel

Modified:
    zorg/trunk/test/jenkins/test_build.py
    zorg/trunk/zorg/jenkins/build.py

Modified: zorg/trunk/test/jenkins/test_build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/test/jenkins/test_build.py?rev=260660&r1=260659&r2=260660&view=diff
==============================================================================
--- zorg/trunk/test/jenkins/test_build.py (original)
+++ zorg/trunk/test/jenkins/test_build.py Fri Feb 12 00:47:29 2016
@@ -154,3 +154,7 @@
 # CHECK-STATIC-ANALYZER-BENCHMARKS: cd [[WORKSPACE:.*]]/test-suite-ClangAnalyzer/
 # CHECK-STATIC-ANALYZER-BENCHMARKS: '[[WORKSPACE]]/utils-analyzer/SATestBuild.py' '--strictness' '2'
 # CHECK-STATIC-ANALYZER-BENCHMARKS: @@@@@@
+
+# RUN: python %{src_root}/zorg/jenkins/build.py cmake all --globalisel | FileCheck --check-prefix CHECK-GISEL %s
+# CHECK-GISEL: '/usr/local/bin/cmake' '-G' 'Ninja'
+# CHECK-GISEL: '-DLLVM_BUILD_GLOBAL_ISEL=ON'

Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=260660&r1=260659&r2=260660&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Fri Feb 12 00:47:29 2016
@@ -190,6 +190,9 @@ def cmake_builder(target):
         cmake_cmd += ["-DLLVM_ENABLE_ASSERTIONS=On"]
     else:
         cmake_cmd += ["-DLLVM_ENABLE_ASSERTIONS=Off"]
+        
+    if conf.globalisel:
+        cmake_cmd += ["-DLLVM_BUILD_GLOBAL_ISEL=ON"]
 
     # Workaround for PR14109: CMake build for compiler-rt should use
     # just-built clang.
@@ -761,6 +764,9 @@ def parse_args():
                         help='Set an arbitrary compiler flag')
     parser.add_argument('--noupload', dest='noupload',
                         action='store_true')
+    parser.add_argument('--globalisel', dest='globalisel',
+                        action='store_true', help="Turn on the experimental"
+                        " GlobalISel CMake flag.")
 
     args = parser.parse_args()
     return args




More information about the llvm-commits mailing list