Skip to content

Commit 67267f6

Browse files
committed
Merge branch 'sycl' into simplify-device-global
2 parents cf9ed12 + 4cdce55 commit 67267f6

File tree

22,204 files changed

+1314484
-550095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

22,204 files changed

+1314484
-550095
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ echo "Directories modified:" >&2
5353
echo "$modified_dirs" >&2
5454

5555
function compute-projects-to-test() {
56+
isForWindows=$1
57+
shift
5658
projects=${@}
5759
for project in ${projects}; do
5860
echo "${project}"
@@ -63,20 +65,28 @@ function compute-projects-to-test() {
6365
done
6466
;;
6567
llvm)
66-
for p in bolt clang clang-tools-extra flang lld lldb mlir polly; do
68+
for p in bolt clang clang-tools-extra lld lldb mlir polly; do
6769
echo $p
6870
done
71+
# Flang is not stable in Windows CI at the moment
72+
if [[ $isForWindows == 0 ]]; then
73+
echo flang
74+
fi
6975
;;
7076
clang)
71-
for p in clang-tools-extra compiler-rt lldb cross-project-tests; do
77+
# lldb is temporarily removed to alleviate Linux pre-commit CI waiting times
78+
for p in clang-tools-extra compiler-rt cross-project-tests; do
7279
echo $p
7380
done
7481
;;
7582
clang-tools-extra)
7683
echo libc
7784
;;
7885
mlir)
79-
echo flang
86+
# Flang is not stable in Windows CI at the moment
87+
if [[ $isForWindows == 0 ]]; then
88+
echo flang
89+
fi
8090
;;
8191
*)
8292
# Nothing to do
@@ -144,7 +154,6 @@ function exclude-linux() {
144154
for project in ${projects}; do
145155
case ${project} in
146156
cross-project-tests) ;; # tests failing
147-
lldb) ;; # tests failing
148157
openmp) ;; # https://github.com/google/llvm-premerge-checks/issues/410
149158
*)
150159
echo "${project}"
@@ -161,7 +170,7 @@ function exclude-windows() {
161170
compiler-rt) ;; # tests taking too long
162171
openmp) ;; # TODO: having trouble with the Perl installation
163172
libc) ;; # no Windows support
164-
lldb) ;; # tests failing
173+
lldb) ;; # custom environment requirements (https://github.com/llvm/llvm-project/pull/94208#issuecomment-2146256857)
165174
bolt) ;; # tests are not supported yet
166175
*)
167176
echo "${project}"
@@ -204,7 +213,7 @@ function check-targets() {
204213
echo "check-unwind"
205214
;;
206215
lldb)
207-
echo "check-all" # TODO: check-lldb may not include all the LLDB tests?
216+
echo "check-lldb"
208217
;;
209218
pstl)
210219
echo "check-all"
@@ -241,15 +250,15 @@ fi
241250
all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
242251
modified_projects="$(keep-modified-projects ${all_projects})"
243252

244-
linux_projects_to_test=$(exclude-linux $(compute-projects-to-test ${modified_projects}))
253+
linux_projects_to_test=$(exclude-linux $(compute-projects-to-test 0 ${modified_projects}))
245254
linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq)
246255
linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq)
247256

248257
linux_runtimes_to_test=$(compute-runtimes-to-test ${linux_projects_to_test})
249258
linux_runtime_check_targets=$(check-targets ${linux_runtimes_to_test} | sort | uniq)
250259
linux_runtimes=$(echo ${linux_runtimes_to_test} | sort | uniq)
251260

252-
windows_projects_to_test=$(exclude-windows $(compute-projects-to-test ${modified_projects}))
261+
windows_projects_to_test=$(exclude-windows $(compute-projects-to-test 1 ${modified_projects}))
253262
windows_check_targets=$(check-targets ${windows_projects_to_test} | sort | uniq)
254263
windows_projects=$(add-dependencies ${windows_projects_to_test} | sort | uniq)
255264

.ci/monolithic-linux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ targets="${2}"
3939

4040
echo "--- cmake"
4141
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
42+
pip install -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
4243
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
4344
-D LLVM_ENABLE_PROJECTS="${projects}" \
4445
-G Ninja \

.ci/monolithic-windows.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
4444
# see https://github.com/llvm/llvm-project/pull/82393 and
4545
# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
4646
# for further information.
47+
# We limit the number of parallel compile jobs to 24 control memory
48+
# consumption and improve build reliability.
4749
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
4850
-D LLVM_ENABLE_PROJECTS="${projects}" \
4951
-G Ninja \
@@ -58,7 +60,9 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
5860
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
5961
-D CMAKE_EXE_LINKER_FLAGS="/MANIFEST:NO" \
6062
-D CMAKE_MODULE_LINKER_FLAGS="/MANIFEST:NO" \
61-
-D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO"
63+
-D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO" \
64+
-D LLVM_PARALLEL_COMPILE_JOBS=16 \
65+
-D LLVM_PARALLEL_LINK_JOBS=4
6266

