Merge tag 'debian/1%17.0.6-12' into proxmox/bookworm

llvm-toolchain-17 Debian release 1:17.0.6-12
This commit is contained in:
Fabian Grünbichler 2024-05-28 09:09:01 +02:00
commit ecc1a11898
133 changed files with 2875 additions and 5722 deletions

4
debian/README vendored
View File

@ -9,13 +9,13 @@ The current snapshot release is maintained in the "snapshot" branch.
The easiest way to get all branches is probably to have one
clone per version:
for f in 14 15 snapshot; do
for f in 14 15 16 17 snapshot; do
git clone git@salsa.debian.org:pkg-llvm-team/llvm-toolchain.git -b $f $f
done
debian/control is generated from debian/control.in by running:
ebian/rules preconfigure
debian/rules preconfigure
Steps for manually building a snapshot release

View File

@ -3,10 +3,9 @@ usr/bin/llvm-bolt-heatmap-@LLVM_VERSION@
usr/bin/llvm-boltdiff-@LLVM_VERSION@
usr/bin/merge-fdata-@LLVM_VERSION@
usr/bin/perf2bolt-@LLVM_VERSION@
usr/bin/llvm-bat-dump-@LLVM_VERSION@
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-bolt
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-bolt-heatmap
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-boltdiff
usr/lib/llvm-@LLVM_VERSION@/bin/merge-fdata
usr/lib/llvm-@LLVM_VERSION@/bin/perf2bolt
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-bat-dump

480
debian/changelog vendored
View File

