Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bba5371

Browse files
committed
[Polly][CI] Add ScriptedBuilder scripts
Add ScriptedBuilder-equivalents of the current PollyBuilder-based buildbots.
1 parent 33cef35 commit bba5371

8 files changed

Lines changed: 344 additions & 0 deletions
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=OFF",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=ON",
37+
"-DBUILD_SHARED_LIBS=OFF",
38+
"-DLLVM_BUILD_LLVM_DYLIB=OFF",
39+
"-DLLVM_LINK_LLVM_DYLIB=OFF",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=ON",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=OFF",
37+
"-DBUILD_SHARED_LIBS=OFF",
38+
"-DLLVM_BUILD_LLVM_DYLIB=OFF",
39+
"-DLLVM_LINK_LLVM_DYLIB=OFF",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=ON",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=OFF",
37+
"-DBUILD_SHARED_LIBS=ON",
38+
"-DLLVM_BUILD_LLVM_DYLIB=OFF",
39+
"-DLLVM_LINK_LLVM_DYLIB=OFF",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=ON",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=ON",
37+
"-DBUILD_SHARED_LIBS=ON",
38+
"-DLLVM_BUILD_LLVM_DYLIB=OFF",
39+
"-DLLVM_LINK_LLVM_DYLIB=OFF",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=ON",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=OFF",
37+
"-DBUILD_SHARED_LIBS=OFF",
38+
"-DLLVM_BUILD_LLVM_DYLIB=ON",
39+
"-DLLVM_LINK_LLVM_DYLIB=ON",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
17+
with worker.run(
18+
__file__,
19+
llvmsrcroot,
20+
clobberpaths=[llvmbuilddir],
21+
incremental=True,
22+
) as w:
23+
with w.step("configure-llvm", halt_on_fail=True):
24+
cmakecmd = [
25+
"cmake",
26+
f"-S{w.in_llvmsrc('llvm')}",
27+
f"-B{llvmbuilddir}",
28+
"-GNinja",
29+
"-DCMAKE_BUILD_TYPE=Release",
30+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
31+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
32+
"-DLLVM_ENABLE_PROJECTS=polly",
33+
"-DLLVM_TARGETS_TO_BUILD=X86",
34+
"-DLLVM_ENABLE_LLD=ON",
35+
"-DLLVM_ENABLE_ASSERTIONS=ON",
36+
"-DLLVM_POLLY_LINK_INTO_TOOLS=ON",
37+
"-DBUILD_SHARED_LIBS=OFF",
38+
"-DLLVM_BUILD_LLVM_DYLIB=ON",
39+
"-DLLVM_LINK_LLVM_DYLIB=ON",
40+
]
41+
if w.jobs:
42+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
43+
w.run_command(cmakecmd)
44+
45+
with w.step("build-llvm", halt_on_fail=True):
46+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
47+
48+
with w.step("check-polly"):
49+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)

polly/ci/polly-x86_64-linux-test-suite.py

100644100755
File mode changed.

polly/ci/polly-x86_64-linux.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#! /usr/bin/env python3
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
import os
7+
import sys
8+
9+
# Adapt to location in source tree
10+
llvmsrcroot = os.path.normpath(f"{__file__}/../../..")
11+
12+
sys.path.insert(0, os.path.join(llvmsrcroot, ".ci/buildbot"))
13+
import worker
14+
15+
llvmbuilddir = "llvm.build"
16+
llvminstalldir = "llvm.install"
17+
18+
with worker.run(
19+
__file__,
20+
llvmsrcroot,
21+
clobberpaths=[llvmbuilddir],
22+
incremental=True,
23+
) as w:
24+
with w.step("configure-llvm", halt_on_fail=True):
25+
cmakecmd = [
26+
"cmake",
27+
f"-S{w.in_llvmsrc('llvm')}",
28+
f"-B{llvmbuilddir}",
29+
"-GNinja",
30+
"-DCMAKE_BUILD_TYPE=Release",
31+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
32+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
33+
"-DLLVM_ENABLE_PROJECTS=polly",
34+
"-DLLVM_TARGETS_TO_BUILD=X86",
35+
"-DLLVM_ENABLE_LLD=ON",
36+
"-DLLVM_ENABLE_ASSERTIONS=ON",
37+
"-DLLVM_POLLY_LINK_INTO_TOOLS=ON",
38+
"-DBUILD_SHARED_LIBS=OFF",
39+
"-DLLVM_BUILD_LLVM_DYLIB=OFF",
40+
"-DLLVM_LINK_LLVM_DYLIB=OFF",
41+
]
42+
if w.jobs:
43+
cmakecmd.append(f"-DLLVM_LIT_ARGS=-sv;-j{w.jobs}")
44+
w.run_command(cmakecmd)
45+
46+
with w.step("build-llvm", halt_on_fail=True):
47+
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
48+
49+
with w.step("check-polly"):
50+
w.run_ninja(["check-polly"], builddir=llvmbuilddir)

0 commit comments

Comments
 (0)