Exemple #1
0
def compileV38GCCSuite():
    deleteCachedTests('gcc')
    ensureGCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(
        os.path.join(_gccSuiteDir, "configs/"))
    print("Compiling GCC Suite reference executables ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileRefFolder(
            _gccSuiteDir,
            _cacheDir, [mx_tools.Tool.CLANG_CPP, mx_tools.Tool.CLANG_C],
            ['-Iinclude'],
            excludes=excludes))
    print("Compiling GCC files with CPP ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_gccSuiteDir,
                                    _cacheDir, [mx_tools.Tool.CLANG_CPP],
                                    ['-Iinclude'], [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC,
                                    optimizers=[mx_tools.Tool.CPP_OPT],
                                    excludes=excludes))
    print("Compiling GCC files with C ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_gccSuiteDir,
                                    _cacheDir, [mx_tools.Tool.CLANG_C],
                                    ['-Iinclude'], [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC,
                                    optimizers=[mx_tools.Tool.C_OPT],
                                    excludes=excludes))
Exemple #2
0
def compileSulongSuite():
    print("Compiling Sulong Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_sulongSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm']))
    print("Compiling Sulong Suite with clang -O0 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_sulongSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC, optimizers=[mx_tools.Tool.BB_VECTORIZE]))
    print("Compiling Sulong Suite with clang -O1/2/3 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_sulongSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm'], [mx_tools.Optimization.O1, mx_tools.Optimization.O2, mx_tools.Optimization.O3], mx_tools.ProgrammingLanguage.LLVMBC))
    print("Compiling Sulong Suite with gcc -O0 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_sulongSuiteDir, _cacheDir, [mx_tools.Tool.GCC], ['-Iinclude', '-lm'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC))
Exemple #3
0
def compileShootoutSuite():
    ensureShootoutsExist()
    excludes = mx_tools.collectExcludePattern(os.path.join(_benchmarksgameSuiteDir, "configs/"))
    print("Compiling Shootout Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm', '-lgmp'], excludes=excludes))
    print("Compiling Shootout Suite with -O1 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm', '-lgmp'], [mx_tools.Optimization.O1], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
Exemple #4
0
def compileNWCCSuite():
    ensureNWCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(os.path.join(_nwccSuiteDir, "configs/"))
    print("Compiling NWCC Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_nwccSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude'], excludes=excludes))
    print("Compiling NWCC Suite with -O0 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_nwccSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
Exemple #5
0
def compileShootoutSuite():
    ensureShootoutsExist()
    excludes = mx_tools.collectExcludePattern(os.path.join(_benchmarksgameSuiteDir, "configs/"))
    print("Compiling Shootout Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm'], excludes=excludes))
    print("Compiling Shootout Suite with -O1 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_benchmarksgameSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm'], [mx_tools.Optimization.O1], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
def compileOtherTests():
    print("Compiling Other with clang -O0", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_otherDir, _cacheDir,
                                    [mx_tools.Tool.CLANG],
                                    ['-Iinclude', '-lm'],
                                    [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC))
Exemple #7
0
def compileNWCCSuite():
    ensureNWCCSuiteExists()
    deleteCachedTests('nwcc')
    excludes = mx_tools.collectExcludePattern(os.path.join(_nwccSuiteDir, "configs/"))
    print("Compiling NWCC Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_nwccSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude'], excludes=excludes))
    print("Compiling NWCC Suite with -O0 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_nwccSuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
Exemple #8
0
def compileGCCSuite_GFortran_files():
    deleteCachedTests('gcc')
    ensureGCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(os.path.join(_gccSuiteDir, "configs/"))
    print("Compiling GCC Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_gccSuiteDir, _cacheDir, [mx_tools.Tool.GFORTRAN], ['-Iinclude'], excludes=excludes))
    print("Compiling GCC files with GFORTRAN ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_gccSuiteDir, _cacheDir, [mx_tools.Tool.GFORTRAN], ['-Iinclude'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
Exemple #9
0
def compileInteropTests38():
    print("Compiling Interop with clang -O0 and mem2reg", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_interoptestsDir,
                                    _cacheDir, [mx_tools.Tool.CLANG_V38],
                                    ['-Iinclude', '-lm'],
                                    [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC,
                                    optimizers=[mx_tools.Tool.MEM2REG_V38]))
def compileParserTurtureSuite():
    ensureGCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(
        os.path.join(_gccSuiteDir, "configs/gcc.c-torture/compile/"))
    print("Compiling parser torture files with C ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_parserTortureSuiteDirRoot,
                                    _cacheDir, [mx_tools.Tool.CLANG_C],
                                    ['-Iinclude'], [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC,
                                    excludes=excludes))
def compileInlineAssemblySuite():
    print("Compiling Assembly Suite reference executables ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileRefFolder(_assemblySuiteDir, _cacheDir,
                                       [mx_tools.Tool.CLANG], ['-Iinclude']))
    print("Compiling Assembly Suite with -O0 ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_assemblySuiteDir, _cacheDir,
                                    [mx_tools.Tool.CLANG], ['-Iinclude'],
                                    [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC))
Exemple #12
0
def compileV38SulongcppSuite():
    deleteCachedTests('sulongcpp')
    print("Compiling SulongCPP Suite reference executables ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileRefFolder(_sulongcppSuiteDir, _cacheDir,
                                       [mx_tools.Tool.CLANG_CPP_V38], []))
    print("Compiling SulongCPP Suite with clang 3.8 -O0 ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(
            _sulongcppSuiteDir,
            _cacheDir, [mx_tools.Tool.CLANG_CPP_V38], [],
            [mx_tools.Optimization.O0],
            mx_tools.ProgrammingLanguage.LLVMBC,
            optimizers=[mx_tools.Tool.BB_VECTORIZE_V38]))
def compileGCCSuite_GFortran_files():
    deleteCachedTests('gcc')
    ensureGCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(
        os.path.join(_gccSuiteDir, "configs/"))
    print("Compiling GCC Suite reference executables ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileRefFolder(_gccSuiteDir,
                                       _cacheDir, [mx_tools.Tool.GFORTRAN],
                                       ['-Iinclude'],
                                       excludes=excludes))
    print("Compiling GCC files with GFORTRAN ", end='')
    mx_tools.printProgress(
        mx_tools.multicompileFolder(_gccSuiteDir,
                                    _cacheDir, [mx_tools.Tool.GFORTRAN],
                                    ['-Iinclude'], [mx_tools.Optimization.O0],
                                    mx_tools.ProgrammingLanguage.LLVMBC,
                                    excludes=excludes))
Exemple #14
0
def compileOtherTests():
    print("Compiling Other with clang -O0", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_otherDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude', '-lm'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC))
Exemple #15
0
def compileParserTurtureSuite():
    ensureGCCSuiteExists()
    excludes = mx_tools.collectExcludePattern(os.path.join(_gccSuiteDir, "configs/gcc.c-torture/compile/"))
    print("Compiling parser torture files with C ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_parserTortureSuiteDirRoot, _cacheDir, [mx_tools.Tool.CLANG_C], ['-Iinclude'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC, excludes=excludes))
Exemple #16
0
def compileInlineAssemblySuite():
    print("Compiling Assembly Suite reference executables ", end='')
    mx_tools.printProgress(mx_tools.multicompileRefFolder(_assemblySuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude']))
    print("Compiling Assembly Suite with -O0 ", end='')
    mx_tools.printProgress(mx_tools.multicompileFolder(_assemblySuiteDir, _cacheDir, [mx_tools.Tool.CLANG], ['-Iinclude'], [mx_tools.Optimization.O0], mx_tools.ProgrammingLanguage.LLVMBC))