6367
echo "--- ninja"
6468
# Targets are not escaped as they are passed as separate arguments.

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ f6d557ee34b6bbdb1dc32f29e34b4a4a8ad35e81
8181

8282
# [NFC] clang-format utils/TableGen (#80973)
8383
b9079baaddfed5e604fbfaa1d81a7a1c38e78c26
84+
85+
# [libc++][NFC] Run clang-format on libcxx/include again (#95874)
86+
e2c2ffbe7a1b5d9e32a2ce64279475b50c4cba5b
87+
88+
# [lldb][nfc] Deindent ProcessGDBRemote::SetThreadStopInfo by two levels
89+
b32931c5b32eb0d2cf37d688b34f8548c9674c19
90+
91+
# [libc++][NFC] Fix inconsistent quoting and spacing in our CSV files
92+
64946fdaf9864d8279da1c30e4d7214fe13d1427

.github/CODEOWNERS

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,18 @@ sycl/doc/design/ @intel/llvm-reviewers-runtime
3434
sycl/doc/design/spirv-extensions/ @intel/dpcpp-spirv-doc-reviewers
3535
sycl/doc/extensions/ @intel/dpcpp-specification-reviewers
3636

37-
# Unified Runtime
38-
sycl/plugins @intel/unified-runtime-reviewers
37+
# Unified Runtime
38+
sycl/cmake/modules/FetchUnifiedRuntime.cmake @intel/unified-runtime-reviewers
39+
sycl/include/sycl/detail/ur.hpp @intel/unified-runtime-reviewers
40+
sycl/source/detail/posix_ur.cpp @intel/unified-runtime-reviewers
41+
sycl/source/detail/ur.cpp @intel/unified-runtime-reviewers
42+
sycl/source/detail/windows_ur.cpp @intel/unified-runtime-reviewers
3943
sycl/test-e2e/Plugin/ @intel/unified-runtime-reviewers
4044

4145
# Win Proxy Loader
4246
sycl/pi_win_proxy_loader @intel/llvm-reviewers-runtime
43-
sycl/plugins/common_win_pi_trace @intel/llvm-reviewers-runtime
4447
sycl/test-e2e/Plugin/dll-detach-order.cpp @intel/llvm-reviewers-runtime
4548

46-
# CUDA and HIP plugins
47-
sycl/plugins/**/cuda/ @intel/llvm-reviewers-cuda
48-
sycl/plugins/**/hip/ @intel/llvm-reviewers-cuda
49-
50-
# Transform Dialect in MLIR.
51-
/mlir/include/mlir/Dialect/Transform/* @ftynse @nicolasvasilache
52-
/mlir/lib/Dialect/Transform/* @ftynse @nicolasvasilache
53-
/mlir/**/*TransformOps* @ftynse @nicolasvasilache
54-
55-
5649
# CUDA specific runtime implementations
5750
sycl/include/sycl/ext/oneapi/experimental/cuda/ @intel/llvm-reviewers-cuda
5851

@@ -104,13 +97,16 @@ invoke_simd/ @intel/dpcpp-esimd-reviewers
10497
InvokeSimd/ @intel/dpcpp-esimd-reviewers
10598
sycl/test-e2e/InvokeSimd/ @intel/dpcpp-esimd-reviewers
10699

100+
# dev-igc driver update
101+
devops/dependencies-igc-dev.json @intel/sycl-matrix-reviewers @intel/dpcpp-esimd-reviewers @intel/dpcpp-devops-reviewers
102+
107103
# DevOps configs
108104
.github/ @intel/dpcpp-devops-reviewers
109105
buildbot/ @intel/dpcpp-devops-reviewers
110106
devops/ @intel/dpcpp-devops-reviewers
111107

112108
# Kernel fusion JIT compiler
113-
sycl-fusion/ @intel/dpcpp-kernel-fusion-reviewers
109+
sycl-jit/ @intel/dpcpp-kernel-fusion-reviewers
114110
sycl/doc/design/KernelFusionJIT.md @intel/dpcpp-kernel-fusion-reviewers
115111
sycl/doc/extensions/experimental/sycl_ext_codeplay_kernel_fusion.asciidoc @intel/dpcpp-kernel-fusion-reviewers
116112
sycl/include/sycl/ext/codeplay/experimental/fusion_properties.hpp @intel/dpcpp-kernel-fusion-reviewers
@@ -136,6 +132,7 @@ clang/test/Driver/sycl-native-cpu*.cpp @intel/dpcpp-nativecpu-pi-reviewers
136132
sycl/**/native_cpu/ @intel/dpcpp-nativecpu-pi-reviewers
137133
sycl/doc/design/SYCLNativeCPU.md @intel/dpcpp-nativecpu-pi-reviewers
138134
sycl/include/sycl/detail/native_cpu.hpp @intel/dpcpp-nativecpu-pi-reviewers
135+
libdevice/nativecpu* @intel/dpcpp-nativecpu-pi-reviewers
139136