@ -1,12 +1,486 @@
llvm-toolchain-16 (1:16.0.6-15~bpo12+pve1) bookworm; urgency=medium
llvm-toolchain-17 (1:17.0.6-12) unstable; urgency=medium
* Rebuild for Debian Bookworm / Proxmox
* Add oracular as supported release
-- Proxmox Support Team <support@proxmox.com> Thu, 14 Sep 2023 10:54:03 +0200
-- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 04 May 2024 07:30:47 +0200
llvm-toolchain-17 (1:17.0.6-11) unstable; urgency=medium
* Disable --as-needed on armel
* Pass LLVM_EXPERIMENTAL_TARGETS_TO_BUILD to stage 1 to (try to) build M68k
(Closes: #1067646)
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 28 Apr 2024 18:00:09 +0200
llvm-toolchain-17 (1:17.0.6-10) unstable; urgency=medium
[ Matthias Klose ]
* Fix libomp symbols file for t64.
[ Sylvestre Ledru ]
* Allow build on machines without too many CPU
Thanks to Santiago Vila for the patch
(Closes: #1067714)
* Disable Loongson SIMD Extension (LSX) and Loongson
Advanced SIMD Extension (LASX) on 17 (Closes: #1068169)
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 24 Apr 2024 12:22:47 +0200
llvm-toolchain-17 (1:17.0.6-9) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Bump version to -9, the -8 is already used in Ubuntu
[ Matthias Klose ]
* Make libclang-common-17-dev architecture dependent.
* Fix sanitizer build on 32bit time_t64 architectures.
* Enable compiler-rt runtime again for 32bit time_t64 architectures.
* Add a stage1 profile to disable curl, grpc and spirv.
* Build with --as-needed.
-- Matthias Klose <doko@debian.org> Fri, 08 Mar 2024 14:52:29 +0100
llvm-toolchain-17 (1:17.0.6-7) unstable; urgency=medium
* Fix mxgot export on mips64el
-- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 04 Mar 2024 16:09:18 +0100
llvm-toolchain-17 (1:17.0.6-6) unstable; urgency=medium
[ chenli ]
* Enable flang on loong64
[ Sylvestre Ledru ]
* try to enable sccache on 'my' s390x machines
[ Steve Langasek ]
* Rename libraries for 64-bit time_t transition.
[ Gianfranco Costamagna ]
* Fix 32bit builds
* Export mxgot on mips64el
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 24 Jan 2024 13:29:35 +0100
llvm-toolchain-17 (1:17.0.6-5) unstable; urgency=medium
[ Faidon Liambotis ]
* Revert "Enable COMPILER_RT_BUILD_BUILTINS for armel"
* Fix i386 FTBFS resulting from COMPILER_RT_DEFAULT_TARGET_ONLY
(Closes: #1060440)
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 11 Jan 2024 14:15:09 +0100
llvm-toolchain-17 (1:17.0.6-4) unstable; urgency=medium
* debian/qualify-clang.sh: remove the compiler-rt test of i386
use libclang-rt-17-dev:i386 instead
[ Matthias Klose ]
* libclang1-17: Remove the full version symlinks.
[ Faidon Liambotis ]
* Enable COMPILER_RT_DEFAULT_TARGET_ONLY for all archs
* Enable COMPILER_RT_BUILD_BUILTINS for armel
* Drop two unreferenced debian/patches
* Mark documentation packages as Multi-Arch: foreign
* Convert libclang-common-*-dev to Arch: all/M-A: foreign
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 09 Jan 2024 13:03:56 +0100
llvm-toolchain-17 (1:17.0.6-3) unstable; urgency=medium
* Cherry pick the wasm fix from 16
(Closes: #1057838)
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 15 Dec 2023 18:51:57 +0100
llvm-toolchain-17 (1:17.0.6-2) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Add new cmake-clang-test to spot issues such as
Debian bug #1057151
* Fix cmake file (Closes: #1057151)
* Drop sed command, useless now
[ Matthias Klose ]
* Also use the free swap to determine the number of parallel processes.
* libclang1-17: Hard-code the last full versions for the symlinks.
* Also use the free swap to determine the number of parallel processes.
* Set the cpu defaults for the ARM32 architectures:
- armel: arm926ej-s. Closes: #1056115.
- armhf: cortex-a8.
Thanks to Arnd Bergmann and Ard Biesheuvel for the fixes.
* Apply the proposed fix for D158491, build failure on mips64el, still
unreviewed upstream. Addresses: #1056116.
[ Sylvestre Ledru ]
* Move the symlink /usr/lib/*/libc++experimental.a from libc++abi-17-dev
to libc++-17-dev
* Remove some old break/replaces from 16
* Fix the EmitBackendOutput test in debian/qualify-clang.sh
* Also add back /usr/lib/llvm-17/lib/libclang-17.so.1
-- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 08 Dec 2023 09:49:04 +0100
llvm-toolchain-17 (1:17.0.6-1) unstable; urgency=medium
[ Matthias Klose ]
* Further limit the number of parallel processes
* Don't build-depend on llvm-spirv-17 on armel and mipsel (LLVM 17 is not
yet built on these architectures).
* Fix stripping build flags on Ubuntu/ppc64el.
* libclang1-17: Only encode the major version in the soname. Closes: #1056126.
* libclang1-17: Provide a symlink for the last soname with the full version.
* Restore the patch for D148945, searching /usr/lib/llvm-17/lib by default.
Closes: #1056580.
[ Sylvestre Ledru ]
* New upstream release
* Add a symlink for libc++experimental.a to /usr/lib/*/libc++experimental.a
to fix https://github.com/llvm/llvm-project/issues/72753
* try to relax the wasi-libc dep declaration for apt.llvm.org
* add a check that, if we are going to build wasm, wasi-libc is installed
on the system
[ John Paul Adrian Glaubitz ]
* Don't install *clang_rt* on sparc and sparc64
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 28 Nov 2023 11:43:43 +0100
llvm-toolchain-17 (1:17.0.5-1) unstable; urgency=medium
[ John Paul Adrian Glaubitz ]
* Don't run chrpath for libclang on sparc and sparc64
[ Matthias Klose ]
* Build-depend on llvm-spirv-17.
[ Sylvestre Ledru ]
* New upstream release
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 14 Nov 2023 11:27:22 +0100
llvm-toolchain-17 (1:17.0.4-1) unstable; urgency=medium
[ Matthias Klose ]
* Limit the number of parallel processes based on the available memory
and the packages to be built (flang has some memory hogs).
[ Sylvestre Ledru ]
* New supstream release
* Upload to unstable
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 31 Oct 2023 11:39:22 +0100
llvm-toolchain-17 (1:17.0.3-1~exp1) experimental; urgency=medium
[ Matthias Klose ]
* Consolidate the build flags for the wasm builds.
* Disable the clc and wasm builds when not building binary indep packages.
* Limit the parallel links to 2 on riscv64.
* d/rules: Be less noisy when building without grpc.
* Build-depend on libncurses-dev instead of libncurses5-dev.
* Use a stamps subdirectory for all build stamps.
* Factor-out the calls to dh_listpackages.
* d/rules/preconfigure: Print info about build environment.
[ Sylvestre Ledru ]
* New upstream release
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 17 Oct 2023 08:44:01 +0200
llvm-toolchain-17 (1:17.0.2-1~exp1) experimental; urgency=medium
* New upstream release
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 03 Oct 2023 09:18:45 +0200
llvm-toolchain-17 (1:17.0.1-1~exp2) experimental; urgency=medium
* Also remove omp from cmake file (Closes: #1052533)
-- Gianfranco Costamagna <locutusofborg@debian.org> Thu, 28 Sep 2023 11:24:39 +0200
llvm-toolchain-17 (1:17.0.1-1~exp1) experimental; urgency=medium
* New upstream release
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 19 Sep 2023 10:43:02 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp6) experimental; urgency=medium
* Enable again python3-lldb on bionic (apt.llvm.org)
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 18 Sep 2023 11:22:37 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp5) experimental; urgency=medium
* debian/patches/D158066.patch:
- cherry-pick change from 1:16.0.6-11
* Make sure at least spirv 17 is used, FTBFS with older version
-- Gianfranco Costamagna <locutusofborg@debian.org> Tue, 12 Sep 2023 08:51:38 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp4) experimental; urgency=medium
[ Gianfranco Costamagna ]
* Don't depend on spirv, the version 16 is too old to work
[ Sylvestre Ledru ]
* Also ignore "-mbranch-protection=standard" (used on arm64)
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 08 Sep 2023 13:49:38 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp3) experimental; urgency=medium
* Update control file
* Fixup build failures from 16 branch
-- Gianfranco Costamagna <locutusofborg@debian.org> Thu, 07 Sep 2023 23:04:28 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp2) experimental; urgency=medium
* Strip -fcf-protection for wasm build - new flag added in dpkg 1.22
* Explicitly depend on libcurl4-openssl-dev
Thanks to Samuel Henrique for the fix
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 06 Sep 2023 22:44:15 +0200
llvm-toolchain-17 (1:17.0.0~+rc4-1~exp1) experimental; urgency=medium
[ John Paul Adrian Glaubitz ]
* Disable wasm support on powerpc and powerpcspe
* Remove powerpc from BINUTILS_GOLD_ARCHS again
[ Sylvestre Ledru ]
* new upstream release
* Disable python3-lldb on mips64el to unbreak the build
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 05 Sep 2023 14:30:50 +0200
llvm-toolchain-17 (1:17.0.0~+rc3-1~exp1) experimental; urgency=medium
* New snapshot release
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 22 Aug 2023 19:22:57 +0200
llvm-toolchain-17 (1:17.0.0~+rc2-1~exp2) UNRELEASED; urgency=medium
* debian/tests/control: update gcc to 10 => 13
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 19 Aug 2023 10:07:19 +0200
llvm-toolchain-17 (1:17.0.0~+rc2-1~exp1) experimental; urgency=medium
* New snapshot release:
* Fix the libclang-rt-17-dev: ships
/usr/lib[...]/wasi/libclang_rt.builtins-wasm*.a, already in
libclang-rt-17-dev-wasm* (closes: #1041388)
* Also install llvm-debuginfod in llvm-X.Y
* Fix for real the libclang-rt-17-dev issue
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 15 Aug 2023 19:25:12 +0000
llvm-toolchain-snapshot (1:17~++20230723074821+3ebe606592fb-1~exp1) UNRELEASED; urgency=medium
* experimental New snapshot release
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 23 Jul 2023 19:48:42 +0200
llvm-toolchain-snapshot (1:17~++20230709044550+c54ff51be9c1-1~exp1) experimental; urgency=medium
* Install usr/lib/llvm-17/lib/clang/17/include/llvm_libc_wrappers/*.h
in libclang-common-X.Y-dev
* fix the libclang & libomp5 symbol files
* Add new symbol to libclang1:
clang_CXXMethod_isExplicit
clang_createIndexWithOptions
clang_getBinaryOperatorKindSpelling
clang_getCursorBinaryOperatorKind
clang_getCursorUnaryOperatorKind
clang_getUnaryOperatorKindSpelling
[ Samuel Thibault ]
* Fix hurd build by fixing Linux-specific lines.
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 09 Jul 2023 15:15:34 +0200
llvm-toolchain-snapshot (1:17~++20230701095046+dc6c8b8d1e35-1~exp1) experimental; urgency=medium
* llvm-debuginfod not installed anymore
https://github.com/llvm/llvm-project/commit/8ac330bde40e9e0a0b2d0708ba6c7888fb1ce225
* New snapshot release
* Yet a new element (omp) to disable in cmake detection. Upstream #62622
* remove some mlir example (libMyExtensionCh*.a)
* Try to pass MAKE_C_COMPILER_LAUNCHER and CMAKE_CXX_COMPILER_LAUNCHER
in CLANG_BOOTSTRAP_PASSTHROUGH for sccache in stage2
* Disable python3-lldb-17 for buster (it has been this way for a while)
* Try to workaround issue 63613
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 04 Jul 2023 13:16:48 +0200
llvm-toolchain-snapshot (1:17~++20230128060150+75153adeda1a-1~exp1) experimental; urgency=medium
* Snapshot is now 17
* ship libHLFIRTransforms & libHLFIRDialect in libflang
* Also install liborc_rt-x86_64.a in libclang-rt
* Adjust some path since upstream changed the path from
/usr/lib/llvm-16/lib/clang/16.0.0/ to
/usr/lib/llvm-16/lib/clang/16/
* Workaround some missing files on buster
* Replace LLVM_CONFIG by LLVM_CMAKE_DIR
* Bring back -DBUILTINS_CMAKE_ARGS & -DRUNTIMES_CMAKE_ARGS options
https://github.com/llvm/llvm-project/issues/59097
* unbreak a symlink to fix to libclang
* Add a symlink /usr/lib/x86_64-linux-gnu/{libclang-16.so.16.0.0 => libclang-16.so.1}
Expected by program like the firefox build system
* ship amdgpu-arch & nvptx-arch in clang-tools
* ship llvm-omp-kernel-replay in libomp-X.Y-dev
* Disable flang on s390x. Seems that it is breaking
* compiler-rt: Only build liborc on amd64, i386 & arm64
* Don't build omptarget on i386
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 28 Jan 2023 18:07:40 +0100
llvm-toolchain-16 (1:16.0.6-26) unstable; urgency=medium
* Disable --as-needed on armel
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 27 Apr 2024 01:12:00 +0200
llvm-toolchain-16 (1:16.0.6-25) unstable; urgency=medium
* Fix libomp symbols file for t64.
-- Matthias Klose <doko@debian.org> Sun, 14 Apr 2024 11:55:50 +0200
llvm-toolchain-16 (1:16.0.6-24) unstable; urgency=medium
[ Matthias Klose ]
* Add a stage1 profile to disable curl, grpc and spirv.
* Build with --as-needed.
* ASan: move allocator base to avoid conflict with high-entropy ASLR
for x86-64 Linux. Patch taken from LLVM 17.
-- Matthias Klose <doko@debian.org> Sat, 16 Mar 2024 22:12:22 +0100
llvm-toolchain-16 (1:16.0.6-23) unstable; urgency=medium
[ Matthias Klose ]
* Fix sanitizer build on 32bit time_t64 architectures.
-- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 11 Mar 2024 22:48:48 +0100
llvm-toolchain-16 (1:16.0.6-22) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Disable tests on mips64el
[ Matthias Klose ]
* Fix sanitizer build on 32bit time_t64 architectures.
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 06 Mar 2024 08:38:53 +0100
llvm-toolchain-16 (1:16.0.6-21) unstable; urgency=medium
[ Steve Langasek ]
* Rename libraries for 64-bit time_t transition.
[ Gianfranco Costamagna ]
* Fix 32bit builds
-- Gianfranco Costamagna <locutusofborg@debian.org> Sun, 03 Mar 2024 12:02:57 +0100
llvm-toolchain-16 (1:16.0.6-20) unstable; urgency=medium
[ John Paul Adrian Glaubitz ]
* Don't install *clang_rt* on sparc and sparc64
[ Matthias Klose ]
* Remove unused import of imp module in scan-view, removed in Python 3.12.
-- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sat, 24 Feb 2024 08:54:59 +0100
llvm-toolchain-16 (1:16.0.6-19) unstable; urgency=medium
* Revert my ugly fix for 1052002.
[ Faidon Liambotis ]
* Improve the fix for the bug 1052002.
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 23 Nov 2023 16:27:52 +0100
llvm-toolchain-16 (1:16.0.6-18) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Upload to sid
[ Sylvestre Ledru ]
* Change the logic to disable SPIRV. Disable it on most of the versions because
it needs llvm-spirv-16.
Enabled on trixie/sid, Ubuntu Mantic
FAILED: spirv-mesa3d-.spv /build/source/libclc/build/spirv-mesa3d-.spv
cd /build/source/libclc/build && /usr/bin/llvm-spirv-15
--spirv-max-version=1.1 -o spirv-mesa3d-.spv builtins.link.spirv-mesa3d-.bc
Unknown attribute kind (86) (Producer: 'LLVM16.0.6' Reader: 'LLVM 15.0.6')
* For Ubuntu bionic, improve the deactivation of lldb python
[ Steve Langasek ]
* Add noble as supported Ubuntu release
[ John Paul Adrian Glaubitz ]
* Don't run chrpath for libclang on sparc and sparc64
[ Sylvestre Ledru ]
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 11 Nov 2023 09:57:35 +0100
llvm-toolchain-16 (1:16.0.6-17exp1) experimental; urgency=medium
* Fixup the move from all to any
* Update debian/README documentation
-- Gianfranco Costamagna <locutusofborg@debian.org> Tue, 24 Oct 2023 12:38:21 +0200
llvm-toolchain-16 (1:16.0.6-17) unstable; urgency=medium
* Try to fix the wasm path detection (Closes: #1052002)
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 19 Oct 2023 22:37:29 +0200
llvm-toolchain-16 (1:16.0.6-16) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Make libclang-common-16-dev arch:any (Closes: #1041455)
It was arch:all because all the code isn't arch dependant
However, it causes issues for cross build.
So, back to any and libclang-common-@LLVM_VERSION@-dev (= ${binary:Version})
instead of source
[ Sylvestre Ledru ]
* Bring back old version of spirv - necessary for apt.llvm.org
[ Alexandre Detiste ]
* Remove python-six as dep
[ Li Chen ]
* Add support for loongarch64 (Closes: #1053658)
* Cherry-pick upstream patch D142688 to fix the build failure on loong64
(Closes: #1053655)
[ Matthias Klose ]
* Disable the clc and wasm builds when not building binary indep packages.
* Limit the parallel links to 2 on riscv64.
* d/rules: Be less noisy when building without grpc.
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 08 Oct 2023 09:11:38 +0200
llvm-toolchain-16 (1:16.0.6-15) unstable; urgency=medium
* Second attempt to refresh D158066.patch (Closes: #1049362)
(SIMD compatibility headers on ppc64el)
-- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 11 Sep 2023 15:40:42 +0200

View File

@ -61,7 +61,8 @@ usr/lib/llvm-@LLVM_VERSION@/libexec/analyze-cc
usr/lib/llvm-@LLVM_VERSION@/libexec/intercept-c++
usr/lib/llvm-@LLVM_VERSION@/libexec/intercept-cc
[!armel !armhf !ppc64el !hurd-any !s390x !powerpc !ppc64 !mipsel !mips64el !sparc64] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@/bin/hwasan_symbolize
# See compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake / HWASAN_SUPPORTED_ARCH
[amd64 arm64 riscv64] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@/bin/hwasan_symbolize
clang/tools/scan-build-@LLVM_VERSION@ usr/share/clang/
clang/tools/scan-view-@LLVM_VERSION@ usr/share/clang/

330
debian/control vendored
View File

@ -1,4 +1,4 @@
Source: llvm-toolchain-16
Source: llvm-toolchain-17
Section: devel
Priority: optional
Rules-Requires-Root: no
@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 10.0), cmake, ninja-build,
libelf-dev,
libffi-dev,
lsb-release, patchutils, diffstat, xz-utils, python3-dev,
libedit-dev, libncurses5-dev, swig, python3-six, python3-sphinx (>= 1.3.6),
libedit-dev, libncurses-dev, swig, python3-sphinx (>= 1.3.6),
binutils-dev,
libxml2-dev,
libjsoncpp-dev, pkg-config,
@ -23,33 +23,36 @@ Build-Depends: debhelper (>= 10.0), cmake, ninja-build,
libctypes-ocaml-dev [amd64 arm64 armhf ppc64el riscv64 s390x],
dh-exec, dh-ocaml [amd64 arm64 armhf ppc64el riscv64 s390x],
libpfm4-dev [linux-any], python3-setuptools, libz3-dev,
llvm-spirv-16 [ amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x ] <!stage1> | hello [!i386],
spirv-tools [ linux-any ] | hello [ !i386],
wasi-libc | hello [ !any-i386],
libcurl4-openssl-dev | libcurl-dev,
libgrpc++-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
protobuf-compiler-grpc [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
libprotobuf-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
protobuf-compiler [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x]
# llvm-spirv-17 [amd64 arm64 armel armhf i386 mips64el ppc64 ppc64el riscv64 s390x] <!stage1> | hello [!i386],
llvm-spirv-17 [amd64 arm64 armhf i386 ppc64 ppc64el riscv64 s390x] <!stage1> | hello,
spirv-tools [linux-any] <!stage1> | hello [!i386],
wasi-libc | hello,
libcurl4-openssl-dev <!stage1> | libcurl-dev <!stage1>,
libgrpc++-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
protobuf-compiler-grpc [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
libprotobuf-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
protobuf-compiler [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
# "| hello" is for older buster/bionic distros without spirv support
Build-Conflicts: oprofile
Standards-Version: 4.6.2
Homepage: https://www.llvm.org/
Vcs-Git: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain.git -b 16
Vcs-Browser: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/tree/16
Vcs-Git: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain.git -b 17
Vcs-Browser: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/tree/17
# ------------- clang -------------
Package: clang-16
Package: clang-17
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
${dep:devlibs-objc}, libclang-common-16-dev (= ${source:Version}),
llvm-16-linker-tools (= ${binary:Version}),
libclang1-16 (= ${binary:Version}), libc6-dev, binutils
${dep:devlibs-objc},
libllvm17t64 (= ${binary:Version}),
libclang-common-17-dev (= ${binary:Version}),
llvm-17-linker-tools (= ${binary:Version}),
libclang1-17t64 (= ${binary:Version}), libc6-dev, binutils
Provides: c-compiler, objc-compiler, c++-compiler
Recommends: llvm-16-dev, python3
# libomp-16-dev
Suggests: clang-16-doc, wasi-libc
Recommends: llvm-17-dev, python3
# libomp-17-dev
Suggests: clang-17-doc, wasi-libc
Description: C, C++ and Objective-C compiler
Clang project is a C, C++, Objective C and Objective C++ front-end
based on the LLVM compiler. Its goal is to offer a replacement to the
@ -58,9 +61,9 @@ Description: C, C++ and Objective-C compiler
Clang implements all of the ISO C++ 1998, 11, 14 and 17 standards and also
provides most of the support of C++20.
Package: clang-tools-16
Package: clang-tools-17
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, clang-16 (= ${binary:Version}),
Depends: ${shlibs:Depends}, ${misc:Depends}, clang-17 (= ${binary:Version}),
python3
Description: clang-based tools for C/C++ developments
Clang project is a C, C++, Objective C and Objective C++ front-end
@ -72,10 +75,10 @@ Description: clang-based tools for C/C++ developments
.
This package contains some clang-based tools like scan-build, clang-cl, etc.
Package: clang-format-16
Package: clang-format-17
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3,
libllvm16 (= ${binary:Version})
libllvm17t64 (= ${binary:Version})
Description: Tool to format C/C++/Obj-C code
Clang-format is both a library and a stand-alone tool with the goal of
automatically reformatting C++ sources files according to configurable
@ -88,21 +91,23 @@ Description: Tool to format C/C++/Obj-C code
.
This package also provides vim and emacs plugins.
Package: clang-tidy-16
Package: clang-tidy-17
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3,
libllvm16 (= ${binary:Version}), libclang-common-16-dev,
clang-tools-16, python3-yaml
libllvm17t64 (= ${binary:Version}),
libclang-common-17-dev (= ${binary:Version}),
clang-tools-17, python3-yaml
Description: clang-based C++ linter tool
Provide an extensible framework for diagnosing and fixing typical programming
errors, like style violations, interface misuse, or bugs that can be deduced
via static analysis. clang-tidy is modular and provides a convenient interface
for writing new checks.
Package: clangd-16
Package: clangd-17
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libclang-common-16-dev (= ${source:Version})
libllvm17t64 (= ${binary:Version}),
libclang-common-17-dev (= ${binary:Version}),
Description: Language server that provides IDE-like features to editors
clangd understands your C++ code and adds smart features to your editor:
- code completion
@ -113,8 +118,9 @@ Description: Language server that provides IDE-like features to editors
clangd is a language server that implements the Language Server Protocol;
it can work with many editors through a plugin.
Package: clang-16-doc
Package: clang-17-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${shlibs:Depends}, ${misc:Depends}, libjs-mathjax
Description: C, C++ and Objective-C compiler - Documentation
@ -127,7 +133,10 @@ Description: C, C++ and Objective-C compiler - Documentation
.
This package contains the documentation.
Package: libclang1-16
Package: libclang1-17t64
Provides: ${t64:Provides}
Replaces: libclang1-17
Breaks: libclang1-17 (<< ${source:Version})
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
@ -148,12 +157,12 @@ Description: C interface to the Clang library
locations with elements within the AST, and other facilities that support
Clang-based development tools.
Package: libclang-16-dev
Package: libclang-17-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
${dep:devlibs-objc}, libclang1-16 (= ${binary:Version}),
libclang-common-16-dev (= ${source:Version})
${dep:devlibs-objc}, libclang1-17t64 (= ${binary:Version}),
libclang-common-17-dev (= ${binary:Version})
Description: Clang library - Development package
Clang project is a C, C++, Objective C and Objective C++ front-end
based on the LLVM compiler. Its goal is to offer a replacement to the
@ -163,14 +172,14 @@ Description: Clang library - Development package
provides most of the support of C++20.
.
This package contains the Clang headers to develop extensions over
libclang1-16.
libclang1-17.
Package: libclang-common-16-dev
Architecture: all
Package: libclang-common-17-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (>= ${source:Version}),
libllvm16 (<< ${source:Version}.1~)
Recommends: libclang-rt-16-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends},
Recommends: libclang-rt-17-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Clang library - Common development package
Clang project is a C, C++, Objective C and Objective C++ front-end
based on the LLVM compiler. Its goal is to offer a replacement to the
@ -183,12 +192,10 @@ Description: Clang library - Common development package
# ------------- compiler-rt -------------
Package: libclang-rt-16-dev
Package: libclang-rt-17-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Breaks: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Compiler-rt - development package
This package provides various libraries:
@ -201,36 +208,28 @@ Description: Compiler-rt - development package
DataFlowSanitizer, etc
* profile - Library which is used to collect coverage information.
Package: libclang-rt-16-dev-wasm32
Package: libclang-rt-17-dev-wasm32
Architecture: all
Multi-Arch: foreign
Section: libdevel
Breaks: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: libclang-common-16-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Compiler-rt - wasm32 builtins
Provides the compiler-rt builtins for WebAssembly 32 bits
Package: libclang-rt-16-dev-wasm64
Package: libclang-rt-17-dev-wasm64
Architecture: all
Multi-Arch: foreign
Section: libdevel
Breaks: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: libclang-common-16-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Compiler-rt - wasm64 builtins
Provides the compiler-rt builtins for WebAssembly 64 bits
# ------------- polly -------------
Package: libpolly-16-dev
Package: libpolly-17-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Breaks: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-16-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: High-level loop and data-locality optimizer
Uses an abstract mathematical representation based on integer polyhedra
@ -238,10 +237,13 @@ Description: High-level loop and data-locality optimizer
# ------------- clang libraries -------------
Package: libclang-cpp16
Package: libclang-cpp17t64
Provides: ${t64:Provides}
Replaces: libclang-cpp17
Breaks: libclang-cpp17 (<< ${source:Version})
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm17t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: C++ interface to the Clang library
Clang project is a C, C++, Objective C and Objective C++ front-end
@ -259,12 +261,12 @@ Description: C++ interface to the Clang library
locations with elements within the AST, and other facilities that support
Clang-based development tools.
Package: libclang-cpp16-dev
Package: libclang-cpp17-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
libclang-cpp16 (= ${binary:Version})
# Move of libclang-cpp.so into libclang-cpp16.dev
libclang-cpp17t64 (= ${binary:Version})
# Move of libclang-cpp.so into libclang-cpp17.dev
Description: C++ interface to the Clang library
Clang project is a C, C++, Objective C and Objective C++ front-end
based on the LLVM compiler. Its goal is to offer a replacement to the
@ -285,10 +287,10 @@ Description: C++ interface to the Clang library
linker at build time.
Package: libfuzzer-16-dev
Package: libfuzzer-17-dev
Architecture: linux-any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, clang-16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, clang-17 (= ${binary:Version})
Description: Library for coverage-guided fuzz testing
LibFuzzer is a library for in-process, coverage-guided, evolutionary fuzzing
of other libraries.
@ -306,10 +308,10 @@ Description: Library for coverage-guided fuzz testing
instrumentation.
Package: python3-clang-16
Package: python3-clang-17
Section: python
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3, libclang-16-dev
Depends: ${shlibs:Depends}, ${misc:Depends}, python3, libclang-17-dev
Replaces: python-clang-x.y,
Conflicts: python-clang-x.y
Provides: python-clang-x.y
@ -323,8 +325,9 @@ Description: Clang Python Bindings
.
This binding package provides access to the Clang compiler and libraries.
Package: clang-16-examples
Architecture: any
Package: clang-17-examples
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Clang examples
@ -339,7 +342,10 @@ Description: Clang examples
# ------------- LLVM -------------
Package: libllvm16
Package: libllvm17t64
Provides: ${t64:Provides}
Replaces: libllvm17
Breaks: libllvm17 (<< ${source:Version})
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
@ -352,7 +358,7 @@ Description: Modular compiler and toolchain technologies, runtime library
.
This package contains the LLVM runtime library.
Package: llvm-16-linker-tools
Package: llvm-17-linker-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Modular compiler and toolchain technologies - Plugins
@ -362,13 +368,13 @@ Description: Modular compiler and toolchain technologies - Plugins
.
This package contains the LLVMgold and LLVMPolly linker plugins.
Package: llvm-16
Package: llvm-17
Architecture: any
Suggests: llvm-16-doc
Depends: llvm-16-runtime (= ${binary:Version}),
llvm-16-linker-tools (= ${binary:Version}),
Suggests: llvm-17-doc
Depends: llvm-17-runtime (= ${binary:Version}),
llvm-17-linker-tools (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends}
Recommends: llvm-16-dev
Recommends: llvm-17-dev
Description: Modular compiler and toolchain technologies
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other
@ -392,7 +398,7 @@ Description: Modular compiler and toolchain technologies
a young scheme front-end, and Java support is in development. LLVM can
generate code for X96, SparcV10, PowerPC or many other architectures.
Package: llvm-16-runtime
Package: llvm-17-runtime
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: binfmt-support | systemd
@ -412,11 +418,11 @@ Description: Modular compiler and toolchain technologies, IR interpreter
This package provides the minimal required to execute programs in LLVM
format.
Package: llvm-16-dev
Package: llvm-17-dev
Architecture: any
Depends: ${shlibs:Depends}, libffi-dev, ${misc:Depends},
llvm-16 (= ${binary:Version}), libllvm16 (= ${binary:Version}), libncurses-dev,
llvm-16-tools (= ${binary:Version}), libclang-cpp16 (= ${binary:Version}),
llvm-17 (= ${binary:Version}), libllvm17t64 (= ${binary:Version}), libncurses-dev,
llvm-17-tools (= ${binary:Version}), libclang-cpp17t64 (= ${binary:Version}),
libz3-dev, libxml2-dev
Description: Modular compiler and toolchain technologies, libraries and headers
LLVM is a collection of libraries and tools that make it easy to build
@ -434,7 +440,7 @@ Description: Modular compiler and toolchain technologies, libraries and headers
This package provides the libraries and headers to develop applications
using llvm.
Package: llvm-16-tools
Package: llvm-17-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3,
python3-pygments, python3-yaml,
@ -454,11 +460,11 @@ Description: Modular compiler and toolchain technologies, tools
.
This package provides tools for testing.
Package: libllvm-16-ocaml-dev
Package: libllvm-17-ocaml-dev
Section: ocaml
Architecture: amd64 arm64 armhf ppc64el s390x riscv64
Suggests: llvm-16-doc
Depends: ${shlibs:Depends}, ${misc:Depends}, ${ocaml:Depends}, llvm-16-dev (= ${binary:Version})
Suggests: llvm-17-doc
Depends: ${shlibs:Depends}, ${misc:Depends}, ${ocaml:Depends}, llvm-17-dev (= ${binary:Version})
Replaces: libllvm-x.y-ocaml-dev
Conflicts: libllvm-x.y-ocaml-dev
Provides: ${ocaml:Provides}, libllvm-x.y-ocaml-dev
@ -477,9 +483,10 @@ Description: Modular compiler and toolchain technologies, OCaml bindings
.
This package provides the OCaml bindings to develop applications using llvm.
Package: llvm-16-doc
Package: llvm-17-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, libjs-jquery, libjs-underscore
Description: Modular compiler and toolchain technologies, documentation
LLVM is a collection of libraries and tools that make it easy to build
@ -496,10 +503,10 @@ Description: Modular compiler and toolchain technologies, documentation
.
This package contains all documentation (extensive).
Package: llvm-16-examples
Package: llvm-17-examples
Section: doc
Architecture: all
Depends: ${misc:Depends}, llvm-16-dev (>= ${source:Version}), llvm-16-dev (<< ${source:Version}+c~)
Depends: ${misc:Depends}, llvm-17-dev (>= ${source:Version}), llvm-17-dev (<< ${source:Version}+c~)
Description: Modular compiler and toolchain technologies, examples
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other
@ -519,20 +526,20 @@ Description: Modular compiler and toolchain technologies, examples
# ------------- lld -------------
Package: lld-16
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Package: lld-17
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm17t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: LLVM-based linker
LLD is a new, high-performance linker. It is built as a set of reusable
components which highly leverage existing libraries in the larger LLVM
Project.
Package: liblld-16
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Package: liblld-17
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm17t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Section: libs
Description: LLVM-based linker, library
@ -542,12 +549,12 @@ Description: LLVM-based linker, library
.
This package contains the LLD runtime library.
Package: liblld-16-dev
Package: liblld-17-dev
Section: libdevel
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, lld-16 (= ${binary:Version}),
liblld-16 (= ${binary:Version}), libzstd-dev, zlib1g-dev
Depends: ${shlibs:Depends}, ${misc:Depends}, lld-17 (= ${binary:Version}),
liblld-17 (= ${binary:Version}), libzstd-dev, zlib1g-dev
Pre-Depends: ${misc:Pre-Depends}
Description: LLVM-based linker, header files
LLD is a new, high-performance linker. It is built as a set of reusable
@ -559,21 +566,24 @@ Description: LLVM-based linker, header files
# ------------- lldb -------------
Package: lldb-16
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Package: lldb-17
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (= ${binary:Version}),
python3-lldb-16
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm17t64 (= ${binary:Version}),
python3-lldb-17
Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger
LLDB is a next generation, high-performance debugger. It is built as a set of
reusable components which highly leverage existing libraries in the larger LLVM
Project, such as the Clang expression parser and LLVM disassembler.
Package: liblldb-16
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Package: liblldb-17t64
Provides: ${t64:Provides}
Replaces: liblldb-17
Breaks: liblldb-17 (<< ${source:Version})
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm17t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Section: libs
Description: Next generation, high-performance debugger, library
@ -583,11 +593,11 @@ Description: Next generation, high-performance debugger, library
.
This package contains the LLDB runtime library.
Package: python3-lldb-16
Package: python3-lldb-17
Section: python
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, liblldb-16 (= ${binary:Version}), python3-six
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, liblldb-17t64 (= ${binary:Version})
Conflicts: python3-lldb-x.y
Replaces: python3-lldb-x.y
Provides: python3-lldb-x.y
@ -599,11 +609,11 @@ Description: Next generation, high-performance debugger, python3 lib
.
This binding package provides access to lldb.
Package: liblldb-16-dev
Package: liblldb-17-dev
Section: libdevel
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-16 (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-17 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger, header files
LLDB is a next generation, high-performance debugger. It is built as a set of
@ -617,11 +627,11 @@ Description: Next generation, high-performance debugger, header files
# 44 because it was the first version in which openmp & libc++ have been
# managed in llvm-defaults
Package: libomp-16-dev
Package: libomp-17-dev
Section: libdevel
Architecture: amd64 arm64 armhf i386 mips64el ppc64el ppc64 riscv64
Depends: libomp5-16 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Suggests: libomp-16-doc
Architecture: amd64 arm64 armhf i386 loong64 mips64el ppc64el ppc64 riscv64
Depends: libomp5-17t64 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Suggests: libomp-17-doc
Breaks: libiomp-dev (<< 3.7-1), libomp-dev (<< 44)
Provides: libomp-x.y-dev
Conflicts: libomp-x.y-dev
@ -631,22 +641,23 @@ Description: LLVM OpenMP runtime - dev package
linked against, and that manages the multiple threads in an OpenMP program
while it is executing.
Package: libomp5-16
Package: libomp5-17t64
Multi-Arch: same
Architecture: amd64 arm64 armhf i386 mips64el ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 mips64el ppc64el ppc64 riscv64
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: libomp5 (<< 44)
Provides: libomp-x.y
Breaks: libomp5-17 (<< ${source:Version}), libomp5 (<< 44)
Provides: ${t64:Provides}, libomp-x.y
Conflicts: libomp-x.y
Replaces: libomp-x.y
Replaces: libomp5-17, libomp-x.y
Description: LLVM OpenMP runtime
The runtime is the part of the OpenMP implementation that your code is
linked against, and that manages the multiple threads in an OpenMP program
while it is executing.
Package: libomp-16-doc
Package: libomp-17-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, libjs-jquery
Replaces: libiomp-x.y-doc
Breaks: libiomp-x.y-doc
@ -659,17 +670,17 @@ Description: LLVM OpenMP runtime - Documentation
# ------------- libcxx -------------
Package: libc++1-16
Package: libc++1-17t64
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Suggests: clang
Breaks: libc++1 (<< 44)
Provides: libc++-x.y
Breaks: libc++1-17 (<< ${source:Version}), libc++1 (<< 44)
Provides: ${t64:Provides}, libc++-x.y
Conflicts: libc++-x.y
Replaces: libc++-x.y
Replaces: libc++1-17, libc++-x.y
Description: LLVM C++ Standard library
libc++ is another implementation of the C++ standard library.
.
@ -683,16 +694,17 @@ Description: LLVM C++ Standard library
as exception objects, rtti and memory allocation.
* Extensive unit tests.
Package: libc++-16-dev
Package: libc++-17-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libc++1-16 (= ${binary:Version}), ${misc:Depends},
libunwind-16-dev [amd64 arm64 armhf i386 ppc64el ppc64 riscv64]
Breaks: libc++-dev (<< 44)
Depends: libc++1-17t64 (= ${binary:Version}), ${misc:Depends},
libc++abi-17-dev (= ${binary:Version}),
libunwind-17-dev [amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64]
Breaks: libc++-dev (<< 44), libc++abi-17-dev (<< 1:17.0.6~++20231206041259)
Provides: libc++-x.y-dev
Conflicts: libc++-x.y-dev
Replaces: libc++-x.y-dev
Replaces: libc++-x.y-dev, libc++abi-17-dev (<< 1:17.0.6~++20231206041259)
Description: LLVM C++ Standard library (development files)
libc++ is another implementation of the C++ standard library
.
@ -706,11 +718,11 @@ Description: LLVM C++ Standard library (development files)
as exception objects, rtti and memory allocation.
* Extensive unit tests.
Package: libc++-16-dev-wasm32
Package: libc++-17-dev-wasm32
Section: libdevel
Architecture: all
Multi-Arch: foreign
Depends: wasi-libc, libc++abi-16-dev-wasm32, ${misc:Depends}
Depends: wasi-libc, libc++abi-17-dev-wasm32, ${misc:Depends}
Provides: libc++-x.y-dev-wasm32
Conflicts: libc++-x.y-dev-wasm32
Replaces: libc++-x.y-dev-wasm32
@ -731,16 +743,16 @@ Description: LLVM C++ Standard library (WASI)
# ------------- libcxxabi -------------
Package: libc++abi1-16
Package: libc++abi1-17t64
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: libc++abi1 (<< 44)
Provides: libc++abi-x.y
Breaks: libc++abi1-17 (<< ${source:Version}), libc++abi1 (<< 44)
Provides: ${t64:Provides}, libc++abi-x.y
Conflicts: libc++abi-x.y
Replaces: libc++abi-x.y
Replaces: libc++abi1-17, libc++abi-x.y
Description: LLVM low level support for a standard C++ library
libc++abi is another implementation of low level support for a standard C++
library.
@ -750,11 +762,11 @@ Description: LLVM low level support for a standard C++ library
* Correctness as defined by the C++ standards.
* Provide a portable sublayer to ease the porting of libc++
Package: libc++abi-16-dev
Package: libc++abi-17-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libc++abi1-16 (= ${binary:Version}), ${misc:Depends}
Depends: libc++abi1-17t64 (= ${binary:Version}), ${misc:Depends}
Breaks: libc++abi-dev (<= 44)
Provides: libc++abi-x.y-dev
Conflicts: libc++abi-x.y-dev
@ -768,7 +780,7 @@ Description: LLVM low level support for a standard C++ library (development file
* Correctness as defined by the C++ standards.
* Provide a portable sublayer to ease the porting of libc++
Package: libc++abi-16-dev-wasm32
Package: libc++abi-17-dev-wasm32
Section: libdevel
Architecture: all
Multi-Arch: foreign
@ -789,14 +801,14 @@ Description: LLVM low level support for a standard C++ library (WASI)
# ------------- libclc -------------
Package: libclc-16
Package: libclc-17
Section: libs
Architecture: all
Multi-Arch: foreign
Depends:
${misc:Depends},
libclc-16-dev (= ${binary:Version}),
libclang-common-16-dev,
libclc-17-dev (= ${binary:Version}),
libclang-common-17-dev,
Breaks: libclc-amdgcn, libclc-ptx, libclc-r600
Provides: libclc-x.y
Conflicts: libclc-x.y
@ -808,7 +820,7 @@ Description: OpenCL C language implementation - platform support
This package contains support for the amdgcn (AMD GPU), PTX and r600
platforms.
Package: libclc-16-dev
Package: libclc-17-dev
Section: libdevel
Architecture: all
Multi-Arch: foreign
@ -826,15 +838,16 @@ Description: OpenCL C language implementation - development files
# ------------- libunwind -------------
Package: libunwind-16
Package: libunwind-17t64
Breaks: libunwind-17 (<< ${source:Version})
Section: libs
Architecture: amd64 arm64 armhf i386 ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: libunwind-x.y
Provides: ${t64:Provides}, libunwind-x.y
Conflicts: libunwind-x.y
Replaces: libunwind-x.y
Replaces: libunwind-17, libunwind-x.y
Description: production-quality unwinder
libunwind is a production-quality unwinder, with platform support for DWARF
unwind info, SjLj, and ARM EHABI.
@ -843,13 +856,13 @@ Description: production-quality unwinder
or to operate on another process (aka remote), but only the local path has
been implemented. Remote unwinding remains as future work.
Package: libunwind-16-dev
Package: libunwind-17-dev
Section: libdevel
Architecture: amd64 arm64 armhf i386 ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64
Multi-Arch: same
Depends:
${misc:Depends},
libunwind-16 (= ${binary:Version})
libunwind-17t64 (= ${binary:Version})
Provides: libunwind-dev, libunwind-x.y-dev
Conflicts: libunwind-dev, libunwind-x.y-dev
Replaces: libunwind-dev, libunwind-x.y-dev
@ -863,7 +876,7 @@ Description: production-quality unwinder
# ------------- mlir -------------
Package: mlir-16-tools
Package: mlir-17-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Multi-Level Intermediate Representation tools
@ -874,15 +887,16 @@ Description: Multi-Level Intermediate Representation tools
.
This package provides tools.
Package: libmlir-16
Package: libmlir-17t64
Breaks: libmlir-17 (<< ${source:Version})
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: libmlir-x.y
Provides: ${t64:Provides}, libmlir-x.y
Conflicts: libmlir-x.y
Replaces: libmlir-x.y
Replaces: libmlir-17, libmlir-x.y
Description: Multi-Level Intermediate Representation library
Novel approach to building reusable and extensible compiler infrastructure.
MLIR aims to address software fragmentation, improve compilation for
@ -890,13 +904,13 @@ Description: Multi-Level Intermediate Representation library
specific compilers, and aid in connecting existing compilers together.
Package: libmlir-16-dev
Package: libmlir-17-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
libmlir-16 (= ${binary:Version})
libmlir-17t64 (= ${binary:Version})
Breaks: libmlir-dev
Provides: libmlir-x.y-dev
Conflicts: libmlir-x.y-dev
@ -910,16 +924,16 @@ Description: Multi-Level Intermediate Representation library
# ------------- bolt -------------
Package: bolt-16
Package: bolt-17
Architecture: amd64
# Disable on arm64 because libbolt_rt_hugify.a isn't generated
Depends: ${shlibs:Depends}, ${misc:Depends}, libbolt-16-dev (= ${binary:Version}),
Depends: ${shlibs:Depends}, ${misc:Depends}, libbolt-17-dev (= ${binary:Version}),
Pre-Depends: ${misc:Pre-Depends}
Description: Post-link optimizer
It achieves the improvements by optimizing application's code layout based on
execution profile gathered by sampling profiler.
Package: libbolt-16-dev
Package: libbolt-17-dev
Section: libdevel
Architecture: amd64
#arm64
@ -930,11 +944,11 @@ Description: Post-link optimizer
# ------------- flang -------------
Package: flang-16
Package: flang-17
# no 32bit support
# https://github.com/llvm/llvm-project/issues/59845
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs}, libflang-16-dev (= ${binary:Version}),
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64 loong64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs}, libflang-17-dev (= ${binary:Version}),
Provides: fortran-compiler, gfortran-mod-15
Description: Fortran compiler
Ground-up implementation of a Fortran front end written in
@ -943,8 +957,8 @@ Description: Fortran compiler
While it is capable of generating executables for a number
of examples, some functionalities are still missing.
Package: libflang-16-dev
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64
Package: libflang-17-dev
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64 loong64
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
Description: Flang library - Development package

178
debian/control.in vendored
View File

@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 10.0), cmake, ninja-build,
libelf-dev,
libffi-dev,
lsb-release, patchutils, diffstat, xz-utils, python3-dev,
libedit-dev, libncurses5-dev, swig, python3-six, python3-sphinx (>= 1.3.6),
libedit-dev, libncurses-dev, swig, python3-sphinx (>= 1.3.6),
binutils-dev,
libxml2-dev,
libjsoncpp-dev, pkg-config,
@ -23,14 +23,15 @@ Build-Depends: debhelper (>= 10.0), cmake, ninja-build,
libctypes-ocaml-dev [amd64 arm64 armhf ppc64el riscv64 s390x],
dh-exec, dh-ocaml [amd64 arm64 armhf ppc64el riscv64 s390x],
libpfm4-dev [linux-any], python3-setuptools, libz3-dev,
llvm-spirv-16 [ amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x ] <!stage1> | hello [!i386],
spirv-tools [ linux-any ] | hello [ !i386],
wasi-libc | hello [ !any-i386],
libcurl4-openssl-dev | libcurl-dev,
libgrpc++-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
protobuf-compiler-grpc [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
libprotobuf-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x],
protobuf-compiler [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x]
# llvm-spirv-17 [amd64 arm64 armel armhf i386 mips64el ppc64 ppc64el riscv64 s390x] <!stage1> | hello [!i386],
llvm-spirv-17 [amd64 arm64 armhf i386 ppc64 ppc64el riscv64 s390x] <!stage1> | hello,
spirv-tools [linux-any] <!stage1> | hello [!i386],
wasi-libc | hello,
libcurl4-openssl-dev <!stage1> | libcurl-dev <!stage1>,
libgrpc++-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
protobuf-compiler-grpc [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
libprotobuf-dev [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
protobuf-compiler [amd64 arm64 armel armhf mips64el mipsel ppc64 ppc64el powerpc riscv64 s390x] <!stage1>,
# "| hello" is for older buster/bionic distros without spirv support
Build-Conflicts: oprofile
Standards-Version: 4.6.2
@ -43,9 +44,11 @@ Vcs-Browser: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/tree/@BRANCH_
Package: clang-@LLVM_VERSION@
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
${dep:devlibs-objc}, libclang-common-@LLVM_VERSION@-dev (= ${source:Version}),
${dep:devlibs-objc},
libllvm@LLVM_VERSION@t64 (= ${binary:Version}),
libclang-common-@LLVM_VERSION@-dev (= ${binary:Version}),
llvm-@LLVM_VERSION@-linker-tools (= ${binary:Version}),
libclang1-@LLVM_VERSION@ (= ${binary:Version}), libc6-dev, binutils
libclang1-@LLVM_VERSION@t64 (= ${binary:Version}), libc6-dev, binutils
Provides: c-compiler, objc-compiler, c++-compiler
Recommends: llvm-@LLVM_VERSION@-dev, python3
# libomp-@LLVM_VERSION@-dev
@ -75,7 +78,7 @@ Description: clang-based tools for C/C++ developments
Package: clang-format-@LLVM_VERSION@
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3,
libllvm@LLVM_VERSION@ (= ${binary:Version})
libllvm@LLVM_VERSION@t64 (= ${binary:Version})
Description: Tool to format C/C++/Obj-C code
Clang-format is both a library and a stand-alone tool with the goal of
automatically reformatting C++ sources files according to configurable
@ -91,7 +94,8 @@ Description: Tool to format C/C++/Obj-C code
Package: clang-tidy-@LLVM_VERSION@
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3,
libllvm@LLVM_VERSION@ (= ${binary:Version}), libclang-common-@LLVM_VERSION@-dev,
libllvm@LLVM_VERSION@t64 (= ${binary:Version}),
libclang-common-@LLVM_VERSION@-dev (= ${binary:Version}),
clang-tools-@LLVM_VERSION@, python3-yaml
Description: clang-based C++ linter tool
Provide an extensible framework for diagnosing and fixing typical programming
@ -102,7 +106,8 @@ Description: clang-based C++ linter tool
Package: clangd-@LLVM_VERSION@
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libclang-common-@LLVM_VERSION@-dev (= ${source:Version})
libllvm@LLVM_VERSION@t64 (= ${binary:Version}),
libclang-common-@LLVM_VERSION@-dev (= ${binary:Version}),
Description: Language server that provides IDE-like features to editors
clangd understands your C++ code and adds smart features to your editor:
- code completion
@ -115,6 +120,7 @@ Description: Language server that provides IDE-like features to editors
Package: clang-@LLVM_VERSION@-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${shlibs:Depends}, ${misc:Depends}, libjs-mathjax
Description: C, C++ and Objective-C compiler - Documentation
@ -127,7 +133,10 @@ Description: C, C++ and Objective-C compiler - Documentation
.
This package contains the documentation.
Package: libclang1-@LLVM_VERSION@
Package: libclang1-@LLVM_VERSION@t64
Provides: ${t64:Provides}
Replaces: libclang1-@LLVM_VERSION@
Breaks: libclang1-@LLVM_VERSION@ (<< ${source:Version})
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
@ -152,8 +161,8 @@ Package: libclang-@LLVM_VERSION@-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
${dep:devlibs-objc}, libclang1-@LLVM_VERSION@ (= ${binary:Version}),
libclang-common-@LLVM_VERSION@-dev (= ${source:Version})
${dep:devlibs-objc}, libclang1-@LLVM_VERSION@t64 (= ${binary:Version}),
libclang-common-@LLVM_VERSION@-dev (= ${binary:Version})
Description: Clang library - Development package
Clang project is a C, C++, Objective C and Objective C++ front-end
based on the LLVM compiler. Its goal is to offer a replacement to the
@ -166,10 +175,10 @@ Description: Clang library - Development package
libclang1-@LLVM_VERSION@.
Package: libclang-common-@LLVM_VERSION@-dev
Architecture: all
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (>= ${source:Version}),
libllvm@LLVM_VERSION@ (<< ${source:Version}.1~)
Depends: ${shlibs:Depends}, ${misc:Depends},
Recommends: libclang-rt-@LLVM_VERSION@-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Clang library - Common development package
Clang project is a C, C++, Objective C and Objective C++ front-end
@ -187,8 +196,6 @@ Package: libclang-rt-@LLVM_VERSION@-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Breaks: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Compiler-rt - development package
This package provides various libraries:
@ -205,10 +212,7 @@ Package: libclang-rt-@LLVM_VERSION@-dev-wasm32
Architecture: all
Multi-Arch: foreign
Section: libdevel
Breaks: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: libclang-common-@LLVM_VERSION@-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Compiler-rt - wasm32 builtins
Provides the compiler-rt builtins for WebAssembly 32 bits
@ -216,10 +220,7 @@ Package: libclang-rt-@LLVM_VERSION@-dev-wasm64
Architecture: all
Multi-Arch: foreign
Section: libdevel
Breaks: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: libclang-common-@LLVM_VERSION@-dev (>= 1:16~++20230115053056+df5fc4504b86-1~exp1)
Description: Compiler-rt - wasm64 builtins
Provides the compiler-rt builtins for WebAssembly 64 bits
@ -229,8 +230,6 @@ Package: libpolly-@LLVM_VERSION@-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Breaks: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Replaces: libclang-common-@LLVM_VERSION@-dev (<< 1:16~++20230115053056+df5fc4504b86-1~exp1)
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: High-level loop and data-locality optimizer
Uses an abstract mathematical representation based on integer polyhedra
@ -238,10 +237,13 @@ Description: High-level loop and data-locality optimizer
# ------------- clang libraries -------------
Package: libclang-cpp@LLVM_VERSION@
Package: libclang-cpp@LLVM_VERSION@t64
Provides: ${t64:Provides}
Replaces: libclang-cpp@LLVM_VERSION@
Breaks: libclang-cpp@LLVM_VERSION@ (<< ${source:Version})
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: C++ interface to the Clang library
Clang project is a C, C++, Objective C and Objective C++ front-end
@ -263,7 +265,7 @@ Package: libclang-cpp@LLVM_VERSION@-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
libclang-cpp@LLVM_VERSION@ (= ${binary:Version})
libclang-cpp@LLVM_VERSION@t64 (= ${binary:Version})
# Move of libclang-cpp.so into libclang-cpp@LLVM_VERSION@.dev
Description: C++ interface to the Clang library
Clang project is a C, C++, Objective C and Objective C++ front-end
@ -324,7 +326,8 @@ Description: Clang Python Bindings
This binding package provides access to the Clang compiler and libraries.
Package: clang-@LLVM_VERSION@-examples
Architecture: any
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Clang examples
@ -339,7 +342,10 @@ Description: Clang examples
# ------------- LLVM -------------
Package: libllvm@LLVM_VERSION@
Package: libllvm@LLVM_VERSION@t64
Provides: ${t64:Provides}
Replaces: libllvm@LLVM_VERSION@
Breaks: libllvm@LLVM_VERSION@ (<< ${source:Version})
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
@ -415,8 +421,8 @@ Description: Modular compiler and toolchain technologies, IR interpreter
Package: llvm-@LLVM_VERSION@-dev
Architecture: any
Depends: ${shlibs:Depends}, libffi-dev, ${misc:Depends},
llvm-@LLVM_VERSION@ (= ${binary:Version}), libllvm@LLVM_VERSION@ (= ${binary:Version}), libncurses-dev,
llvm-@LLVM_VERSION@-tools (= ${binary:Version}), libclang-cpp@LLVM_VERSION@ (= ${binary:Version}),
llvm-@LLVM_VERSION@ (= ${binary:Version}), libllvm@LLVM_VERSION@t64 (= ${binary:Version}), libncurses-dev,
llvm-@LLVM_VERSION@-tools (= ${binary:Version}), libclang-cpp@LLVM_VERSION@t64 (= ${binary:Version}),
libz3-dev, libxml2-dev
Description: Modular compiler and toolchain technologies, libraries and headers
LLVM is a collection of libraries and tools that make it easy to build
@ -480,6 +486,7 @@ Description: Modular compiler and toolchain technologies, OCaml bindings
Package: llvm-@LLVM_VERSION@-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, libjs-jquery, libjs-underscore
Description: Modular compiler and toolchain technologies, documentation
LLVM is a collection of libraries and tools that make it easy to build
@ -520,9 +527,9 @@ Description: Modular compiler and toolchain technologies, examples
# ------------- lld -------------
Package: lld-@LLVM_VERSION@
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Description: LLVM-based linker
LLD is a new, high-performance linker. It is built as a set of reusable
@ -530,9 +537,9 @@ Description: LLVM-based linker
Project.
Package: liblld-@LLVM_VERSION@
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Section: libs
Description: LLVM-based linker, library
@ -544,7 +551,7 @@ Description: LLVM-based linker, library
Package: liblld-@LLVM_VERSION@-dev
Section: libdevel
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64
Architecture: amd64 arm64 armel armhf i386 mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 riscv64 loong64
# ia64 hurd powerpc have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, lld-@LLVM_VERSION@ (= ${binary:Version}),
liblld-@LLVM_VERSION@ (= ${binary:Version}), libzstd-dev, zlib1g-dev
@ -560,9 +567,9 @@ Description: LLVM-based linker, header files
# ------------- lldb -------------
Package: lldb-@LLVM_VERSION@
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (= ${binary:Version}),
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@t64 (= ${binary:Version}),
python3-lldb-@LLVM_VERSION@
Pre-Depends: ${misc:Pre-Depends}
Description: Next generation, high-performance debugger
@ -570,10 +577,13 @@ Description: Next generation, high-performance debugger
reusable components which highly leverage existing libraries in the larger LLVM
Project, such as the Clang expression parser and LLVM disassembler.
Package: liblldb-@LLVM_VERSION@
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Package: liblldb-@LLVM_VERSION@t64
Provides: ${t64:Provides}
Replaces: liblldb-@LLVM_VERSION@
Breaks: liblldb-@LLVM_VERSION@ (<< ${source:Version})
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@ (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm@LLVM_VERSION@t64 (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
Section: libs
Description: Next generation, high-performance debugger, library
@ -585,9 +595,9 @@ Description: Next generation, high-performance debugger, library
Package: python3-lldb-@LLVM_VERSION@
Section: python
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, liblldb-@LLVM_VERSION@ (= ${binary:Version}), python3-six
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, liblldb-@LLVM_VERSION@t64 (= ${binary:Version})
Conflicts: python3-lldb-x.y
Replaces: python3-lldb-x.y
Provides: python3-lldb-x.y
@ -601,7 +611,7 @@ Description: Next generation, high-performance debugger, python3 lib
Package: liblldb-@LLVM_VERSION@-dev
Section: libdevel
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
Architecture: amd64 arm64 armel armhf i386 ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 loong64
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 mipsel mips64el have been removed
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-@LLVM_VERSION@ (= ${binary:Version})
Pre-Depends: ${misc:Pre-Depends}
@ -619,8 +629,8 @@ Description: Next generation, high-performance debugger, header files
Package: libomp-@LLVM_VERSION@-dev
Section: libdevel
Architecture: amd64 arm64 armhf i386 mips64el ppc64el ppc64 riscv64
Depends: libomp5-@LLVM_VERSION@ (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Architecture: amd64 arm64 armhf i386 loong64 mips64el ppc64el ppc64 riscv64
Depends: libomp5-@LLVM_VERSION@t64 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Suggests: libomp-@LLVM_VERSION@-doc
Breaks: libiomp-dev (<< 3.7-1), libomp-dev (<< 44)
Provides: libomp-x.y-dev
@ -631,14 +641,14 @@ Description: LLVM OpenMP runtime - dev package
linked against, and that manages the multiple threads in an OpenMP program
while it is executing.
Package: libomp5-@LLVM_VERSION@
Package: libomp5-@LLVM_VERSION@t64
Multi-Arch: same
Architecture: amd64 arm64 armhf i386 mips64el ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 mips64el ppc64el ppc64 riscv64
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: libomp5 (<< 44)
Provides: libomp-x.y
Breaks: libomp5-@LLVM_VERSION@ (<< ${source:Version}), libomp5 (<< 44)
Provides: ${t64:Provides}, libomp-x.y
Conflicts: libomp-x.y
Replaces: libomp-x.y
Replaces: libomp5-@LLVM_VERSION@, libomp-x.y
Description: LLVM OpenMP runtime
The runtime is the part of the OpenMP implementation that your code is
linked against, and that manages the multiple threads in an OpenMP program
@ -647,6 +657,7 @@ Description: LLVM OpenMP runtime
Package: libomp-@LLVM_VERSION@-doc
Section: doc
Architecture: all
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, libjs-jquery
Replaces: libiomp-x.y-doc
Breaks: libiomp-x.y-doc
@ -659,17 +670,17 @@ Description: LLVM OpenMP runtime - Documentation
# ------------- libcxx -------------
Package: libc++1-@LLVM_VERSION@
Package: libc++1-@LLVM_VERSION@t64
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Suggests: clang
Breaks: libc++1 (<< 44)
Provides: libc++-x.y
Breaks: libc++1-@LLVM_VERSION@ (<< ${source:Version}), libc++1 (<< 44)
Provides: ${t64:Provides}, libc++-x.y
Conflicts: libc++-x.y
Replaces: libc++-x.y
Replaces: libc++1-@LLVM_VERSION@, libc++-x.y
Description: LLVM C++ Standard library
libc++ is another implementation of the C++ standard library.
.
@ -687,12 +698,13 @@ Package: libc++-@LLVM_VERSION@-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libc++1-@LLVM_VERSION@ (= ${binary:Version}), ${misc:Depends},
libunwind-@LLVM_VERSION@-dev [amd64 arm64 armhf i386 ppc64el ppc64 riscv64]
Breaks: libc++-dev (<< 44)
Depends: libc++1-@LLVM_VERSION@t64 (= ${binary:Version}), ${misc:Depends},
libc++abi-@LLVM_VERSION@-dev (= ${binary:Version}),
libunwind-@LLVM_VERSION@-dev [amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64]
Breaks: libc++-dev (<< 44), libc++abi-@LLVM_VERSION@-dev (<< 1:17.0.6-2)
Provides: libc++-x.y-dev
Conflicts: libc++-x.y-dev
Replaces: libc++-x.y-dev
Replaces: libc++-x.y-dev, libc++abi-@LLVM_VERSION@-dev (<< 1:17.0.6-2)
Description: LLVM C++ Standard library (development files)
libc++ is another implementation of the C++ standard library
.
@ -731,16 +743,16 @@ Description: LLVM C++ Standard library (WASI)
# ------------- libcxxabi -------------
Package: libc++abi1-@LLVM_VERSION@
Package: libc++abi1-@LLVM_VERSION@t64
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: libc++abi1 (<< 44)
Provides: libc++abi-x.y
Breaks: libc++abi1-@LLVM_VERSION@ (<< ${source:Version}), libc++abi1 (<< 44)
Provides: ${t64:Provides}, libc++abi-x.y
Conflicts: libc++abi-x.y
Replaces: libc++abi-x.y
Replaces: libc++abi1-@LLVM_VERSION@, libc++abi-x.y
Description: LLVM low level support for a standard C++ library
libc++abi is another implementation of low level support for a standard C++
library.
@ -754,7 +766,7 @@ Package: libc++abi-@LLVM_VERSION@-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libc++abi1-@LLVM_VERSION@ (= ${binary:Version}), ${misc:Depends}
Depends: libc++abi1-@LLVM_VERSION@t64 (= ${binary:Version}), ${misc:Depends}
Breaks: libc++abi-dev (<= 44)
Provides: libc++abi-x.y-dev
Conflicts: libc++abi-x.y-dev
@ -826,15 +838,16 @@ Description: OpenCL C language implementation - development files
# ------------- libunwind -------------
Package: libunwind-@LLVM_VERSION@
Package: libunwind-@LLVM_VERSION@t64
Breaks: libunwind-@LLVM_VERSION@ (<< ${source:Version})
Section: libs
Architecture: amd64 arm64 armhf i386 ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: libunwind-x.y
Provides: ${t64:Provides}, libunwind-x.y
Conflicts: libunwind-x.y
Replaces: libunwind-x.y
Replaces: libunwind-@LLVM_VERSION@, libunwind-x.y
Description: production-quality unwinder
libunwind is a production-quality unwinder, with platform support for DWARF
unwind info, SjLj, and ARM EHABI.
@ -845,11 +858,11 @@ Description: production-quality unwinder
Package: libunwind-@LLVM_VERSION@-dev
Section: libdevel
Architecture: amd64 arm64 armhf i386 ppc64el ppc64 riscv64
Architecture: amd64 arm64 armhf i386 loong64 ppc64el ppc64 riscv64
Multi-Arch: same
Depends:
${misc:Depends},
libunwind-@LLVM_VERSION@ (= ${binary:Version})
libunwind-@LLVM_VERSION@t64 (= ${binary:Version})
Provides: libunwind-dev, libunwind-x.y-dev
Conflicts: libunwind-dev, libunwind-x.y-dev
Replaces: libunwind-dev, libunwind-x.y-dev
@ -874,15 +887,16 @@ Description: Multi-Level Intermediate Representation tools
.
This package provides tools.
Package: libmlir-@LLVM_VERSION@
Package: libmlir-@LLVM_VERSION@t64
Breaks: libmlir-@LLVM_VERSION@ (<< ${source:Version})
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: libmlir-x.y
Provides: ${t64:Provides}, libmlir-x.y
Conflicts: libmlir-x.y
Replaces: libmlir-x.y
Replaces: libmlir-@LLVM_VERSION@, libmlir-x.y
Description: Multi-Level Intermediate Representation library
Novel approach to building reusable and extensible compiler infrastructure.
MLIR aims to address software fragmentation, improve compilation for
@ -896,7 +910,7 @@ Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
libmlir-@LLVM_VERSION@ (= ${binary:Version})
libmlir-@LLVM_VERSION@t64 (= ${binary:Version})
Breaks: libmlir-dev
Provides: libmlir-x.y-dev
Conflicts: libmlir-x.y-dev
@ -933,7 +947,7 @@ Description: Post-link optimizer
Package: flang-@LLVM_VERSION@
# no 32bit support
# https://github.com/llvm/llvm-project/issues/59845
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64 loong64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs}, libflang-@LLVM_VERSION@-dev (= ${binary:Version}),
Provides: fortran-compiler, gfortran-mod-15
Description: Fortran compiler
@ -944,7 +958,7 @@ Description: Fortran compiler
of examples, some functionalities are still missing.
Package: libflang-@LLVM_VERSION@-dev
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 ppc64 sparc64 riscv64 loong64
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
Description: Flang library - Development package

View File

@ -1,3 +1,4 @@
usr/lib/llvm-@LLVM_VERSION@/lib/libc++.so /usr/lib/@DEB_HOST_MULTIARCH@/libc++.so
usr/lib/llvm-@LLVM_VERSION@/lib/libc++.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++.a
usr/lib/llvm-@LLVM_VERSION@/include/c++/v1 /usr/include/c++/v1
usr/lib/llvm-@LLVM_VERSION@/lib/libc++experimental.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++experimental.a

View File

@ -1 +0,0 @@
libc++1-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libc++.so.1.0*

View File

@ -0,0 +1,2 @@
libc++1-@LLVM_VERSION@t64: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libc++.so.1.0*
libc++1-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libc++1-@LLVM_VERSION@

View File

@ -1 +0,0 @@
libc++abi1-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libc++abi.so.1.0*

View File

@ -0,0 +1,2 @@
libc++abi1-@LLVM_VERSION@t64: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libc++abi.so.1.0*
libc++abi1-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libc++abi1-@LLVM_VERSION@

View File

@ -1,3 +1,3 @@
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so

View File

@ -1,5 +1,3 @@
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/*.h
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/module.modulemap
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/xray/
@ -7,3 +5,4 @@ usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/profile/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/ppc_wrappers/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/openmp_wrappers/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/cuda_wrappers/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/llvm_libc_wrappers/*.h

View File

@ -0,0 +1 @@
libclang-cpp@LLVM_VERSION@t64: package-name-doesnt-match-sonames libclang-cpp@LLVM_VERSION@

View File

@ -2,9 +2,9 @@
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/share/*.txt
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/sanitizer/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/lib/*/*clang_rt*
[!sparc !sparc64] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/lib/*/*clang_rt*
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/README.txt
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/fuzzer/
usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/orc/c_api.h
# See compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake / ALL_ORC_SUPPORTED_ARCH
[amd64 arm64 armhf armel i386] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/lib/linux/liborc_rt*
[amd64 arm64 armhf armel] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/lib/linux/liborc_rt*

View File

@ -1,4 +0,0 @@
# as upstream
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1
usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so.1
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so.1

View File

@ -1,5 +0,0 @@
# I know and I am not planning to change that yet.
libclang1-@LLVM_VERSION@: package-name-doesnt-match-sonames libclang-@LLVM_VERSION@-1
# Provided as transition
libclang1-@LLVM_VERSION@: dev-pkg-without-shlib-symlink usr/lib/*/libclang-@LLVM_VERSION@.so.1 usr/lib/*/libclang.so
libclang1-@LLVM_VERSION@: ldconfig-symlink-missing-for-shlib usr/lib/*/libclang-LLVM_VERSION@.so usr/lib/*/libclang-LLVM_VERSION@.so.1 libclang-LLVM_VERSION@.so

5
debian/libclang1-X.Yt64.links.in vendored Normal file
View File

@ -0,0 +1,5 @@
# as upstream
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.1
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@
usr/lib/@DEB_HOST_MULTIARCH@/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so.1
usr/lib/llvm-@LLVM_VERSION@/lib/libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ usr/lib/llvm-@LLVM_VERSION@/lib/libclang.so.1

View File

@ -0,0 +1,6 @@
# I know and I am not planning to change that yet.
libclang1-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libclang-@LLVM_VERSION@-1
# Provided as transition
libclang1-@LLVM_VERSION@t64: dev-pkg-without-shlib-symlink usr/lib/*/libclang-@LLVM_VERSION@.so.1 usr/lib/*/libclang.so
libclang1-@LLVM_VERSION@t64: ldconfig-symlink-missing-for-shlib usr/lib/*/libclang-LLVM_VERSION@.so usr/lib/*/libclang-LLVM_VERSION@.so.1 libclang-LLVM_VERSION@.so
libclang1-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libclang1-@LLVM_VERSION@

View File

@ -1,6 +1,7 @@
libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
libclang-@LLVM_VERSION@.so.@LLVM_VERSION@ libclang1-@LLVM_VERSION@t64 #MINVER#
(optional)LLVM_13@LLVM_13 1:15.0.7-3
(optional)LLVM_16@LLVM_16 1:16.0.2-1
(optional)LLVM_17@LLVM_17 1:17.0.1-1
clang_BlockCommandComment_getArgText@LLVM_13 1:5.0~svn298832-1~
clang_BlockCommandComment_getCommandName@LLVM_13 1:5.0~svn298832-1~
clang_BlockCommandComment_getNumArgs@LLVM_13 1:5.0~svn298832-1~
@ -26,6 +27,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_CXXMethod_isCopyAssignmentOperator@LLVM_16 1:16.0.2-1~
clang_CXXMethod_isDefaulted@LLVM_13 1:5.0~svn298832-1~
clang_CXXMethod_isDeleted@LLVM_16 1:16.0.2-1~
clang_CXXMethod_isExplicit@LLVM_17 1:17
clang_CXXMethod_isMoveAssignmentOperator@LLVM_16 1:16.0.2-1~
clang_CXXMethod_isPureVirtual@LLVM_13 1:5.0~svn298832-1~
clang_CXXMethod_isStatic@LLVM_13 1:5.0~svn298832-1~
@ -191,6 +193,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_createAPISet@LLVM_16 1:16.0.2-1~
clang_createCXCursorSet@LLVM_13 1:5.0~svn298832-1~
clang_createIndex@LLVM_13 1:5.0~svn298832-1~
clang_createIndexWithOptions@LLVM_17 1:17
clang_createTranslationUnit2@LLVM_13 1:5.0~svn298832-1~
clang_createTranslationUnit@LLVM_13 1:5.0~svn298832-1~
clang_createTranslationUnitFromSourceFile@LLVM_13 1:5.0~svn298832-1~
@ -230,6 +233,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_getArgType@LLVM_13 1:5.0~svn298832-1~
clang_getArrayElementType@LLVM_13 1:5.0~svn298832-1~
clang_getArraySize@LLVM_13 1:5.0~svn298832-1~
clang_getBinaryOperatorKindSpelling@LLVM_17 1:17
clang_getBuildSessionTimestamp@LLVM_13 1:5.0~svn298832-1~
clang_getCString@LLVM_13 1:5.0~svn298832-1~
clang_getCXTUResourceUsage@LLVM_13 1:5.0~svn298832-1~
@ -251,6 +255,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_getCompletionPriority@LLVM_13 1:5.0~svn298832-1~
clang_getCursor@LLVM_13 1:5.0~svn298832-1~
clang_getCursorAvailability@LLVM_13 1:5.0~svn298832-1~
clang_getCursorBinaryOperatorKind@LLVM_17 1:17
clang_getCursorCompletionString@LLVM_13 1:5.0~svn298832-1~
clang_getCursorDefinition@LLVM_13 1:5.0~svn298832-1~
clang_getCursorDisplayName@LLVM_13 1:5.0~svn298832-1~
@ -273,6 +278,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_getCursorTLSKind@LLVM_13 1:6.0~svn320926-1~
clang_getCursorType@LLVM_13 1:5.0~svn298832-1~
clang_getCursorUSR@LLVM_13 1:5.0~svn298832-1~
clang_getCursorUnaryOperatorKind@LLVM_17 1:17
clang_getCursorVisibility@LLVM_13 1:5.0~svn298832-1~
clang_getDeclObjCTypeEncoding@LLVM_13 1:5.0~svn298832-1~
clang_getDefinitionSpellingAndExtent@LLVM_13 1:5.0~svn298832-1~
@ -351,6 +357,7 @@ libclang-@LLVM_VERSION@.so.@LLVM_VERSION_FULL@ libclang1-@LLVM_VERSION@ #MINVER#
clang_getTypeSpelling@LLVM_13 1:5.0~svn298832-1~
clang_getTypedefDeclUnderlyingType@LLVM_13 1:5.0~svn298832-1~
clang_getTypedefName@LLVM_13 1:5.0~+rc1~
clang_getUnaryOperatorKindSpelling@LLVM_17 1:17
clang_getUnqualifiedType@LLVM_16 1:16.0.2-1~
clang_hashCursor@LLVM_13 1:5.0~svn298832-1~
clang_indexLoc_getCXSourceLocation@LLVM_13 1:5.0~svn298832-1~

View File

@ -1,5 +0,0 @@
# That is normal. The lib is not (yet?) shipped as a new package
liblldb-@LLVM_VERSION@: package-name-doesnt-match-sonames liblldb-@LLVM_VERSION@-1
# For now, override this warning. We might create a -dev at some point
liblldb-@LLVM_VERSION@: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb.so.1 usr/lib/*/liblldb.so
liblldb-@LLVM_VERSION@: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb-@LLVM_VERSION@.so.1 usr/lib/*/liblldb-@LLVM_VERSION@.so

View File

@ -0,0 +1,6 @@
# That is normal. The lib is not (yet?) shipped as a new package
liblldb-@LLVM_VERSION@t64: package-name-doesnt-match-sonames liblldb-@LLVM_VERSION@t64-1
# For now, override this warning. We might create a -dev at some point
liblldb-@LLVM_VERSION@t64: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb.so.1 usr/lib/*/liblldb.so
liblldb-@LLVM_VERSION@t64: non-dev-pkg-with-shlib-symlink usr/lib/*/liblldb-@LLVM_VERSION@t64.so.1 usr/lib/*/liblldb-@LLVM_VERSION@t64.so
liblldb-@LLVM_VERSION@t64: package-name-doesnt-match-sonames liblldb-@LLVM_VERSION@

View File

@ -1,2 +0,0 @@
# That is normal. Upstream does not match the debian convention
libllvm@LLVM_VERSION@: package-name-doesnt-match-sonames libLLVM-@LLVM_VERSION@-1

View File

@ -0,0 +1,3 @@
# That is normal. Upstream does not match the debian convention
libllvm@LLVM_VERSION@t64: package-name-doesnt-match-sonames libLLVM-@LLVM_VERSION@-1
libllvm@LLVM_VERSION@t64: package-name-doesnt-match-sonames libllvm@LLVM_VERSION@

View File

@ -1 +0,0 @@
libmlir-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/*

View File

@ -0,0 +1,2 @@
libmlir-@LLVM_VERSION@t64: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/*
libmlir-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libmlir-@LLVM_VERSION@

View File

@ -7,16 +7,16 @@
[!armhf !mips64el] /usr/lib/llvm-@LLVM_VERSION@/lib/libarcher_static.a
[!armhf !mips64el] /usr/lib/llvm-@LLVM_VERSION@/lib/libarcher.so
[amd64 ppc64el arm64 mips64el ppc64 riscv64] /usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget.devicertl.a
[amd64 ppc64el arm64 loong64 mips64el ppc64 riscv64] /usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget.devicertl.a
[amd64 ppc64el arm64 mips64el ppc64 riscv64] /usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget-*.bc
[amd64 ppc64el arm64 loong64 mips64el ppc64 riscv64] /usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget-*.bc
usr/lib/llvm-@LLVM_VERSION@/lib/cmake/openmp/*.cmake
[amd64 arm64 mips64el ppc64el ppc64 riscv64] usr/lib/llvm-@LLVM_VERSION@/bin/llvm-omp-device-info
[amd64 arm64 mips64el ppc64el ppc64 riscv64] usr/lib/llvm-@LLVM_VERSION@/bin/llvm-omp-kernel-replay
[amd64 arm64 loong64 mips64el ppc64el ppc64 riscv64] usr/lib/llvm-@LLVM_VERSION@/bin/llvm-omp-device-info
[amd64 arm64 loong64 mips64el ppc64el ppc64 riscv64] usr/lib/llvm-@LLVM_VERSION@/bin/llvm-omp-kernel-replay
[amd64 arm64 mips64el ppc64el ppc64 riscv64] usr/bin/llvm-omp-device-info-@LLVM_VERSION@
[amd64 arm64 mips64el ppc64el ppc64 riscv64] usr/bin/llvm-omp-kernel-replay-@LLVM_VERSION@
[amd64 arm64 loong64 mips64el ppc64el ppc64 riscv64] usr/bin/llvm-omp-device-info-@LLVM_VERSION@
[amd64 arm64 loong64 mips64el ppc64el ppc64 riscv64] usr/bin/llvm-omp-kernel-replay-@LLVM_VERSION@
[!armhf] usr/lib/llvm-@LLVM_VERSION@/share/gdb/python/ompd/

View File

@ -1,4 +0,0 @@
#!/usr/bin/dh-exec
usr/lib/llvm-@LLVM_VERSION@/lib/libomp*.so.5
[amd64 arm64 mips64el ppc64el ppc64 riscv64] usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget*.so.@LLVM_VERSION@

View File

@ -1 +0,0 @@
libomp5-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libomp.so.5*

4
debian/libomp5-X.Yt64.install.in vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/dh-exec
usr/lib/llvm-@LLVM_VERSION@/lib/libomp*.so.5
[amd64 arm64 mips64el ppc64el ppc64 riscv64 loong64] usr/lib/llvm-@LLVM_VERSION@/lib/libomptarget*.so.@LLVM_VERSION@

View File

@ -0,0 +1,2 @@
libomp5-@LLVM_VERSION@t64: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libomp.so.5*
libomp5-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libomp5-@LLVM_VERSION@

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
libunwind-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libunwind.so.1.0*

View File

@ -0,0 +1,2 @@
libunwind-@LLVM_VERSION@t64: arch-dependent-file-not-in-arch-specific-directory *usr/lib/llvm-@LLVM_VERSION@/lib/libunwind.so.1.0*
libunwind-@LLVM_VERSION@t64: package-name-doesnt-match-sonames libunwind-@LLVM_VERSION@

View File

@ -1,6 +1 @@
llvm/docs/_build/html usr/share/doc/llvm-@LLVM_VERSION@-doc/
#usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html.tar.gz
#usr/lib/llvm-@LLVM_VERSION@/docs/llvm/ocamldoc.tar.gz
#usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/Dummy.html
#usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/doxygen.css
#usr/lib/llvm-@LLVM_VERSION@/docs/llvm/html/LibASTMatchersReference.html

View File

@ -77,8 +77,8 @@ usr/lib/llvm-@LLVM_VERSION@/bin/yaml2obj
usr/lib/llvm-@LLVM_VERSION@/bin/verify-uselistorder
usr/lib/llvm-@LLVM_VERSION@/bin/sanstats
usr/lib/llvm-@LLVM_VERSION@/bin/dsymutil
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-debuginfod
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-debuginfod-find
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-debuginfod
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-remark-size-diff
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-remarkutil
usr/lib/llvm-@LLVM_VERSION@/bin/llvm-debuginfo-analyzer
@ -158,7 +158,7 @@ usr/bin/yaml2obj-*
usr/bin/verify-uselistorder-*
usr/bin/sanstats-*
usr/bin/dsymutil-*
usr/bin/llvm-debuginfod-@LLVM_VERSION@
usr/bin/llvm-debuginfod-find-*
usr/bin/llvm-debuginfod-@LLVM_VERSION@
usr/bin/llvm-remark-size-diff-*
usr/bin/llvm-debuginfo-analyzer-@LLVM_VERSION@
usr/bin/llvm-debuginfo-analyzer-@LLVM_VERSION@

View File

@ -3,11 +3,11 @@
tools/llvm-shlib/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/clang/tools/libclang/CMakeLists.txt
Index: llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8/clang/tools/libclang/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/clang/tools/libclang/CMakeLists.txt
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/clang/tools/libclang/CMakeLists.txt
@@ -117,7 +117,7 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHE
--- llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8.orig/clang/tools/libclang/CMakeLists.txt
+++ llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8/clang/tools/libclang/CMakeLists.txt
@@ -134,7 +134,7 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHE
remove_definitions("-D_XOPEN_SOURCE=700")
endif()
@ -16,10 +16,10 @@ Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/clang/tools/libc
OUTPUT_NAME ${output_name}
${SOURCES}
Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/llvm/tools/llvm-shlib/CMakeLists.txt
Index: llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8/llvm/tools/llvm-shlib/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/llvm/tools/llvm-shlib/CMakeLists.txt
--- llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8.orig/llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm-toolchain-17_17.0.6~++20231127102111+f6c231c15ec8/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -32,6 +32,8 @@ if(LLVM_BUILD_LLVM_DYLIB)
endif()
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} ${SOURCES})
@ -27,5 +27,5 @@ Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/llvm/tools/llvm-
+ set_property(TARGET LLVM PROPERTY VERSION "1") # Append .1 to SONAME
+
list(REMOVE_DUPLICATES LIB_NAMES)
if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
if((MINGW) OR (HAIKU)
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")

View File

@ -13,24 +13,24 @@ Subject: Use Debian-provided MathJax everywhere.
polly/docs/doxygen.cfg.in | 2 +-
8 files changed, 14 insertions(+), 5 deletions(-)
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang-tools-extra/docs/conf.py
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/docs/conf.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang-tools-extra/docs/conf.py
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang-tools-extra/docs/conf.py
@@ -119,6 +119,9 @@ html_theme = 'haiku'
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang-tools-extra/docs/conf.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/docs/conf.py
@@ -119,6 +119,9 @@ html_theme = "haiku"
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
+# Use Debian-provided MathJax
+mathjax_path = '/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang-tools-extra/docs/doxygen.cfg.in
# html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/docs/doxygen.cfg.in
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang-tools-extra/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang-tools-extra/docs/doxygen.cfg.in
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang-tools-extra/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/docs/doxygen.cfg.in
@@ -1443,7 +1443,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.
@ -40,11 +40,11 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang-tools-extr
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/analyzer/conf.py
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/analyzer/conf.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/docs/analyzer/conf.py
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/analyzer/conf.py
@@ -123,6 +123,9 @@ html_theme = 'haiku'
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/docs/analyzer/conf.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/analyzer/conf.py
@@ -120,6 +120,9 @@ html_theme = "haiku"
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
@ -53,12 +53,12 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/analy
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/conf.py
# html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/conf.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/docs/conf.py
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/conf.py
@@ -137,6 +137,9 @@ html_theme = 'haiku'
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/docs/conf.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/conf.py
@@ -135,6 +135,9 @@ html_theme = "haiku"
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
@ -67,11 +67,11 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/conf.
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/doxygen.cfg.in
# html_last_updated_fmt = '%b %d, %Y'
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/doxygen.cfg.in
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/doxygen.cfg.in
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/docs/doxygen.cfg.in
@@ -1432,7 +1432,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.
@ -81,10 +81,10 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/docs/doxyg
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/docs/doxygen.cfg.in
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/docs/doxygen.cfg.in
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/llvm/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/docs/doxygen.cfg.in
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/docs/doxygen.cfg.in
@@ -1433,7 +1433,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.
@ -94,10 +94,10 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/docs/doxyge
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/polly/docs/doxygen.cfg.in
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/polly/docs/doxygen.cfg.in
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/polly/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/polly/docs/doxygen.cfg.in
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/polly/docs/doxygen.cfg.in
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/polly/docs/doxygen.cfg.in
@@ -1433,7 +1433,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.

View File

@ -7,11 +7,11 @@
clang/test/Sema/warn-strlcpycat-size.c | 55 --------------
6 files changed, 25 insertions(+), 78 deletions(-)
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/include/clang/Basic/Builtins.def
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/include/clang/Basic/Builtins.def
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/include/clang/Basic/Builtins.def
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/include/clang/Basic/Builtins.def
@@ -626,8 +626,8 @@ BUILTIN(__builtin___memset_chk, "v*v*izz
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/include/clang/Basic/Builtins.def
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/include/clang/Basic/Builtins.def
@@ -645,8 +645,8 @@ BUILTIN(__builtin___memset_chk, "v*v*izz
BUILTIN(__builtin___stpcpy_chk, "c*c*cC*z", "nF")
BUILTIN(__builtin___strcat_chk, "c*c*cC*z", "nF")
BUILTIN(__builtin___strcpy_chk, "c*c*cC*z", "nF")
@ -22,7 +22,7 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/include/cl
BUILTIN(__builtin___strncat_chk, "c*c*cC*zz", "nF")
BUILTIN(__builtin___strncpy_chk, "c*c*cC*zz", "nF")
BUILTIN(__builtin___stpncpy_chk, "c*c*cC*zz", "nF")
@@ -1149,8 +1149,8 @@ LIBBUILTIN(getcontext, "iK*", "fjT",
@@ -1179,8 +1179,8 @@ LIBBUILTIN(getcontext, "iK*", "fjT",
LIBBUILTIN(_longjmp, "vJi", "frT", SETJMP_H, ALL_GNU_LANGUAGES)
LIBBUILTIN(siglongjmp, "vSJi", "frT", SETJMP_H, ALL_GNU_LANGUAGES)
// non-standard but very common
@ -33,11 +33,11 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/include/cl
// id objc_msgSend(id, SEL, ...)
LIBBUILTIN(objc_msgSend, "GGH.", "f", OBJC_MESSAGE_H, OBJC_LANG)
// long double objc_msgSend_fpret(id self, SEL op, ...)
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/AST/Decl.cpp
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/AST/Decl.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/lib/AST/Decl.cpp
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/AST/Decl.cpp
@@ -4175,13 +4175,13 @@ unsigned FunctionDecl::getMemoryFunction
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/lib/AST/Decl.cpp
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/AST/Decl.cpp
@@ -4274,13 +4274,13 @@ unsigned FunctionDecl::getMemoryFunction
case Builtin::BImemmove:
return Builtin::BImemmove;
@ -57,11 +57,11 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/AST/De
case Builtin::BI__builtin_memcmp:
case Builtin::BImemcmp:
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/Sema/SemaChecking.cpp
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/Sema/SemaChecking.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/lib/Sema/SemaChecking.cpp
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/Sema/SemaChecking.cpp
@@ -1264,8 +1264,8 @@ void Sema::checkFortifiedBuiltinMemoryFu
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/lib/Sema/SemaChecking.cpp
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/Sema/SemaChecking.cpp
@@ -1265,8 +1265,8 @@ void Sema::checkFortifiedBuiltinMemoryFu
case Builtin::BI__builtin___memcpy_chk:
case Builtin::BI__builtin___memmove_chk:
case Builtin::BI__builtin___memset_chk:
@ -72,7 +72,7 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/Sema/S
case Builtin::BI__builtin___strncat_chk:
case Builtin::BI__builtin___strncpy_chk:
case Builtin::BI__builtin___stpncpy_chk:
@@ -6087,10 +6087,10 @@ bool Sema::CheckFunctionCall(FunctionDec
@@ -6744,10 +6744,10 @@ bool Sema::CheckFunctionCall(FunctionDec
switch (CMId) {
case 0:
return false;
@ -85,11 +85,11 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/Sema/S
case Builtin::BIstrncat:
CheckStrncatArguments(TheCall, FnInfo);
break;
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
@@ -652,10 +652,10 @@ void GenericTaintChecker::initTaintRules
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
@@ -717,10 +717,10 @@ void GenericTaintChecker::initTaintRules
{{CDF_MaybeBuiltin, {BI.getName(Builtin::BIstrncat)}},
TR::Prop({{1, 2}}, {{0, ReturnValueIndex}})},
@ -102,10 +102,10 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/lib/Static
{{CDF_MaybeBuiltin, {{"snprintf"}}},
TR::Prop({{1}, 3}, {{0, ReturnValueIndex}})},
{{CDF_MaybeBuiltin, {{"sprintf"}}},
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/builtins.c
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/test/Sema/builtins.c
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/test/Sema/builtins.c
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/builtins.c
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/test/Sema/builtins.c
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/test/Sema/builtins.c
@@ -197,12 +197,10 @@ void test18(void) {
void *ptr;
@ -119,14 +119,14 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/
}
void no_ms_builtins(void) {
@@ -217,6 +215,7 @@ void unavailable(void) {
@@ -216,6 +214,7 @@ void unavailable(void) {
__builtin_operator_delete(0); // expected-error {{'__builtin_operator_delete' is only available in C++}}
}
// rdar://18259539
+/*
// rdar://18259539
size_t strlcpy(char * restrict dst, const char * restrict src, size_t size);
size_t strlcat(char * restrict dst, const char * restrict src, size_t size);
@@ -238,6 +237,7 @@ void Test19(void)
// expected-note {{change size argument to be the size of the destination}} \
// expected-warning {{'strlcat' will always overflow; destination buffer has size 20, but size argument is 40}}
@ -135,10 +135,10 @@ Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/
// rdar://11076881
char * Test20(char *p, const char *in, unsigned n)
Index: llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/warn-strlcpycat-size.c
Index: llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/test/Sema/warn-strlcpycat-size.c
===================================================================
--- llvm-toolchain-snapshot_16~++20230123091551+c3737a652230.orig/clang/test/Sema/warn-strlcpycat-size.c
+++ llvm-toolchain-snapshot_16~++20230123091551+c3737a652230/clang/test/Sema/warn-strlcpycat-size.c
--- llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde.orig/clang/test/Sema/warn-strlcpycat-size.c
+++ llvm-toolchain-snapshot_17~++20230718090722+aa9a10ac1dde/clang/test/Sema/warn-strlcpycat-size.c
@@ -1,55 +0,0 @@
-// RUN: %clang_cc1 -Wstrlcpy-strlcat-size -verify -fsyntax-only %s
-

View File

@ -18,11 +18,11 @@ Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Driver/ToolChains/Arch/ARM.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang/lib/Driver/ToolChains/Arch/ARM.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/lib/Driver/ToolChains/Arch/ARM.cpp
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Driver/ToolChains/Arch/ARM.cpp
@@ -373,7 +373,7 @@ arm::FloatABI arm::getDefaultFloatABI(co
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/clang/lib/Driver/ToolChains/Arch/ARM.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang/lib/Driver/ToolChains/Arch/ARM.cpp
@@ -384,7 +384,7 @@ arm::FloatABI arm::getDefaultFloatABI(co
case llvm::Triple::MuslEABI:
case llvm::Triple::EABI:
// EABI is always AAPCS, and if it was not marked 'hard', it's softfp

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c/llvm/lib/TargetParser/ARMTargetParser.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/lib/TargetParser/ARMTargetParser.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c.orig/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -589,7 +589,7 @@ StringRef ARM::getARMCPUForArch(const ll
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -590,7 +590,7 @@ StringRef ARM::getARMCPUForArch(const ll
case llvm::Triple::EABIHF:
case llvm::Triple::GNUEABIHF:
case llvm::Triple::MuslEABIHF:

21
debian/patches/D148945-revert.diff vendored Normal file
View File

@ -0,0 +1,21 @@
Restore that for now, we're not GenToo ...
https://reviews.llvm.org/D148945
https://reviews.llvm.org/D122444
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -333,6 +333,13 @@ Linux::Linux(const Driver &D, const llvm
Generic_GCC::AddMultiarchPaths(D, SysRoot, OSLibDir, Paths);
+ // The deprecated -DLLVM_ENABLE_PROJECTS=libcxx configuration installs
+ // libc++.so in D.Dir+"/../lib/". Detect this path.
+ // TODO Remove once LLVM_ENABLE_PROJECTS=libcxx is unsupported.
+ if (StringRef(D.Dir).startswith(SysRoot) &&
+ D.getVFS().exists(D.Dir + "/../lib/libc++.so"))
+ addPathIfExists(D, D.Dir + "/../lib", Paths);
+
addPathIfExists(D, concat(SysRoot, "/lib"), Paths);
addPathIfExists(D, concat(SysRoot, "/usr/lib"), Paths);
}

View File

@ -0,0 +1,468 @@
From 7236a15338bafc4bb4c6e61d4b151e0b9cc85448 Mon Sep 17 00:00:00 2001
From: chenli <chenli@loongson.cn>
Date: Mon, 18 Mar 2024 15:16:34 +0800
Subject: [PATCH] Revert "[LoongArch] Support InlineAsm for LSX and LASX"
This reverts commit d25c79dc70008b835312e5cc7ef48b199fda3165.
D154931[1] needs to be reverted on LLVM17. As Loongson SIMD Extension(LSX) and
Loongson Advanced SIMD Extension(LASX) are not fully supported on LLVM17,
InlineAsm for LSX and LASX should not be supported as well. Otherwise it leads
to the following issue[2]:
'''
LLVM ERROR: Cannot select: 0x7ffea41a3650: ch = store<(store (s128) into %ir.mask
store52)> 0x7ffea41a35e0, 0x7ffea4196a30, FrameIndex:i64<6>, undef:i64
'''
LSX and LASX are fully supported on LLVM18 and are not supported on LLVM16,
thus only LLVM17 has the problem.
[1] https://reviews.llvm.org/D154931
[2] https://buildd.debian.org/status/fetch.php?pkg=qtdeclarative-opensource-src&arch=loong64&ver=5.15.10%2Bdfsg-2%2Bb1&stamp=1710571569&raw=0
Change-Id: I2bd74a71fe5f0bcadeb04ecf1d63d9f97765e8b5
---
clang/lib/Basic/Targets/LoongArch.cpp | 12 +---
.../lasx/inline-asm-gcc-regs-error.c | 10 ----
.../LoongArch/lasx/inline-asm-gcc-regs.c | 36 ------------
.../lasx/inline-asm-operand-modifier.c | 15 -----
.../LoongArch/lsx/inline-asm-gcc-regs-error.c | 10 ----
.../LoongArch/lsx/inline-asm-gcc-regs.c | 36 ------------
.../lsx/inline-asm-operand-modifier.c | 15 -----
.../Target/LoongArch/LoongArchAsmPrinter.cpp | 14 -----
.../LoongArch/LoongArchISelLowering.cpp | 17 +-----
.../lasx/inline-asm-operand-modifier.ll | 14 -----
.../LoongArch/lasx/inline-asm-reg-names.ll | 58 -------------------
.../lsx/inline-asm-operand-modifier.ll | 14 -----
.../LoongArch/lsx/inline-asm-reg-names.ll | 58 -------------------
13 files changed, 2 insertions(+), 307 deletions(-)
delete mode 100644 clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs-error.c
delete mode 100644 clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs.c
delete mode 100644 clang/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.c
delete mode 100644 clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs-error.c
delete mode 100644 clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs.c
delete mode 100644 clang/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.c
delete mode 100644 llvm/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.ll
delete mode 100644 llvm/test/CodeGen/LoongArch/lasx/inline-asm-reg-names.ll
delete mode 100644 llvm/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.ll
delete mode 100644 llvm/test/CodeGen/LoongArch/lsx/inline-asm-reg-names.ll
diff --git a/clang/lib/Basic/Targets/LoongArch.cpp b/clang/lib/Basic/Targets/LoongArch.cpp
index 4448a2ae10a1..96ef29620eb6 100644
--- a/clang/lib/Basic/Targets/LoongArch.cpp
+++ b/clang/lib/Basic/Targets/LoongArch.cpp
@@ -33,17 +33,7 @@ ArrayRef<const char *> LoongArchTargetInfo::getGCCRegNames() const {
"$f19", "$f20", "$f21", "$f22", "$f23", "$f24", "$f25", "$f26", "$f27",
"$f28", "$f29", "$f30", "$f31",
// Condition flag registers.
- "$fcc0", "$fcc1", "$fcc2", "$fcc3", "$fcc4", "$fcc5", "$fcc6", "$fcc7",
- // 128-bit vector registers.
- "$vr0", "$vr1", "$vr2", "$vr3", "$vr4", "$vr5", "$vr6", "$vr7", "$vr8",
- "$vr9", "$vr10", "$vr11", "$vr12", "$vr13", "$vr14", "$vr15", "$vr16",
- "$vr17", "$vr18", "$vr19", "$vr20", "$vr21", "$vr22", "$vr23", "$vr24",
- "$vr25", "$vr26", "$vr27", "$vr28", "$vr29", "$vr30", "$vr31",
- // 256-bit vector registers.
- "$xr0", "$xr1", "$xr2", "$xr3", "$xr4", "$xr5", "$xr6", "$xr7", "$xr8",
- "$xr9", "$xr10", "$xr11", "$xr12", "$xr13", "$xr14", "$xr15", "$xr16",
- "$xr17", "$xr18", "$xr19", "$xr20", "$xr21", "$xr22", "$xr23", "$xr24",
- "$xr25", "$xr26", "$xr27", "$xr28", "$xr29", "$xr30", "$xr31"};
+ "$fcc0", "$fcc1", "$fcc2", "$fcc3", "$fcc4", "$fcc5", "$fcc6", "$fcc7"};
return llvm::ArrayRef(GCCRegNames);
}
diff --git a/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs-error.c b/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs-error.c
deleted file mode 100644
index 1fd602574b8e..000000000000
--- a/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs-error.c
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: not %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s 2>&1 -o - | FileCheck %s
-
-typedef signed char v32i8 __attribute__((vector_size(32), aligned(32)));
-
-void test() {
-// CHECK: :[[#@LINE+1]]:28: error: unknown register name 'xr0' in asm
- register v32i8 p0 asm ("xr0");
-// CHECK: :[[#@LINE+1]]:29: error: unknown register name '$xr32' in asm
- register v32i8 p32 asm ("$xr32");
-}
diff --git a/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs.c b/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs.c
deleted file mode 100644
index ed1a9660a06c..000000000000
--- a/clang/test/CodeGen/LoongArch/lasx/inline-asm-gcc-regs.c
+++ /dev/null
@@ -1,36 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --filter "^define |tail call"
-// RUN: %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s -o - | FileCheck %s
-
-typedef signed char v32i8 __attribute__((vector_size(32), aligned(32)));
-
-// CHECK-LABEL: @test_xr0(
-// CHECK: tail call void asm sideeffect "", "{$xr0}"(<32 x i8> undef) #[[ATTR1:[0-9]+]], !srcloc !2
-//
-void test_xr0() {
- register v32i8 a asm ("$xr0");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_xr7(
-// CHECK: tail call void asm sideeffect "", "{$xr7}"(<32 x i8> undef) #[[ATTR1]], !srcloc !3
-//
-void test_xr7() {
- register v32i8 a asm ("$xr7");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_xr15(
-// CHECK: tail call void asm sideeffect "", "{$xr15}"(<32 x i8> undef) #[[ATTR1]], !srcloc !4
-//
-void test_xr15() {
- register v32i8 a asm ("$xr15");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_xr31(
-// CHECK: tail call void asm sideeffect "", "{$xr31}"(<32 x i8> undef) #[[ATTR1]], !srcloc !5
-//
-void test_xr31() {
- register v32i8 a asm ("$xr31");
- asm ("" :: "f"(a));
-}
diff --git a/clang/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.c b/clang/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.c
deleted file mode 100644
index a5cc8798fd66..000000000000
--- a/clang/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
-// RUN: %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s -o - | FileCheck %s
-
-typedef long long v4i64 __attribute__ ((vector_size(32), aligned(32)));
-
-// CHECK-LABEL: define dso_local void @test_u
-// CHECK-SAME: () local_unnamed_addr #[[ATTR0:[0-9]+]] {
-// CHECK-NEXT: entry:
-// CHECK-NEXT: [[TMP0:%.*]] = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "=f"() #[[ATTR1:[0-9]+]], !srcloc !2
-// CHECK-NEXT: ret void
-//
-void test_u() {
- v4i64 v4i64_r;
- asm volatile ("xvldi %u0, 1" : "=f" (v4i64_r));
-}
diff --git a/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs-error.c b/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs-error.c
deleted file mode 100644
index 54132307e93f..000000000000
--- a/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs-error.c
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: not %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s 2>&1 -o - | FileCheck %s
-
-typedef signed char v16i8 __attribute__((vector_size(16), aligned(16)));
-
-void test() {
-// CHECK: :[[#@LINE+1]]:28: error: unknown register name 'vr0' in asm
- register v16i8 p0 asm ("vr0");
-// CHECK: :[[#@LINE+1]]:29: error: unknown register name '$vr32' in asm
- register v16i8 p32 asm ("$vr32");
-}
diff --git a/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs.c b/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs.c
deleted file mode 100644
index b05b1c8c15fa..000000000000
--- a/clang/test/CodeGen/LoongArch/lsx/inline-asm-gcc-regs.c
+++ /dev/null
@@ -1,36 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --filter "^define |tail call"
-// RUN: %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s -o - | FileCheck %s
-
-typedef signed char v16i8 __attribute__((vector_size(16), aligned(16)));
-
-// CHECK-LABEL: @test_vr0(
-// CHECK: tail call void asm sideeffect "", "{$vr0}"(<16 x i8> undef) #[[ATTR1:[0-9]+]], !srcloc !2
-//
-void test_vr0() {
- register v16i8 a asm ("$vr0");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_vr7(
-// CHECK: tail call void asm sideeffect "", "{$vr7}"(<16 x i8> undef) #[[ATTR1]], !srcloc !3
-//
-void test_vr7() {
- register v16i8 a asm ("$vr7");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_vr15(
-// CHECK: tail call void asm sideeffect "", "{$vr15}"(<16 x i8> undef) #[[ATTR1]], !srcloc !4
-//
-void test_vr15() {
- register v16i8 a asm ("$vr15");
- asm ("" :: "f"(a));
-}
-
-// CHECK-LABEL: @test_vr31(
-// CHECK: tail call void asm sideeffect "", "{$vr31}"(<16 x i8> undef) #[[ATTR1]], !srcloc !5
-//
-void test_vr31() {
- register v16i8 a asm ("$vr31");
- asm ("" :: "f"(a));
-}
diff --git a/clang/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.c b/clang/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.c
deleted file mode 100644
index 5e0fae984134..000000000000
--- a/clang/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
-// RUN: %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s -o - | FileCheck %s
-
-typedef long long v2i64 __attribute__ ((vector_size(16), aligned(16)));
-
-// CHECK-LABEL: define dso_local void @test_w
-// CHECK-SAME: () local_unnamed_addr #[[ATTR0:[0-9]+]] {
-// CHECK-NEXT: entry:
-// CHECK-NEXT: [[TMP0:%.*]] = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "=f"() #[[ATTR1:[0-9]+]], !srcloc !2
-// CHECK-NEXT: ret void
-//
-void test_w() {
- v2i64 v2i64_r;
- asm volatile ("vldi %w0, 1" : "=f" (v2i64_r));
-}
diff --git a/llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp b/llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp
index 27979a830b10..5cf0673df69a 100644
--- a/llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp
@@ -75,20 +75,6 @@ bool LoongArchAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
return false;
}
break;
- case 'w': // Print LSX registers.
- if (MO.getReg().id() >= LoongArch::VR0 &&
- MO.getReg().id() <= LoongArch::VR31)
- break;
- // The modifier is 'w' but the operand is not an LSX register; Report an
- // unknown operand error.
- return true;
- case 'u': // Print LASX registers.
- if (MO.getReg().id() >= LoongArch::XR0 &&
- MO.getReg().id() <= LoongArch::XR31)
- break;
- // The modifier is 'u' but the operand is not an LASX register; Report an
- // unknown operand error.
- return true;
// TODO: handle other extra codes if any.
}
}
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index db5961fc501a..488e1c7f3a76 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -53,14 +53,6 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
addRegisterClass(MVT::f32, &LoongArch::FPR32RegClass);
if (Subtarget.hasBasicD())
addRegisterClass(MVT::f64, &LoongArch::FPR64RegClass);
- if (Subtarget.hasExtLSX())
- for (auto VT : {MVT::v4f32, MVT::v2f64, MVT::v16i8, MVT::v8i16, MVT::v4i32,
- MVT::v2i64})
- addRegisterClass(VT, &LoongArch::LSX128RegClass);
- if (Subtarget.hasExtLASX())
- for (auto VT : {MVT::v8f32, MVT::v4f64, MVT::v32i8, MVT::v16i16, MVT::v8i32,
- MVT::v4i64})
- addRegisterClass(VT, &LoongArch::LASX256RegClass);
setLoadExtAction({ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD}, GRLenVT,
MVT::i1, Promote);
@@ -3056,12 +3048,6 @@ LoongArchTargetLowering::getRegForInlineAsmConstraint(
return std::make_pair(0U, &LoongArch::FPR32RegClass);
if (Subtarget.hasBasicD() && VT == MVT::f64)
return std::make_pair(0U, &LoongArch::FPR64RegClass);
- if (Subtarget.hasExtLSX() &&
- TRI->isTypeLegalForClass(LoongArch::LSX128RegClass, VT))
- return std::make_pair(0U, &LoongArch::LSX128RegClass);
- if (Subtarget.hasExtLASX() &&
- TRI->isTypeLegalForClass(LoongArch::LASX256RegClass, VT))
- return std::make_pair(0U, &LoongArch::LASX256RegClass);
break;
default:
break;
@@ -3079,8 +3065,7 @@ LoongArchTargetLowering::getRegForInlineAsmConstraint(
// decode the usage of register name aliases into their official names. And
// AFAIK, the not yet upstreamed `rustc` for LoongArch will always use
// official register names.
- if (Constraint.startswith("{$r") || Constraint.startswith("{$f") ||
- Constraint.startswith("{$vr") || Constraint.startswith("{$xr")) {
+ if (Constraint.startswith("{$r") || Constraint.startswith("{$f")) {
bool IsFP = Constraint[2] == 'f';
std::pair<StringRef, StringRef> Temp = Constraint.split('$');
std::pair<unsigned, const TargetRegisterClass *> R;
diff --git a/llvm/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.ll b/llvm/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.ll
deleted file mode 100644
index 201e34c8b5ae..000000000000
--- a/llvm/test/CodeGen/LoongArch/lasx/inline-asm-operand-modifier.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
-; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
-
-define void @test_u() nounwind {
-; CHECK-LABEL: test_u:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: xvldi $xr0, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "=f"()
- ret void
-}
diff --git a/llvm/test/CodeGen/LoongArch/lasx/inline-asm-reg-names.ll b/llvm/test/CodeGen/LoongArch/lasx/inline-asm-reg-names.ll
deleted file mode 100644
index dd400ecfcf91..000000000000
--- a/llvm/test/CodeGen/LoongArch/lasx/inline-asm-reg-names.ll
+++ /dev/null
@@ -1,58 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
-; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
-
-define void @register_xr1() nounwind {
-; CHECK-LABEL: register_xr1:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: xvldi $xr1, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "={$xr1}"()
- ret void
-}
-
-define void @register_xr7() nounwind {
-; CHECK-LABEL: register_xr7:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: xvldi $xr7, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "={$xr7}"()
- ret void
-}
-
-define void @register_xr23() nounwind {
-; CHECK-LABEL: register_xr23:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: xvldi $xr23, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "={$xr23}"()
- ret void
-}
-
-;; The lower 64-bit of the vector register '$xr31' is overlapped with
-;; the floating-point register '$f31' ('$fs7'). And '$f31' ('$fs7')
-;; is a callee-saved register which is preserved across calls.
-;; That's why the fst.d and fld.d instructions are emitted.
-define void @register_xr31() nounwind {
-; CHECK-LABEL: register_xr31:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: addi.d $sp, $sp, -16
-; CHECK-NEXT: fst.d $fs7, $sp, 8 # 8-byte Folded Spill
-; CHECK-NEXT: #APP
-; CHECK-NEXT: xvldi $xr31, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: fld.d $fs7, $sp, 8 # 8-byte Folded Reload
-; CHECK-NEXT: addi.d $sp, $sp, 16
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "={$xr31}"()
- ret void
-}
diff --git a/llvm/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.ll b/llvm/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.ll
deleted file mode 100644
index c46e624ddaa8..000000000000
--- a/llvm/test/CodeGen/LoongArch/lsx/inline-asm-operand-modifier.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
-; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
-
-define void @test_w() nounwind {
-; CHECK-LABEL: test_w:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: vldi $vr0, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "=f"()
- ret void
-}
diff --git a/llvm/test/CodeGen/LoongArch/lsx/inline-asm-reg-names.ll b/llvm/test/CodeGen/LoongArch/lsx/inline-asm-reg-names.ll
deleted file mode 100644
index ceea3621be2f..000000000000
--- a/llvm/test/CodeGen/LoongArch/lsx/inline-asm-reg-names.ll
+++ /dev/null
@@ -1,58 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
-; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
-
-define void @register_vr1() nounwind {
-; CHECK-LABEL: register_vr1:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: vldi $vr1, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "={$vr1}"()
- ret void
-}
-
-define void @register_vr7() nounwind {
-; CHECK-LABEL: register_vr7:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: vldi $vr7, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "={$vr7}"()
- ret void
-}
-
-define void @register_vr23() nounwind {
-; CHECK-LABEL: register_vr23:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: #APP
-; CHECK-NEXT: vldi $vr23, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "={$vr23}"()
- ret void
-}
-
-;; The lower half of the vector register '$vr31' is overlapped with
-;; the floating-point register '$f31'. And '$f31' is a callee-saved
-;; register which is preserved across calls. That's why the
-;; fst.d and fld.d instructions are emitted.
-define void @register_vr31() nounwind {
-; CHECK-LABEL: register_vr31:
-; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: addi.d $sp, $sp, -16
-; CHECK-NEXT: fst.d $fs7, $sp, 8 # 8-byte Folded Spill
-; CHECK-NEXT: #APP
-; CHECK-NEXT: vldi $vr31, 1
-; CHECK-NEXT: #NO_APP
-; CHECK-NEXT: fld.d $fs7, $sp, 8 # 8-byte Folded Reload
-; CHECK-NEXT: addi.d $sp, $sp, 16
-; CHECK-NEXT: ret
-entry:
- %0 = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "={$vr31}"()
- ret void
-}
--
2.20.1

View File

@ -2,25 +2,24 @@ Description: Fix SIMD compatibility headers on ppc64el
Origin/Author: https://reviews.llvm.org/D158066
Bug-Debian: https://bugs.debian.org/1049362
Index: llvm-toolchain-16-16.0.6/clang/include/clang/Basic/BuiltinsPPC.def
===================================================================
--- llvm-toolchain-16-16.0.6.orig/clang/include/clang/Basic/BuiltinsPPC.def
+++ llvm-toolchain-16-16.0.6/clang/include/clang/Basic/BuiltinsPPC.def
@@ -132,8 +132,10 @@
BUILTIN(__builtin_ppc_extract_sig, "ULLid", "")
diff --git a/clang/include/clang/Basic/BuiltinsPPC.def b/clang/include/clang/Basic/BuiltinsPPC.def
--- a/clang/include/clang/Basic/BuiltinsPPC.def
+++ b/clang/include/clang/Basic/BuiltinsPPC.def
@@ -151,8 +151,10 @@
TARGET_BUILTIN(__builtin_ppc_extract_sig, "ULLid", "", "power9-vector")
BUILTIN(__builtin_ppc_mtfsb0, "vUIi", "")
BUILTIN(__builtin_ppc_mtfsb1, "vUIi", "")
+BUILTIN(__builtin_ppc_mffs, "d", "")
BUILTIN(__builtin_ppc_mtfsf, "vUIiUi", "")
BUILTIN(__builtin_ppc_mtfsfi, "vUIiUIi", "")
+BUILTIN(__builtin_ppc_set_fpscr_rn, "di", "")
BUILTIN(__builtin_ppc_insert_exp, "ddULLi", "")
TARGET_BUILTIN(__builtin_ppc_insert_exp, "ddULLi", "", "power9-vector")
BUILTIN(__builtin_ppc_fmsub, "dddd", "")
BUILTIN(__builtin_ppc_fmsubs, "ffff", "")
diff --git a/clang/lib/Basic/Targets/PPC.cpp b/clang/lib/Basic/Targets/PPC.cpp
--- a/clang/lib/Basic/Targets/PPC.cpp
+++ b/clang/lib/Basic/Targets/PPC.cpp
@@ -260,6 +260,10 @@
@@ -262,6 +262,10 @@
Builder.defineMacro("__builtin_minfe", "__builtin_ppc_minfe");
Builder.defineMacro("__builtin_minfl", "__builtin_ppc_minfl");
Builder.defineMacro("__builtin_minfs", "__builtin_ppc_minfs");
@ -34,7 +33,7 @@ diff --git a/clang/lib/Basic/Targets/PPC.cpp b/clang/lib/Basic/Targets/PPC.cpp
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -16742,6 +16742,11 @@
@@ -17062,6 +17062,11 @@
Value *Op1 = EmitScalarExpr(E->getArg(1));
return Builder.CreateFDiv(Op0, Op1, "swdiv");
}

View File

@ -1,45 +0,0 @@
From f8598357662dc8dd0f4400bcaeb48e8befe43ecc Mon Sep 17 00:00:00 2001
From: Cordell Bloor <Cordell.Bloor@amd.com>
Date: Tue, 9 May 2023 09:46:48 -0400
Subject: [PATCH] [HIP] Detect HIP for Ubuntu, Mint, Gentoo, etc.
HIP may be installed into /usr or /usr/local on a variety of Linux
operating systems. It may become unwieldy to list them all.
Reviewed by: Siu Chi Chan, Yaxun Liu
Differential Revision: https://reviews.llvm.org/D149110
---
clang/lib/Driver/ToolChains/AMDGPU.cpp | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/clang/lib/Driver/ToolChains/AMDGPU.cpp b/clang/lib/Driver/ToolChains/AMDGPU.cpp
index acedcfabefe1c..1eb22ed8704c9 100644
--- a/clang/lib/Driver/ToolChains/AMDGPU.cpp
+++ b/clang/lib/Driver/ToolChains/AMDGPU.cpp
@@ -11,7 +11,6 @@
#include "clang/Basic/TargetID.h"
#include "clang/Config/config.h"
#include "clang/Driver/Compilation.h"
-#include "clang/Driver/Distro.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Options.h"
@@ -309,13 +308,10 @@ RocmInstallationDetector::getInstallationPathCandidates() {
ROCmSearchDirs.emplace_back(D.SysRoot + "/opt/" + LatestROCm,
/*StrictChecking=*/true);
- Distro Dist(D.getVFS(), llvm::Triple(llvm::sys::getProcessTriple()));
- if (Dist.IsDebian() || Dist.IsRedhat()) {
- ROCmSearchDirs.emplace_back(D.SysRoot + "/usr/local",
- /*StrictChecking=*/true);
- ROCmSearchDirs.emplace_back(D.SysRoot + "/usr",
- /*StrictChecking=*/true);
- }
+ ROCmSearchDirs.emplace_back(D.SysRoot + "/usr/local",
+ /*StrictChecking=*/true);
+ ROCmSearchDirs.emplace_back(D.SysRoot + "/usr",
+ /*StrictChecking=*/true);
DoPrintROCmSearchDirs();
return ROCmSearchDirs;

View File

@ -1,53 +0,0 @@
From efa9394d72968e0c84c2c9283476c70807f60b80 Mon Sep 17 00:00:00 2001
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Wed, 8 Mar 2023 02:57:51 -0700
Subject: [PATCH] Search for the bitcode libraries in a multiarch directory
The Debian path for the rocm-device-libs is
/usr/lib/$(DEB_HOST_MULTIARCH)/amdgcn/bitcode
Forwarded: not-needed
---
clang/lib/Driver/ToolChains/AMDGPU.cpp | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
Index: llvm-toolchain-15-15.0.7/clang/lib/Driver/ToolChains/AMDGPU.cpp
===================================================================
--- llvm-toolchain-15-15.0.7.orig/clang/lib/Driver/ToolChains/AMDGPU.cpp
+++ llvm-toolchain-15-15.0.7/clang/lib/Driver/ToolChains/AMDGPU.cpp
@@ -14,6 +14,7 @@
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Options.h"
+#include "llvm/ADT/Triple.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileUtilities.h"
@@ -423,16 +424,21 @@ void RocmInstallationDetector::detectDev
// The possible structures are:
// - ${ROCM_ROOT}/amdgcn/bitcode/*
// - ${ROCM_ROOT}/lib/*
+ // - ${ROCM_ROOT}/lib/<multiarch>/amdgcn/bitcode/*
// - ${ROCM_ROOT}/lib/bitcode/*
- // so try to detect these layouts.
- static constexpr std::array<const char *, 2> SubDirsList[] = {
- {"amdgcn", "bitcode"},
- {"lib", ""},
- {"lib", "bitcode"},
+ // so try to detect these layouts. Note that bitcode is associated with the
+ // compiler that built it (not the target architecture).
+ llvm::Triple HostTriple(llvm::sys::getProcessTriple());
+ std::string Multiarch = Twine(HostTriple.getArchName() + "-linux-gnu").str();
+ static const std::array<std::string, 4> SubDirsList[] = {
+ {"amdgcn", "bitcode", "", ""},
+ {"lib", "", "", ""},
+ {"lib", Multiarch, "amdgcn", "bitcode"},
+ {"lib", "bitcode", "", ""},
};
// Make a path by appending sub-directories to InstallPath.
- auto MakePath = [&](const llvm::ArrayRef<const char *> &SubDirs) {
+ auto MakePath = [&](const llvm::ArrayRef<std::string> &SubDirs) {
auto Path = CandidatePath;
for (auto SubDir : SubDirs)
llvm::sys::path::append(Path, SubDir);

View File

@ -1,20 +0,0 @@
https://reviews.llvm.org/D143017
[Libomptarget] Fix disabling amdgpu on non-Linux.
Previously, on non-Linux, amdgpu would get enabled whatever the CPU
architecture.
Index: llvm-toolchain-16_16.0.0~+rc4/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
===================================================================
--- llvm-toolchain-16_16.0.0~+rc4.orig/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
+++ llvm-toolchain-16_16.0.0~+rc4/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
@@ -22,7 +22,7 @@ endif()
# as of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
find_package(hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm)
-if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
libomptarget_say("Not building AMDGPU plugin: only support AMDGPU in Linux x86_64, ppc64le, or aarch64 hosts")
return()
endif()

14
debian/patches/arm32-defaults.diff vendored Normal file
View File

@ -0,0 +1,14 @@
--- a/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ b/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -590,9 +590,9 @@ StringRef ARM::getARMCPUForArch(const ll
case llvm::Triple::EABIHF:
case llvm::Triple::GNUEABIHF:
case llvm::Triple::MuslEABIHF:
- return "cortex-a7";
+ return "cortex-a8";
default:
- return "arm7tdmi";
+ return "arm926ej-s";
}
}

View File

@ -1,9 +1,9 @@
Index: llvm-toolchain-snapshot_16~++20230104114047+37228b1baa48/bolt/tools/merge-fdata/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230601055733+ee6ec2c5f1a5/bolt/tools/merge-fdata/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20230104114047+37228b1baa48.orig/bolt/tools/merge-fdata/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20230104114047+37228b1baa48/bolt/tools/merge-fdata/CMakeLists.txt
@@ -18,6 +18,6 @@ install(PROGRAMS
)
--- llvm-toolchain-snapshot_17~++20230601055733+ee6ec2c5f1a5.orig/bolt/tools/merge-fdata/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230601055733+ee6ec2c5f1a5/bolt/tools/merge-fdata/CMakeLists.txt
@@ -12,6 +12,6 @@ add_bolt_tool(merge-fdata
add_dependencies(bolt merge-fdata)
# Emit relocations for BOLT meta test (bolt/test/runtime/meta-merge-fdata.test)
-if (BOLT_INCLUDE_TESTS AND UNIX AND NOT APPLE)

View File

@ -1,16 +1,16 @@
# Force the version of clang in the analyzer
# This was causing the static analyzer to fail silently if the clang & clang++ are
# not installed
Index: llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/clang/tools/scan-build/libexec/ccc-analyzer
Index: llvm-toolchain-snapshot_17~++20211117120952+5b4bfd8c2417/clang/tools/scan-build/libexec/ccc-analyzer
===================================================================
--- llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416.orig/clang/tools/scan-build/libexec/ccc-analyzer
+++ llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/clang/tools/scan-build/libexec/ccc-analyzer
--- llvm-toolchain-snapshot_17~++20211117120952+5b4bfd8c2417.orig/clang/tools/scan-build/libexec/ccc-analyzer
+++ llvm-toolchain-snapshot_17~++20211117120952+5b4bfd8c2417/clang/tools/scan-build/libexec/ccc-analyzer
@@ -93,7 +93,7 @@ if ($FindBin::Script =~ /c\+\+-analyzer/
if (!defined $Compiler || (! -x $Compiler && ! SearchInPath($Compiler))) { $Compiler = $DefaultCXXCompiler; }
$Clang = $ENV{'CLANG_CXX'};
- if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++-16'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++-17'; }
$IsCXX = 1
}
@ -19,7 +19,7 @@ Index: llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/clang/tools/scan
$Clang = $ENV{'CLANG'};
- if (!defined $Clang || ! -x $Clang) { $Clang = 'clang'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang-16'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang-17'; }
$IsCXX = 0
}

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Driver/ToolChains/Arch/X86.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang/lib/Driver/ToolChains/Arch/X86.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/lib/Driver/ToolChains/Arch/X86.cpp
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Driver/ToolChains/Arch/X86.cpp
@@ -114,8 +114,8 @@ std::string x86::getX86TargetCPU(const D
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/clang/lib/Driver/ToolChains/Arch/X86.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang/lib/Driver/ToolChains/Arch/X86.cpp
@@ -111,8 +111,8 @@ std::string x86::getX86TargetCPU(const D
case llvm::Triple::FreeBSD:
return "i686";
default:

View File

@ -4,42 +4,42 @@
clang/tools/clang-format/clang-format.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format-diff.py
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format-diff.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487.orig/clang/tools/clang-format/clang-format-diff.py
+++ llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format-diff.py
@@ -63,7 +63,7 @@ def main():
'fallback in case clang-format is invoked with'
'-style=file, but can not find the .clang-format'
'file to use.')
- parser.add_argument('-binary', default='clang-format',
+ parser.add_argument('-binary', default='clang-format-16',
help='location of binary to use for clang-format')
args = parser.parse_args()
Index: llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format.el
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/tools/clang-format/clang-format-diff.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format-diff.py
@@ -92,7 +92,7 @@ def main():
)
parser.add_argument(
"-binary",
- default="clang-format",
+ default="clang-format-17",
help="location of binary to use for clang-format",
)
args = parser.parse_args()
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format.el
===================================================================
--- llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487.orig/clang/tools/clang-format/clang-format.el
+++ llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format.el
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/tools/clang-format/clang-format.el
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format.el
@@ -37,7 +37,7 @@
:group 'tools)
(defcustom clang-format-executable
- (or (executable-find "clang-format")
+ (or (executable-find "clang-format-16")
+ (or (executable-find "clang-format-17")
"clang-format")
"Location of the clang-format executable.
Index: llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format.py
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487.orig/clang/tools/clang-format/clang-format.py
+++ llvm-toolchain-snapshot_16~++20220407011631+46f0e2ceb487/clang/tools/clang-format/clang-format.py
@@ -48,7 +48,7 @@ import vim
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang/tools/clang-format/clang-format.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang/tools/clang-format/clang-format.py
@@ -49,7 +49,7 @@ import vim
# set g:clang_format_path to the path to clang-format if it is not on the path
# Change this to the full path if clang-format is not on the path.
-binary = 'clang-format'
+binary = 'clang-format-16'
-binary = "clang-format"
+binary = "clang-format-17"
if vim.eval('exists("g:clang_format_path")') == "1":
binary = vim.eval('g:clang_format_path')
binary = vim.eval("g:clang_format_path")

View File

@ -1,15 +1,19 @@
Index: llvm-toolchain-snapshot_16~++20220525112612+8919447c71ab/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
===================================================================
--- llvm-toolchain-snapshot_16~++20220525112612+8919447c71ab.orig/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ llvm-toolchain-snapshot_16~++20220525112612+8919447c71ab/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -225,8 +225,10 @@ def main():
action='store_true', help='allow alpha checkers from '
'clang-analyzer.')
parser.add_argument('-clang-tidy-binary', metavar='PATH',
+ default='clang-tidy-16',
help='path to clang-tidy binary')
parser.add_argument('-clang-apply-replacements-binary', metavar='PATH',
+ default='clang-apply-replacements-16',
help='path to clang-apply-replacements binary')
parser.add_argument('-checks', default=None,
help='checks filter, when not specified, use clang-tidy '
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -256,10 +256,13 @@ def main():
help="allow alpha checkers from " "clang-analyzer.",
)
parser.add_argument(
- "-clang-tidy-binary", metavar="PATH", help="path to clang-tidy binary"
+ "-clang-tidy-binary", metavar="PATH",
+ default='clang-tidy-17',
+ help="path to clang-tidy binary"
)
parser.add_argument(
"-clang-apply-replacements-binary",
+ default='clang-apply-replacements-17',
metavar="PATH",
help="path to clang-apply-replacements binary",
)

View File

@ -1,7 +1,7 @@
Index: llvm-toolchain-snapshot_16~++20230120073736+259fa70885e9/clang-tools-extra/clangd/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang-tools-extra/clangd/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20230120073736+259fa70885e9.orig/clang-tools-extra/clangd/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20230120073736+259fa70885e9/clang-tools-extra/clangd/CMakeLists.txt
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/clang-tools-extra/clangd/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/clang-tools-extra/clangd/CMakeLists.txt
@@ -61,6 +61,11 @@ endif()
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}/../clang-tidy")
include_directories(BEFORE "${CMAKE_CURRENT_SOURCE_DIR}/../include-cleaner/include")
@ -14,7 +14,7 @@ Index: llvm-toolchain-snapshot_16~++20230120073736+259fa70885e9/clang-tools-extr
add_clang_library(clangDaemon
AST.cpp
ASTSignals.cpp
@@ -177,6 +182,7 @@ clang_target_link_libraries(clangDaemon
@@ -178,6 +183,7 @@ clang_target_link_libraries(clangDaemon
target_link_libraries(clangDaemon
PRIVATE
${LLVM_PTHREAD_LIB}

View File

@ -1,10 +1,10 @@
add option to disable compiler-rt scudo standalone allocator as it is
not always supported by all arch profiles such as arm5vt of ARM32 arch
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/compiler-rt/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/compiler-rt/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/compiler-rt/CMakeLists.txt
@@ -271,6 +271,12 @@ option(COMPILER_RT_USE_BUILTINS_LIBRARY
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/compiler-rt/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/CMakeLists.txt
@@ -303,6 +303,12 @@ option(COMPILER_RT_USE_BUILTINS_LIBRARY
include(config-ix)

View File

@ -1,10 +1,10 @@
fix builtins armhf default arch detection by adding the same armhf triple
handling use for compiler-rt
Index: llvm-toolchain-snapshot_16~++20221115104007+a853c42a6a5e/compiler-rt/lib/builtins/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20221115104007+a853c42a6a5e.orig/compiler-rt/lib/builtins/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20221115104007+a853c42a6a5e/compiler-rt/lib/builtins/CMakeLists.txt
@@ -29,6 +29,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/compiler-rt/lib/builtins/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
@@ -36,6 +36,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
load_llvm_config()
endif()
construct_compiler_rt_default_triple()

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
===================================================================
--- llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415.orig/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -304,8 +304,8 @@ bool PerfJITEventListener::InitDebugging
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -303,8 +303,8 @@ bool PerfJITEventListener::InitDebugging
// search for location to dump data to
if (const char *BaseDir = getenv("JITDUMPDIR"))
Path.append(BaseDir);

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_14~++20211105102832+020ca1747d6c/llvm/unittests/Support/Path.cpp
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/unittests/Support/Path.cpp
===================================================================
--- llvm-toolchain-snapshot_14~++20211105102832+020ca1747d6c.orig/llvm/unittests/Support/Path.cpp
+++ llvm-toolchain-snapshot_14~++20211105102832+020ca1747d6c/llvm/unittests/Support/Path.cpp
@@ -677,7 +677,7 @@ protected:
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/unittests/Support/Path.cpp
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/unittests/Support/Path.cpp
@@ -679,7 +679,7 @@ protected:
sys::path::append(NonExistantFile, "1B28B495C16344CB9822E588CD4C3EF0");
}
@ -11,7 +11,7 @@ Index: llvm-toolchain-snapshot_14~++20211105102832+020ca1747d6c/llvm/unittests/S
};
TEST_F(FileSystemTest, Unique) {
@@ -761,7 +761,8 @@ TEST_F(FileSystemTest, RealPath) {
@@ -763,7 +763,8 @@ TEST_F(FileSystemTest, RealPath) {
// This can fail if $HOME is not set and getpwuid fails.
bool Result = llvm::sys::path::home_directory(HomeDir);
@ -21,7 +21,7 @@ Index: llvm-toolchain-snapshot_14~++20211105102832+020ca1747d6c/llvm/unittests/S
checkSeparators(HomeDir);
ASSERT_NO_ERROR(fs::real_path(HomeDir, Expected));
checkSeparators(Expected);
@@ -770,6 +771,7 @@ TEST_F(FileSystemTest, RealPath) {
@@ -772,6 +773,7 @@ TEST_F(FileSystemTest, RealPath) {
ASSERT_NO_ERROR(fs::real_path("~/", Actual, true));
EXPECT_EQ(Expected, Actual);
}

View File

@ -1,13 +1,13 @@
Index: llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c/llvm/include/llvm/TargetParser/X86TargetParser.def
Index: llvm-toolchain-snapshot_17~++20230705085103+4ef04876ef17/llvm/lib/TargetParser/X86TargetParser.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c.orig/llvm/include/llvm/TargetParser/X86TargetParser.def
+++ llvm-toolchain-snapshot_16~++20221220013513+bb7940e25f6c/llvm/include/llvm/TargetParser/X86TargetParser.def
@@ -249,7 +249,7 @@ CPU_SPECIFIC("pentium_mmx", "pentium-mmx
CPU_SPECIFIC("pentium_ii", "pentium2", 'E', "+cmov,+mmx")
CPU_SPECIFIC("pentium_iii", "pentium3", 'H', "+cmov,+mmx,+sse")
CPU_SPECIFIC_ALIAS("pentium_iii_no_xmm_regs", "pentium3", "pentium_iii")
-CPU_SPECIFIC("pentium_4", "pentium4", 'J', "+cmov,+mmx,+sse,+sse2")
+CPU_SPECIFIC("pentium_4", "pentium4", 'J', "+cmov,+mmx,+sse")
CPU_SPECIFIC("pentium_m", "pentium-m", 'K', "+cmov,+mmx,+sse,+sse2")
CPU_SPECIFIC("pentium_4_sse3", "prescott", 'L', "+cmov,+mmx,+sse,+sse2,+sse3")
CPU_SPECIFIC("core_2_duo_ssse3", "core2", 'M', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3")
--- llvm-toolchain-snapshot_17~++20230705085103+4ef04876ef17.orig/llvm/lib/TargetParser/X86TargetParser.cpp
+++ llvm-toolchain-snapshot_17~++20230705085103+4ef04876ef17/llvm/lib/TargetParser/X86TargetParser.cpp
@@ -132,7 +132,7 @@ constexpr FeatureBitset FeaturesPentium2
constexpr FeatureBitset FeaturesPentium3 = FeaturesPentium2 | FeatureSSE;
// Pentium 4 CPUs
-constexpr FeatureBitset FeaturesPentium4 = FeaturesPentium3 | FeatureSSE2;
+constexpr FeatureBitset FeaturesPentium4 = FeaturesPentium3;
constexpr FeatureBitset FeaturesPrescott = FeaturesPentium4 | FeatureSSE3;
constexpr FeatureBitset FeaturesNocona =
FeaturesPrescott | Feature64BIT | FeatureCMPXCHG16B;

View File

@ -1,12 +1,12 @@
Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/llvm/utils/lit/lit/Test.py
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/utils/lit/lit/Test.py
===================================================================
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/llvm/utils/lit/lit/Test.py
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/llvm/utils/lit/lit/Test.py
@@ -52,7 +52,7 @@ XFAIL = ResultCode('XFAIL',
UNRESOLVED = ResultCode('UNRESOLVED', 'Unresolved', True)
TIMEOUT = ResultCode('TIMEOUT', 'Timed Out', True)
FAIL = ResultCode('FAIL', 'Failed', True)
-XPASS = ResultCode('XPASS', 'Unexpectedly Passed', True)
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/llvm/utils/lit/lit/Test.py
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/utils/lit/lit/Test.py
@@ -52,7 +52,7 @@ XFAIL = ResultCode("XFAIL", "Expectedly
UNRESOLVED = ResultCode("UNRESOLVED", "Unresolved", True)
TIMEOUT = ResultCode("TIMEOUT", "Timed Out", True)
FAIL = ResultCode("FAIL", "Failed", True)
-XPASS = ResultCode("XPASS", "Unexpectedly Passed", True)
+XPASS = ResultCode('XPASS', 'Unexpectedly Passed', False)

View File

@ -1,12 +1,12 @@
Index: llvm-toolchain-snapshot_16~++20200326162000+4673699a470/clang/tools/scan-view/bin/scan-view
Index: llvm-toolchain-snapshot_17~++20200326172000+4673699a470/clang/tools/scan-view/bin/scan-view
===================================================================
--- llvm-toolchain-snapshot_16~++20200326162000+4673699a470.orig/clang/tools/scan-view/bin/scan-view
+++ llvm-toolchain-snapshot_16~++20200326162000+4673699a470/clang/tools/scan-view/bin/scan-view
--- llvm-toolchain-snapshot_17~++20200326172000+4673699a470.orig/clang/tools/scan-view/bin/scan-view
+++ llvm-toolchain-snapshot_17~++20200326172000+4673699a470/clang/tools/scan-view/bin/scan-view
@@ -28,6 +28,7 @@ kDefaultPort = 8181
kMaxPortsToTry = 100
###
+BASE_DIR = '/usr/share/clang/scan-view-16'
+BASE_DIR = '/usr/share/clang/scan-view-17'
def url_is_up(url):

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-16_16.0.0~+rc4/compiler-rt/lib/builtins/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- llvm-toolchain-16_16.0.0~+rc4.orig/compiler-rt/lib/builtins/CMakeLists.txt
+++ llvm-toolchain-16_16.0.0~+rc4/compiler-rt/lib/builtins/CMakeLists.txt
@@ -750,6 +750,12 @@ else ()
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/compiler-rt/lib/builtins/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
@@ -765,6 +765,12 @@ else ()
append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full BUILTIN_CFLAGS)
endif()

View File

@ -1,7 +1,7 @@
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Basic/FileManager.cpp
Index: llvm-toolchain-snapshot_17~++20230309125305+68367141dd91/clang/lib/Basic/FileManager.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/clang/lib/Basic/FileManager.cpp
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Basic/FileManager.cpp
--- llvm-toolchain-snapshot_17~++20230309125305+68367141dd91.orig/clang/lib/Basic/FileManager.cpp
+++ llvm-toolchain-snapshot_17~++20230309125305+68367141dd91/clang/lib/Basic/FileManager.cpp
@@ -610,6 +610,12 @@ FileManager::getNoncachedStatValue(Strin
return std::error_code();
}
@ -15,10 +15,10 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/clang/lib/Basic/
void FileManager::GetUniqueIDMapping(
SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
UIDToFiles.clear();
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/lldb/include/lldb/lldb-defines.h
Index: llvm-toolchain-snapshot_17~++20230309125305+68367141dd91/lldb/include/lldb/lldb-defines.h
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/lldb/include/lldb/lldb-defines.h
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/lldb/include/lldb/lldb-defines.h
--- llvm-toolchain-snapshot_17~++20230309125305+68367141dd91.orig/lldb/include/lldb/lldb-defines.h
+++ llvm-toolchain-snapshot_17~++20230309125305+68367141dd91/lldb/include/lldb/lldb-defines.h
@@ -15,6 +15,11 @@
#define INT32_MAX 2147483647
#endif
@ -31,19 +31,3 @@ Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/lldb/include/lld
#if !defined(UINT32_MAX)
#define UINT32_MAX 4294967295U
#endif
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/polly/lib/External/ppcg/cuda_common.c
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/polly/lib/External/ppcg/cuda_common.c
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/polly/lib/External/ppcg/cuda_common.c
@@ -15,6 +15,11 @@
#include "cuda_common.h"
#include "ppcg.h"
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
/* Open the host .cu file and the kernel .hu and .cu files for writing.
* Add the necessary includes.
*/

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/mlir/lib/ExecutionEngine/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/mlir/lib/ExecutionEngine/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/mlir/lib/ExecutionEngine/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/mlir/lib/ExecutionEngine/CMakeLists.txt
@@ -56,7 +56,7 @@ endif(LLVM_USE_PERF)
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/mlir/lib/ExecutionEngine/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/mlir/lib/ExecutionEngine/CMakeLists.txt
@@ -57,7 +57,7 @@ endif(LLVM_USE_PERF)
add_mlir_library(MLIRExecutionEngine
ExecutionEngine.cpp

View File

@ -0,0 +1,11 @@
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -196,7 +196,7 @@
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libclang.map)
set_target_properties(libclang PROPERTIES
- VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}
+ VERSION ${LLVM_VERSION_MAJOR}
${LIBCLANG_SOVERSION_ARG})
endif()
endif()

View File

@ -1,10 +1,10 @@
set rpath for prepare_builtins build utility to find correct stage2
libs at runtime when executed as part of a build
Index: llvm-toolchain-snapshot_16~++20221123082119+16bf359a3faa/libclc/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/libclc/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20221123082119+16bf359a3faa.orig/libclc/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20221123082119+16bf359a3faa/libclc/CMakeLists.txt
@@ -115,6 +115,9 @@ add_llvm_executable( prepare_builtins ut
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/libclc/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/libclc/CMakeLists.txt
@@ -121,6 +121,9 @@ add_llvm_executable( prepare_builtins ut
target_compile_definitions( prepare_builtins PRIVATE ${LLVM_VERSION_DEFINE} )
# These were not properly reported in early LLVM and we don't need them
target_compile_options( prepare_builtins PRIVATE -fno-rtti -fno-exceptions )

View File

@ -20,16 +20,16 @@ Differential Revision: https://reviews.llvm.org/D124227
libcxx/include/__support/solaris/xlocale.h | 55 +++++++++++-----------
4 files changed, 67 insertions(+), 75 deletions(-)
Index: llvm-toolchain-16-16.0.6/libcxx/include/__support/musl/xlocale.h
Index: llvm-toolchain-15_15.0.6~++20230102020141+088f33605d8a/libcxx/include/__support/musl/xlocale.h
===================================================================
--- llvm-toolchain-16-16.0.6.orig/libcxx/include/__support/musl/xlocale.h
+++ llvm-toolchain-16-16.0.6/libcxx/include/__support/musl/xlocale.h
@@ -37,7 +37,7 @@ inline _LIBCPP_HIDE_FROM_ABI_C long long
--- llvm-toolchain-15_15.0.6~++20230102020141+088f33605d8a.orig/libcxx/include/__support/musl/xlocale.h
+++ llvm-toolchain-15_15.0.6~++20230102020141+088f33605d8a/libcxx/include/__support/musl/xlocale.h
@@ -39,7 +39,7 @@ wcstoll_l(const wchar_t *__nptr, wchar_t
return ::wcstoll(__nptr, __endptr, __base);
}
-inline _LIBCPP_HIDE_FROM_ABI_C long long wcstoull_l(const wchar_t* __nptr, wchar_t** __endptr, int __base, locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI_C unsigned long long wcstoull_l(const wchar_t* __nptr, wchar_t** __endptr, int __base, locale_t) {
-inline _LIBCPP_HIDE_FROM_ABI long long
+inline _LIBCPP_HIDE_FROM_ABI unsigned long long
wcstoull_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
return ::wcstoull(__nptr, __endptr, __base);
}

View File

@ -1,18 +1,17 @@
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/include/atomic
Index: llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d/libcxx/include/__atomic/aliases.h
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/libcxx/include/atomic
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/include/atomic
@@ -2640,9 +2640,13 @@ typedef conditional<_LIBCPP_CONTENTION_L
--- llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d.orig/libcxx/include/__atomic/aliases.h
+++ llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d/libcxx/include/__atomic/aliases.h
@@ -107,9 +107,12 @@ using __libcpp_unsigned_lock_free = __co
#endif
#if !defined(_LIBCPP_NO_LOCK_FREE_TYPES)
+#ifndef NO_LOCK_FREE
typedef atomic<__libcpp_signed_lock_free> atomic_signed_lock_free;
typedef atomic<__libcpp_unsigned_lock_free> atomic_unsigned_lock_free;
using atomic_signed_lock_free = atomic<__libcpp_signed_lock_free>;
using atomic_unsigned_lock_free = atomic<__libcpp_unsigned_lock_free>;
#endif
+#endif
+
+#undef NO_LOCK_FREE
#define ATOMIC_FLAG_INIT {false}
#define ATOMIC_VAR_INIT(__v) {__v}
_LIBCPP_END_NAMESPACE_STD

View File

@ -1,9 +1,9 @@
if libatomic is found only link it if libgcc is the rtlib
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxx/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/libcxx/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/CMakeLists.txt
@@ -777,12 +777,14 @@ function(cxx_link_system_libraries targe
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/libcxx/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxx/CMakeLists.txt
@@ -707,12 +707,14 @@ function(cxx_link_system_libraries targe
endif()
elseif (LIBCXX_HAS_GCC_LIB)
target_link_libraries(${target} PRIVATE gcc)

View File

@ -1,7 +1,7 @@
Index: llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678.orig/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
+++ llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
--- llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50.orig/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50/libcxx/test/std/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp
@@ -8,6 +8,7 @@
//
// UNSUPPORTED: no-threads
@ -10,15 +10,15 @@ Index: llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678/libcxx/test/std/
// <condition_variable>
Index: llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678.orig/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
+++ llvm-toolchain-snapshot_15~++20220530092849+bcf3d5248678/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
@@ -11,7 +11,7 @@
--- llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50.orig/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230328075740+568be31c9e50/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
@@ -10,7 +10,7 @@
// UNSUPPORTED: c++03, c++11
// ALLOW_RETRIES: 2
// dylib support for shared_mutex was added in macosx10.12
-// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11}}
-// XFAIL: availability-shared_mutex-missing
+// XFAIL: *
// <shared_mutex>

View File

@ -1,7 +1,7 @@
Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365.orig/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
+++ llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
--- llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83.orig/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
@@ -11,6 +11,8 @@
// template<class RealType, size_t bits, class URNG>
// RealType generate_canonical(URNG& g);
@ -11,10 +11,10 @@ Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/
#include <random>
#include <cassert>
Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/re/re.traits/isctype.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/re/re.traits/isctype.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365.orig/libcxx/test/std/re/re.traits/isctype.pass.cpp
+++ llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/re/re.traits/isctype.pass.cpp
--- llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83.orig/libcxx/test/std/re/re.traits/isctype.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/re/re.traits/isctype.pass.cpp
@@ -12,6 +12,7 @@
// bool isctype(charT c, char_class_type f) const;
@ -23,23 +23,23 @@ Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/
#include <regex>
#include <cassert>
Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxxabi/test/catch_multi_level_pointer.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxxabi/test/catch_multi_level_pointer.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365.orig/libcxxabi/test/catch_multi_level_pointer.pass.cpp
+++ llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxxabi/test/catch_multi_level_pointer.pass.cpp
--- llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83.orig/libcxxabi/test/catch_multi_level_pointer.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxxabi/test/catch_multi_level_pointer.pass.cpp
@@ -11,6 +11,8 @@
// 1b00fc5d8133 made it in the dylib in macOS 10.11
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10}}
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10}}
+// XFAIL: *
+
#include <cassert>
#include <cstdio>
#include <cstdlib>
Index: llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365.orig/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
+++ llvm-toolchain-snapshot_16~++20220911073400+c3c930d57365/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
--- llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83.orig/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230330020402+b0c892296b83/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/construct.pass.cpp
@@ -15,6 +15,8 @@
// template <class T, class... Args> void construct(T* p, Args&&... args);

View File

@ -10,11 +10,11 @@ To set instruction support one can check __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 defi
Bug: https://llvm.org/bugs/show_bug.cgi?id=19355
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
@@ -17,6 +17,14 @@
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
@@ -18,6 +18,14 @@
#include "test_macros.h"

View File

@ -1,9 +1,9 @@
if LIBCXXABI_USE_COMPILER_RT=ON, add builtins to libcxxabi library
flags, otherwise add libgcc following how libunwind does the same
Index: llvm-toolchain-snapshot_15~++20220517092516+a09af8669396/libcxxabi/src/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d/libcxxabi/src/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_15~++20220517092516+a09af8669396.orig/libcxxabi/src/CMakeLists.txt
+++ llvm-toolchain-snapshot_15~++20220517092516+a09af8669396/libcxxabi/src/CMakeLists.txt
--- llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d.orig/libcxxabi/src/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230222041723+465ee9bfb26d/libcxxabi/src/CMakeLists.txt
@@ -77,7 +77,9 @@ else()
add_library_flags_if(LIBCXXABI_HAS_C_LIB c)
endif()

View File

@ -2,11 +2,11 @@ Powerpc has extended double that doesn't match x86 coding. Power format would
need special tests to verify correctness but for now it is enough to prevent
incorrect test from running.
Index: llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415/libcxxabi/test/test_demangle.pass.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxxabi/test/test_demangle.pass.cpp
===================================================================
--- llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415.orig/libcxxabi/test/test_demangle.pass.cpp
+++ llvm-toolchain-snapshot_14~++20211114120952+5b4bfd8c2415/libcxxabi/test/test_demangle.pass.cpp
@@ -29902,7 +29902,7 @@ const char* invalid_cases[] =
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/libcxxabi/test/test_demangle.pass.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/libcxxabi/test/test_demangle.pass.cpp
@@ -30163,7 +30163,7 @@ const char* invalid_cases[] =
"NSoERj5E=Y1[uM:ga",
"Aon_PmKVPDk7?fg4XP5smMUL6;<WsI_mgbf23cCgsHbT<l8EE\0uVRkNOoXDrgdA4[8IU>Vl<>IL8ayHpiVDDDXTY;^o9;i",
"_ZNSt16allocator_traitsISaIN4llvm3sys2fs18directory_iteratorEEE9constructIS3_IS3_EEEDTcl12_S_constructfp_fp0_spcl7forwardIT0_Efp1_EEERS4_PT_DpOS7_",

View File

@ -0,0 +1,22 @@
# DP: Add another #undef for _TIME_BITS
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp
@@ -11,6 +11,7 @@
// Before Solaris 11.4, <procfs.h> doesn't work in a largefile environment.
#undef _FILE_OFFSET_BITS
+#undef _TIME_BITS
#include "sanitizer_platform.h"
#if SANITIZER_SOLARIS
# include <fcntl.h>
#--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
#+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
#@@ -18,6 +18,7 @@
# // depends on _FILE_OFFSET_BITS setting.
# // To get this "true" dirent definition, we undefine _FILE_OFFSET_BITS below.
# #undef _FILE_OFFSET_BITS
#+#undef _TIME_BITS
# #endif
#
# // Must go after undef _FILE_OFFSET_BITS.

View File

@ -1,7 +1,8 @@
diff --git a/clang/cmake/modules/AddGRPC.cmake b/clang/cmake/modules/AddGRPC.cmake
--- a/clang/cmake/modules/AddGRPC.cmake
+++ b/clang/cmake/modules/AddGRPC.cmake
@@ -4,8 +4,13 @@
Index: llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/clang/cmake/modules/AddGRPC.cmake
===================================================================
--- llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55.orig/clang/cmake/modules/AddGRPC.cmake
+++ llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/clang/cmake/modules/AddGRPC.cmake
@@ -4,8 +4,13 @@ function(generate_clang_protos_library L
# Take the first two args and forward the remaining to generate_proto_sources.
cmake_parse_arguments(PARSE_ARGV 2 PROTO "" "" "")
generate_proto_sources(ProtoSource ${ProtoFile} ${PROTO_UNPARSED_ARGUMENTS})
@ -16,10 +17,11 @@ diff --git a/clang/cmake/modules/AddGRPC.cmake b/clang/cmake/modules/AddGRPC.cma
+ LINK_LIBS PUBLIC ${LINKED_GRPC_LIBRARIES})
+
endfunction()
diff --git a/cmake/Modules/FindGRPC.cmake b/cmake/Modules/FindGRPC.cmake
--- a/cmake/Modules/FindGRPC.cmake
+++ b/cmake/Modules/FindGRPC.cmake
@@ -82,11 +82,28 @@
Index: llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/cmake/Modules/FindGRPC.cmake
===================================================================
--- llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55.orig/cmake/Modules/FindGRPC.cmake
+++ llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/cmake/Modules/FindGRPC.cmake
@@ -82,11 +82,28 @@ else()
endif()
endif()
if(NOT TARGET grpc++)

View File

@ -12,11 +12,11 @@ which could then break something else.
This probably should have upstream bug but I couldn't find any existing report.
Index: llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416.orig/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -34,6 +34,7 @@
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -33,6 +33,7 @@
#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/ScopedPrinter.h"
@ -24,7 +24,7 @@ Index: llvm-toolchain-snapshot_16~++20211116120952+5b4bfd8c2416/lldb/source/Plug
#include "ProcessGDBRemoteLog.h"
@@ -42,7 +43,7 @@
@@ -41,7 +42,7 @@
#elif defined(_WIN32)
#define DEBUGSERVER_BASENAME "lldb-server.exe"
#else

View File

@ -1,7 +1,7 @@
Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/tools/argdumper/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/tools/argdumper/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/lldb/tools/argdumper/CMakeLists.txt
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/tools/argdumper/CMakeLists.txt
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/lldb/tools/argdumper/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/tools/argdumper/CMakeLists.txt
@@ -6,3 +6,6 @@ add_lldb_tool(lldb-argdumper ADD_TO_FRAM
)
@ -9,11 +9,11 @@ Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/tools/argdu
+
+install(TARGETS lldb-argdumper
+ RUNTIME DESTINATION bin)
Index: llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/tools/lldb-server/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/tools/lldb-server/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/lldb/tools/lldb-server/CMakeLists.txt
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/tools/lldb-server/CMakeLists.txt
@@ -66,3 +66,7 @@ add_dependencies(lldb-server
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/lldb/tools/lldb-server/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/tools/lldb-server/CMakeLists.txt
@@ -68,3 +68,7 @@ add_dependencies(lldb-server
)
target_include_directories(lldb-server PRIVATE "${LLDB_SOURCE_DIR}/source")
target_link_libraries(lldb-server PRIVATE ${LLDB_SYSTEM_LIBS})

View File

@ -2,11 +2,11 @@
lldb/source/API/CMakeLists.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Index: llvm-toolchain-snapshot_14~++20220119063448+5fa826f4e284/lldb/source/API/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/lldb/source/API/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_14~++20220119063448+5fa826f4e284.orig/lldb/source/API/CMakeLists.txt
+++ llvm-toolchain-snapshot_14~++20220119063448+5fa826f4e284/lldb/source/API/CMakeLists.txt
@@ -15,7 +15,12 @@ if(LLDB_ENABLE_LUA)
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/lldb/source/API/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/lldb/source/API/CMakeLists.txt
@@ -20,7 +20,12 @@ if(LLDB_ENABLE_LUA)
set(lldb_lua_wrapper ${lua_bindings_dir}/LLDBWrapLua.cpp)
endif()
@ -20,7 +20,7 @@ Index: llvm-toolchain-snapshot_14~++20220119063448+5fa826f4e284/lldb/source/API/
SBAddress.cpp
SBAttachInfo.cpp
SBBlock.cpp
@@ -158,7 +163,7 @@ endif()
@@ -164,7 +169,7 @@ endif()
set_target_properties(liblldb
PROPERTIES
@ -29,7 +29,7 @@ Index: llvm-toolchain-snapshot_14~++20220119063448+5fa826f4e284/lldb/source/API/
)
target_compile_definitions(liblldb PRIVATE LLDB_IN_LIBLLDB)
@@ -178,12 +183,12 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windo
@@ -184,12 +189,12 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windo
set_target_properties(liblldb_exports PROPERTIES FOLDER "lldb misc")
endif()

View File

@ -1,11 +1,11 @@
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2023-01-19
Index: llvm-toolchain-15-15.0.6/lldb/bindings/python/get-python-config.py
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/bindings/python/get-python-config.py
===================================================================
--- llvm-toolchain-15-15.0.6.orig/lldb/bindings/python/get-python-config.py
+++ llvm-toolchain-15-15.0.6/lldb/bindings/python/get-python-config.py
@@ -15,6 +15,7 @@
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/lldb/bindings/python/get-python-config.py
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/bindings/python/get-python-config.py
@@ -15,6 +15,7 @@ def relpath_nodots(path, base):
return rel
def main():
@ -13,7 +13,7 @@ Index: llvm-toolchain-15-15.0.6/lldb/bindings/python/get-python-config.py
parser = argparse.ArgumentParser(description="extract cmake variables from python")
parser.add_argument("variable_name")
args = parser.parse_args()
@@ -31,7 +32,19 @@
@@ -31,7 +32,19 @@ def main():
# If not, you'll have to use lldb -P or lldb -print-script-interpreter-info
# to figure out where it is.
try:
@ -34,11 +34,11 @@ Index: llvm-toolchain-15-15.0.6/lldb/bindings/python/get-python-config.py
except ValueError:
# Try to fall back to something reasonable if sysconfig's platlib
# is outside of sys.prefix
Index: llvm-toolchain-15-15.0.6/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
===================================================================
--- llvm-toolchain-15-15.0.6.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ llvm-toolchain-15-15.0.6/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -238,6 +238,7 @@
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -240,6 +240,7 @@ void ScriptInterpreterPython::ComputePyt
// the real python interpreter uses. (e.g. lib for most, lib64 on RHEL
// x86_64, or bin on Windows).
llvm::sys::path::remove_filename(path);

View File

@ -1,10 +1,10 @@
remove regex anchor in lld linker detection to account for vendor, if
specified, being prepended to lld version string
Index: llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8/llvm/cmake/modules/AddLLVM.cmake
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8.orig/llvm/cmake/modules/AddLLVM.cmake
+++ llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8/llvm/cmake/modules/AddLLVM.cmake
@@ -217,7 +217,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/cmake/modules/AddLLVM.cmake
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/cmake/modules/AddLLVM.cmake
@@ -233,7 +233,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND
set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
set(LLVM_LINKER_IS_GOLD YES CACHE INTERNAL "")
message(STATUS "Linker detection: GNU Gold")

View File

@ -1,10 +1,10 @@
add a check and only set up and build compiler-rt builtins if they have
not been disabled
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/runtimes/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/llvm/runtimes/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/runtimes/CMakeLists.txt
@@ -124,7 +124,12 @@ endfunction()
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/llvm/runtimes/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/runtimes/CMakeLists.txt
@@ -129,7 +129,12 @@ endfunction()
# is required because the other runtimes need the builtin libraries present
# before the just-built compiler can pass the configuration tests.
get_compiler_rt_path(compiler_rt_path)

View File

@ -1,8 +1,8 @@
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/CMakeLists.txt
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/llvm/CMakeLists.txt
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/CMakeLists.txt
@@ -811,8 +811,8 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/CMakeLists.txt
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/CMakeLists.txt
@@ -843,8 +843,8 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
"Profiling data file to use when compiling in order to improve runtime performance.")
if(LLVM_INCLUDE_TESTS)

53
debian/patches/mips/D154390-pre-R6.diff vendored Normal file
View File

@ -0,0 +1,53 @@
see https://reviews.llvm.org/D158491, still unreviewed upstream
--- a/compiler-rt/lib/interception/interception.h
+++ b/compiler-rt/lib/interception/interception.h
@@ -199,8 +199,9 @@
".type " SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", %function\n" \
SANITIZER_STRINGIFY(TRAMPOLINE(func)) ":\n" \
SANITIZER_STRINGIFY(CFI_STARTPROC) "\n" \
- SANITIZER_STRINGIFY(ASM_TAIL_CALL) " __interceptor_" \
- SANITIZER_STRINGIFY(ASM_PREEMPTIBLE_SYM(func)) "\n" \
+ C_ASM_TAIL_CALL(SANITIZER_STRINGIFY(TRAMPOLINE(func)), \
+ "__interceptor_" \
+ SANITIZER_STRINGIFY(ASM_PREEMPTIBLE_SYM(func))) "\n" \
SANITIZER_STRINGIFY(CFI_ENDPROC) "\n" \
".size " SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", " \
".-" SANITIZER_STRINGIFY(TRAMPOLINE(func)) "\n" \
--- a/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
@@ -44,6 +44,8 @@
#if defined(__x86_64__) || defined(__i386__) || defined(__sparc__)
# define ASM_TAIL_CALL jmp
+#elif defined(__mips__) && __mips_isa_rev >= 6
+# define ASM_TAIL_CALL bc
#elif defined(__arm__) || defined(__aarch64__) || defined(__mips__) || \
defined(__powerpc__) || defined(__loongarch_lp64)
# define ASM_TAIL_CALL b
@@ -53,6 +55,25 @@
# define ASM_TAIL_CALL tail
#endif
+#if defined(__mips64) && __mips_isa_rev < 6
+# define C_ASM_TAIL_CALL(tfunc, ifunc) \
+ "lui $t8, %hi(%neg(%gp_rel(" tfunc ")))\n" \
+ "daddu $t8, $t8, $t9\n" \
+ "daddu $t8, $t8, %lo(%neg(%gp_rel(" tfunc ")))\n" \
+ "ld $t9, %got_disp(" ifunc ")($t8)\n" \
+ "jr $t9\n"
+#elif defined(__mips__) && __mips_isa_rev < 6
+# define C_ASM_TAIL_CALL(tfunc, ifunc) \
+ ".set noreorder\n" \
+ ".cpload $t9\n" \
+ ".set reorder\n" \
+ "lw $t9, %got(" ifunc ")($gp)\n" \
+ "jr $t9\n"
+#elif defined(ASM_TAIL_CALL)
+# define C_ASM_TAIL_CALL(tfunc, ifunc) \
+ SANITIZER_STRINGIFY(ASM_TAIL_CALL) " " ifunc
+#endif
+
#if defined(__ELF__) && defined(__x86_64__) || defined(__i386__) || \
defined(__riscv)
# define ASM_PREEMPTIBLE_SYM(sym) sym@plt

View File

@ -24,11 +24,11 @@ Differential Revision: https://reviews.llvm.org/D101773
2 files changed, 33 insertions(+)
create mode 100644 llvm/test/MC/Mips/mips_lo16.s
Index: llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/lib/MC/ELFObjectWriter.cpp
Index: llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/lib/MC/ELFObjectWriter.cpp
===================================================================
--- llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f.orig/llvm/lib/MC/ELFObjectWriter.cpp
+++ llvm-toolchain-snapshot_16~++20220920091612+a7d2409bac7f/llvm/lib/MC/ELFObjectWriter.cpp
@@ -1369,6 +1369,17 @@ bool ELFObjectWriter::shouldRelocateWith
--- llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d.orig/llvm/lib/MC/ELFObjectWriter.cpp
+++ llvm-toolchain-snapshot_17~++20230517015648+0b6264738f3d/llvm/lib/MC/ELFObjectWriter.cpp
@@ -1401,6 +1401,17 @@ bool ELFObjectWriter::shouldRelocateWith
if (TargetObjectWriter->getEMachine() == ELF::EM_MIPS &&
!hasRelocationAddend())
return true;

Some files were not shown because too many files have changed in this diff Show More