Skip to content

Commit 2444fdd

Browse files
[BOLT] Add AArch64 worker and builder (#469)
1 parent 3dcb985 commit 2444fdd

File tree

3 files changed

+96
-1
lines changed

3 files changed

+96
-1
lines changed

buildbot/osuosl/master/config/builders.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,89 @@
31223122
],
31233123
)},
31243124

3125+
# BOLT builders managed by Arm.
3126+
{'name' : 'bolt-aarch64-ubuntu-nfc',
3127+
'tags' : ["bolt", "aarch64"],
3128+
'collapseRequests': False,
3129+
'workernames' : ['bolt-worker-aarch64'],
3130+
'builddir': "bolt-aarch64-ubuntu-nfc",
3131+
'factory' : BOLTBuilder.getBOLTCmakeBuildFactory(
3132+
bolttests=True,
3133+
depends_on_projects=['bolt', 'llvm'],
3134+
extra_configure_args=[
3135+
"-DLLVM_APPEND_VC_REV=OFF",
3136+
"-DCMAKE_EXE_LINKER_FLAGS='-Wl,--build-id=none'"
3137+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
3138+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
3139+
"-DLLVM_ENABLE_PROJECTS=clang;lld;bolt",
3140+
"-DLLVM_TARGETS_TO_BUILD=X86;AArch64;RISCV",
3141+
],
3142+
is_nfc=True,
3143+
)},
3144+
3145+
{'name': "bolt-aarch64-ubuntu-clang",
3146+
'tags' : ["bolt", "aarch64"],
3147+
'workernames':["bolt-worker-aarch64"],
3148+
'builddir': "bolt-aarch64-ubuntu-clang",
3149+
'factory' : BOLTBuilder.getBOLTCmakeBuildFactory(
3150+
bolttests=False,
3151+
clean=True,
3152+
depends_on_projects=['bolt', 'clang', 'lld', 'llvm'],
3153+
caches=[
3154+
'clang/cmake/caches/BOLT.cmake',
3155+
'clang/cmake/caches/BOLT-PGO.cmake',
3156+
],
3157+
targets=['clang-bolt'],
3158+
checks=['stage2-clang-bolt'],
3159+
extra_configure_args=[
3160+
"-DCMAKE_C_COMPILER=gcc",
3161+
"-DCMAKE_CXX_COMPILER=g++",
3162+
"-DLLVM_APPEND_VC_REV=OFF",
3163+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
3164+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
3165+
"-DLLVM_ENABLE_LLD=ON",
3166+
"-DBOOTSTRAP_LLVM_ENABLE_LLD=ON",
3167+
"-DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON",
3168+
"-DPGO_INSTRUMENT_LTO=Thin",
3169+
],
3170+
)},
3171+
3172+
{'name': "bolt-aarch64-ubuntu-dylib",
3173+
'tags' : ["bolt", "aarch64"],
3174+
'workernames':["bolt-worker-aarch64"],
3175+
'builddir': "bolt-aarch64-ubuntu-dylib",
3176+
'factory' : BOLTBuilder.getBOLTCmakeBuildFactory(
3177+
bolttests=False,
3178+
depends_on_projects=['bolt', 'lld', 'llvm'],
3179+
extra_configure_args=[
3180+
"-DLLVM_APPEND_VC_REV=OFF",
3181+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
3182+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
3183+
"-DLLVM_ENABLE_PROJECTS=bolt;clang;lld",
3184+
"-DLLVM_TARGETS_TO_BUILD=X86;AArch64;RISCV",
3185+
"-DLLVM_LINK_LLVM_DYLIB=ON",
3186+
"-DLLVM_ENABLE_LLD=ON",
3187+
],
3188+
)},
3189+
3190+
{'name': "bolt-aarch64-ubuntu-shared",
3191+
'tags' : ["bolt", "aarch64"],
3192+
'workernames':["bolt-worker-aarch64"],
3193+
'builddir': "bolt-aarch64-ubuntu-shared",
3194+
'factory' : BOLTBuilder.getBOLTCmakeBuildFactory(
3195+
bolttests=False,
3196+
depends_on_projects=['bolt', 'lld', 'llvm'],
3197+
extra_configure_args=[
3198+
"-DLLVM_APPEND_VC_REV=OFF",
3199+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
3200+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
3201+
"-DLLVM_ENABLE_PROJECTS=bolt;clang;lld",
3202+
"-DLLVM_TARGETS_TO_BUILD=X86;AArch64;RISCV",
3203+
"-DBUILD_SHARED_LIBS=ON",
3204+
"-DLLVM_ENABLE_LLD=ON",
3205+
],
3206+
)},
3207+
31253208
# AMD ROCm support.
31263209
{'name' : 'mlir-rocm-mi200',
31273210
'tags' : ["mlir"],

buildbot/osuosl/master/config/status.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,21 @@ def getReporters():
503503
extraRecipients = ["llvm-bolt@meta.com"],
504504
generators = [
505505
utils.LLVMDefaultBuildStatusGenerator(
506-
subject = "BOLT NFC checks mismatch",
506+
subject = "BOLT NFC checks mismatch (X86)",
507507
mode = ("warnings",),
508508
builders = ["bolt-x86_64-ubuntu-nfc"]),
509509
]),
510+
reporters.MailNotifier(
511+
dumpMailsToLog = True, # TODO: For debug purposes only. Remove this later.
512+
fromaddr = status_email_fromaddr,
513+
sendToInterestedUsers = False,
514+
extraRecipients = ["llvm-bolt@arm.com", "llvm-bolt@meta.com"],
515+
generators = [
516+
utils.LLVMDefaultBuildStatusGenerator(
517+
subject = "BOLT NFC checks mismatch (AArch64)",
518+
mode = ("warnings",),
519+
builders = ["bolt-aarch64-ubuntu-nfc"]),
520+
]),
510521
reporters.MailNotifier(
511522
fromaddr = status_email_fromaddr,
512523
sendToInterestedUsers = False,

buildbot/osuosl/master/config/workers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ def get_all():
387387
# BOLT workers
388388
create_worker("bolt-worker", max_builds=1),
389389
create_worker("bolt-worker-aarch64-meta", max_builds=1),
390+
create_worker("bolt-worker-aarch64", max_builds=1),
390391

391392
# Fedora worker
392393
create_worker("standalone-build-x86_64", max_builds=1),

0 commit comments

Comments
 (0)