def compileShootoutSuite(): ensureShootoutsExist() excludes = mx_buildtools.collectExcludePattern(os.path.join(_benchmarksgameSuiteDir, "configs/")) print("Compiling Shootout Suite reference executables ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileRefFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude', '-lm', '-lgmp'], excludes=excludes)) print("Compiling Shootout Suite with -O1 ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude', '-lm', '-lgmp'], [mx_buildtools.Optimization.O1], mx_buildtools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileNWCCSuite(): ensureNWCCSuiteExists() deleteCachedTests('nwcc') excludes = mx_buildtools.collectExcludePattern(os.path.join(_nwccSuiteDir, "configs/")) print("Compiling NWCC Suite reference executables ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileRefFolder(_nwccSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'], excludes=excludes)) print("Compiling NWCC Suite with -O0 ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileFolder(_nwccSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'], [mx_buildtools.Optimization.O0], mx_buildtools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileGCCSuite_GFortran_files(): deleteCachedTests('gcc') ensureGCCSuiteExists() excludes = mx_buildtools.collectExcludePattern(os.path.join(_gccSuiteDir, "configs/")) print("Compiling GCC Suite reference executables ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileRefFolder(_gccSuiteDir, _cacheDir, [mx_buildtools.Tool.GFORTRAN], ['-Iinclude'], excludes=excludes)) print("Compiling GCC files with GFORTRAN ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileFolder(_gccSuiteDir, _cacheDir, [mx_buildtools.Tool.GFORTRAN], ['-Iinclude'], [mx_buildtools.Optimization.O0], mx_buildtools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileLLVMSuite(): deleteCachedTests('llvm') ensureLLVMSuiteExists() excludes = mx_buildtools.collectExcludePattern( os.path.join(_llvmSuiteDir, "configs/")) print("Compiling LLVM Suite reference executables ", end='') mx_buildtools.printProgress( mx_buildtools.multicompileRefFolder(_llvmSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'], excludes=excludes)) print("Compiling LLVM Suite with -O0 ", end='') mx_buildtools.printProgress( mx_buildtools.multicompileFolder( _llvmSuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'], [mx_buildtools.Optimization.O0], mx_buildtools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileGCCSuite_GFortran_files(): deleteCachedTests('gcc') ensureGCCSuiteExists() excludes = mx_buildtools.collectExcludePattern( os.path.join(_gccSuiteDir, "configs/")) print("Compiling GCC Suite reference executables ", end='') mx_buildtools.printProgress( mx_buildtools.multicompileRefFolder(_gccSuiteDir, _cacheDir, [mx_buildtools.Tool.GFORTRAN], ['-Iinclude'], excludes=excludes)) print("Compiling GCC files with GFORTRAN ", end='') mx_buildtools.printProgress( mx_buildtools.multicompileFolder( _gccSuiteDir, _cacheDir, [mx_buildtools.Tool.GFORTRAN], ['-Iinclude'], [mx_buildtools.Optimization.O0], mx_buildtools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileInlineAssemblySuite(): print("Compiling Assembly Suite reference executables ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileRefFolder(_assemblySuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'])) print("Compiling Assembly Suite with -O0 ", end='') mx_buildtools.printProgress(mx_buildtools.multicompileFolder(_assemblySuiteDir, _cacheDir, [mx_buildtools.Tool.CLANG], ['-Iinclude'], [mx_buildtools.Optimization.O0], mx_buildtools.ProgrammingLanguage.LLVMBC))