Skip to content

Commit 58e4391

Browse files
[AIE][CI] Accelerate CI
For the AIE CI, we will also test upstream architectures independently, so only aggressively test AIE in this workflow. This patch adds some convenience targets as well: check-llvm-aie check-clang-aie check-lld-aie
1 parent a9ad571 commit 58e4391

File tree

7 files changed

+41
-4
lines changed

7 files changed

+41
-4
lines changed

.github/workflows/amd-aie-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
name: Test llvm,clang
2525
uses: ./.github/workflows/llvm-project-tests.yml
2626
with:
27-
build_target: check-all
28-
projects: clang;clang-tools-extra;lld
27+
build_target: check-llvm-aie check-clang-aie check-lld-aie
28+
projects: clang;lld
29+
cache-key: amd-aie
2930
extra_cmake_args: '-DLLVM_USE_LINKER=gold -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AIE" -DLLVM_TARGETS_TO_BUILD="host" -DLIBC_ENABLE_USE_BY_CLANG=ON -DLLVM_ENABLE_RUNTIMES="compiler-rt;libc" -DLLVM_BUILTIN_TARGETS="aie2-none-unknown-elf;aie-none-unknown-elf" -DLLVM_RUNTIME_TARGETS="aie-none-unknown-elf;aie2-none-unknown-elf" -DBUILTINS_aie-none-unknown-elf_LLVM_USE_LINKER=lld -DBUILTINS_aie-none-unknown-elf_CMAKE_BUILD_TYPE=Release -DRUNTIMES_aie-none-unknown-elf_LLVM_USE_LINKER=lld -DRUNTIMES_aie-none-unknown-elf_CMAKE_BUILD_TYPE=Release -DBUILTINS_aie2-none-unknown-elf_LLVM_USE_LINKER=lld -DBUILTINS_aie2-none-unknown-elf_CMAKE_BUILD_TYPE=Release -DRUNTIMES_aie2-none-unknown-elf_LLVM_USE_LINKER=lld -DRUNTIMES_aie2-none-unknown-elf_CMAKE_BUILD_TYPE=Release -DLLVM_LIBC_FULL_BUILD=ON'
3031
os_list: '["ubuntu-latest"]'

.github/workflows/amd-upstream-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
build_target: check-all
2828
projects: clang
29+
cache-key: amd-upstream
2930
extra_cmake_args: '-DLLVM_USE_LINKER=gold -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64;AMDGPU"'
3031
os_list: '["ubuntu-latest", "windows-2019"]'
3132

.github/workflows/llvm-project-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ permissions:
66
on:
77
workflow_dispatch:
88
inputs:
9+
cache-key:
10+
required: false
11+
default: 'sccache'
912
build_target:
1013
required: false
1114
projects:
@@ -17,6 +20,11 @@ on:
1720
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
1821
workflow_call:
1922
inputs:
23+
cache-key:
24+
required: false
25+
type: string
26+
default: 'sccache'
27+
2028
build_target:
2129
required: true
2230
type: string
@@ -86,8 +94,8 @@ jobs:
8694
# run creates a new cache entry so we want to ensure that we have
8795
# enough cache space for all the tests to run at once and still
8896
# fit under the 10 GB limit.
89-
max-size: 500M
90-
key: sccache-${{ matrix.os }}
97+
max-size: 1.5G
98+
key: ${{ inputs.cache-key }}-${{ matrix.os }}
9199
variant: sccache
92100
- name: Build and Test
93101
uses: llvm/actions/build-test-llvm-project@main

clang/test/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,12 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests)
196196
add_subdirectory(debuginfo-tests)
197197
endif()
198198
endif()
199+
200+
201+
add_custom_target(check-clang-aie)
202+
add_dependencies(check-clang-aie
203+
check-clang-codegen-aie
204+
check-clang-misc
205+
check-clang-preprocessor
206+
check-clang-driver-aie
207+
)
File renamed without changes.

lld/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,8 @@ add_subdirectory(MinGW)
204204
add_subdirectory(wasm)
205205

206206
add_subdirectory(cmake/modules)
207+
208+
add_custom_target(check-lld-aie)
209+
add_dependencies(check-lld-aie
210+
check-lld-elf-aie
211+
)

llvm/test/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,16 @@ add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
254254
add_custom_target(check)
255255
add_dependencies(check check-all)
256256
set_target_properties(check PROPERTIES FOLDER "Tests")
257+
258+
259+
add_custom_target(check-llvm-aie)
260+
add_dependencies(check-llvm-aie
261+
check-llvm-codegen-aie
262+
check-llvm-codegen-mir-aie
263+
check-llvm-mc-aie
264+
check-llvm-object-aie
265+
check-llvm-tablegen
266+
check-llvm-transforms-hardwareloops-aie
267+
check-llvm-transforms-simplifycfg-aie
268+
check-llvm-tools-updatetestchecks
269+
check-llvm-tools-llvm-dwarfdump-aie)

0 commit comments

Comments
 (0)