140137
# SYCL-Graphs extensions
141138
sycl/include/sycl/ext/oneapi/experimental/graph.hpp @intel/sycl-graphs-reviewers
@@ -155,7 +152,7 @@ sycl/include/syclcompat.hpp @intel/syclcompat-lib-reviewers
155152
sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc @intel/bindless-images-reviewers
156153
sycl/include/sycl/ext/oneapi/bindless* @intel/bindless-images-reviewers
157154
sycl/source/detail/bindless* @intel/bindless-images-reviewers
158-
sycl/plugins/unified_runtime/ur/adapters/**/image.* @intel/bindless-images-reviewers
155+
sycl/test/check_device_code/extensions/bindless_images.cpp @intel/bindless-images-reviewers
159156
sycl/test-e2e/bindless_images/ @intel/bindless-images-reviewers
160157

161158
# Miscellaneous sycl e2e tests
@@ -165,6 +162,7 @@ sycl/test-e2e/DeviceCodeSplit/ @intel/dpcpp-tools-reviewers
165162
sycl/test-e2e/SeparateCompile/ @intel/dpcpp-tools-reviewers
166163
sycl/test-e2e/Printf/ @intel/dpcpp-tools-reviewers @intel/llvm-reviewers-runtime
167164
sycl/test-e2e/SpecConstants/ @intel/dpcpp-tools-reviewers
165+
sycl/test-e2e/NewOffloadDriver/ @intel/dpcpp-tools-reviewers
168166

169167
# Sanitizer
170168
clang/lib/Driver/SanitizerArgs.cpp @intel/dpcpp-sanitizers-review

.github/new-prs-labeler.yml

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ llvm-lit:
5454
- llvm/utils/lit/**/*
5555

5656
PGO:
57+
- llvm/**/ProfileData/**/*
58+
- llvm/**/SampleProfile*
59+
- llvm/**/CodeGen/MIRSampleProfile*
5760
- llvm/lib/Transforms/Instrumentation/CGProfile.cpp
5861
- llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
5962
- llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
@@ -62,9 +65,9 @@ PGO:
6265
- llvm/lib/Transforms/Instrumentation/ValueProfile*
6366
- llvm/test/Instrumentation/InstrProfiling/**/*
6467
- llvm/test/Transforms/PGOProfile/**/*
68+
- llvm/test/Transforms/SampleProfile/**/*
6569
- llvm/**/llvm-profdata/**/*
6670
- llvm/**/llvm-profgen/**/*
67-
- llvm/unittests/ProfileData/**/*
6871

6972
vectorization:
7073
- llvm/lib/Transforms/Vectorize/**/*
@@ -714,6 +717,16 @@ backend:AMDGPU:
714717
- '**/*amdgpu*/**'
715718
- '**/*AMDGPU*/**'
716719

720+
backend:NVPTX:
721+
- 'llvm/**/*nvvm*'
722+
- 'llvm/**/*NVVM*'
723+
- 'llvm/**/*nvptx*'
724+
- 'llvm/**/*NVPTX*'
725+
- 'llvm/**/*nvvm*/**'
726+
- 'llvm/**/*NVVM*/**'
727+
- 'llvm/**/*nvptx*/**'
728+
- 'llvm/**/*NVPTX*/**'
729+
717730
backend:RISC-V:
718731
- clang/**/*riscv*
719732
- clang/**/*RISCV*
@@ -746,6 +759,8 @@ backend:ARM:
746759
- clang/lib/CodeGen/Targets/ARM.cpp
747760
- clang/include/clang/Basic/BuiltinsARM*
748761
- llvm/test/MC/DisasemblerARM/**
762+
- clang/include/clang/Sema/SemaARM.h
763+
- clang/lib/Sema/SemaARM.cpp
749764

750765
backend:AArch64:
751766
- llvm/include/llvm/IR/IntrinsicsAArch64.td
@@ -757,6 +772,31 @@ backend:AArch64:
757772
- clang/lib/CodeGen/Targets/AArch64.cpp
758773
- clang/include/clang/Basic/BuiltinsAArch64*
759774
- llvm/test/MC/Disassembler/AArch64/**
775+
- clang/include/clang/Sema/SemaARM.h
776+
- clang/lib/Sema/SemaARM.cpp
777+
778+
backend:Hexagon:
779+
- clang/include/clang/Basic/BuiltinsHexagon*.def
780+
- clang/include/clang/Sema/SemaHexagon.h
781+
- clang/lib/Basic/Targets/Hexagon.*
782+
- clang/lib/CodeGen/Targets/Hexagon.cpp
783+
- clang/lib/Driver/ToolChains/Hexagon.*
784+
- clang/lib/Sema/SemaHexagon.cpp
785+
- lld/ELF/Arch/Hexagon.cpp
786+
- lldb/source/Plugins/ABI/Hexagon/**
787+
- lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/**
788+
- llvm/include/llvm/BinaryFormat/ELFRelocs/Hexagon.def
789+
- llvm/include/llvm/IR/IntrinsicsHexagon*
790+
- llvm/include/llvm/Support/Hexagon*
791+
- llvm/lib/Support/Hexagon*
792+
- llvm/lib/Target/Hexagon/**
793+
- llvm/test/CodeGen/Hexagon/**
794+
- llvm/test/CodeGen/*/Hexagon/**
795+
- llvm/test/DebugInfo/*/Hexagon/**
796+
- llvm/test/Transforms/*/Hexagon
797+
- llvm/test/MC/Disassembler/Hexagon/**
798+
- llvm/test/MC/Hexagon/**
799+
- llvm/test/tools/llvm-objdump/ELF/Hexagon/**
760800

761801
backend:loongarch:
762802
- llvm/include/llvm/IR/IntrinsicsLoongArch.td
@@ -767,6 +807,8 @@ backend:loongarch:
767807
- clang/lib/Driver/ToolChains/Arch/LoongArch.*
768808
- clang/lib/CodeGen/Targets/LoongArch.cpp
769809
- clang/include/clang/Basic/BuiltinsLoongArch*
810+
- clang/include/clang/Sema/SemaLoongArch.h
811+
- clang/lib/Sema/SemaLoongArch.cpp
770812

771813
backend:MSP430:
772814
- llvm/include/llvm/IR/IntrinsicsMSP430.td
@@ -814,6 +856,8 @@ backend:WebAssembly:
814856
- llvm/unittests/Target/WebAssembly/**
815857
- llvm/test/DebugInfo/WebAssembly/**
816858
- llvm/test/MC/WebAssembly/**
859+
- clang/include/clang/Sema/SemaWasm.h
860+
- clang/lib/Sema/SemaLoongWasm.cpp
817861

818862
backend:X86:
819863
- llvm/include/llvm/IR/IntrinsicsX86.td
@@ -833,6 +877,8 @@ backend:X86:
833877
- llvm/include/llvm/TargetParser/X86*
834878
- llvm/lib/TargetParser/X86*
835879
- llvm/utils/TableGen/X86*
880+
- clang/include/clang/Sema/SemaX86.h
881+
- clang/lib/Sema/SemaX86.cpp
836882

837883
backend:PowerPC:
838884
- llvm/include/llvm/BinaryFormat/ELFRelocs/PowerPC*
@@ -857,6 +903,8 @@ backend:PowerPC:
857903
- clang/lib/Driver/ToolChains/AIX*
858904
- clang/lib/Driver/ToolChains/Arch/PPC.*
859905
- clang/test/CodeGen/PowerPC/**
906+
- clang/include/clang/Sema/SemaPPC.h
907+
- clang/lib/Sema/SemaPPC.cpp
860908

861909
backend:SystemZ:
862910
- llvm/include/llvm/BinaryFormat/ELFRelocs/SystemZ*
@@ -877,6 +925,8 @@ backend:SystemZ:
877925
- clang/lib/Driver/ToolChains/ZOS*
878926
- clang/lib/Driver/ToolChains/Arch/SystemZ.*
879927
- clang/test/CodeGen/SystemZ/**
928+
- clang/include/clang/Sema/SemaSystemZ.h
929+
- clang/lib/Sema/SemaSystemZ.cpp
880930

881931
third-party:unittests:
882932
- third-party/unittests/**
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import json
2+
import multiprocessing
3+
import os
4+
import re
5+
import subprocess
6+
import sys
7+
8+
9+
def run_analyzer(data):
10+
os.chdir(data["directory"])
11+
command = (
12+
data["command"]
13+
+ f" --analyze --analyzer-output html -o analyzer-results -Xclang -analyzer-config -Xclang max-nodes=75000"
14+
)
15+
print(command)
16+
subprocess.run(command, shell=True, check=True)
17+
18+
19+
def pool_error(e):
20+
print("Error analyzing file:", e)
21+
22+
23+
def main():
24+
db_path = sys.argv[1]
25+
database = json.load(open(db_path))
26+
27+
with multiprocessing.Pool() as pool:
28+
pool.map_async(run_analyzer, [k for k in database], error_callback=pool_error)
29+
pool.close()
30+
pool.join()
31+
32+
33+
if __name__ == "__main__":
34+
main()

0 commit comments

Comments
 (0)