diff --git a/0026-Add-arch-restriction-for-BiSheng-Autotuner.patch b/0026-Add-arch-restriction-for-BiSheng-Autotuner.patch new file mode 100644 index 0000000000000000000000000000000000000000..50c6470e8faa77a265ccc7648b319eb084f45301 --- /dev/null +++ b/0026-Add-arch-restriction-for-BiSheng-Autotuner.patch @@ -0,0 +1,24 @@ +From 2513e90fd317bbe5854a06213e43cdf7029c3ee2 Mon Sep 17 00:00:00 2001 +From: liyunfei +Date: Tue, 5 Nov 2024 18:18:19 +0800 +Subject: [PATCH] Add arch restriction for BiSheng Autotuner + +BiSheng Autotuner only support x86_64 and aarch64 temporarily. + +Signed-off-by: liyunfei +--- + llvm/test/AutoTuning/lit.local.cfg | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/llvm/test/AutoTuning/lit.local.cfg b/llvm/test/AutoTuning/lit.local.cfg +index 13b4927257ab..c48c2c9eab6f 100644 +--- a/llvm/test/AutoTuning/lit.local.cfg ++++ b/llvm/test/AutoTuning/lit.local.cfg +@@ -1,2 +1,4 @@ + if not config.enable_enable_autotuner: + config.unsupported = True ++if config.host_arch not in ["x86", "X86", 'x86_64', 'aarch64']: ++ config.unsupported = True +\ No newline at end of file +-- +Gitee diff --git a/llvm.spec b/llvm.spec index 102beded42cc70e18132271c557ce6b47a32eab4..f3f937129c32e92dad560588dc2864c537a0a9a0 100644 --- a/llvm.spec +++ b/llvm.spec @@ -44,7 +44,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 20 +Release: 21 Summary: The Low Level Virtual Machine License: NCSA @@ -80,6 +80,7 @@ Patch22: 0022-Prevent-environment-variables-from-exceeding-NAME_MA.patch Patch23: 0023-AArch64-Support-HiSilicon-s-HIP09-Processor.patch Patch24: 0024-Backport-LoongArch-fix-and-add-some-new-support.patch Patch25: 0025-Backport-Simple-check-to-ignore-Inline-asm-fwait-insertion.patch +Patch26: 0026-Add-arch-restriction-for-BiSheng-Autotuner.patch BuildRequires: binutils-devel BuildRequires: cmake @@ -376,6 +377,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_includedir}/llvm-gmock %changelog +* Mon Nov 18 2024 liyunfei - 17.0.6-21 +- Add arch restriction for BiSheng Autotuner + * Mon Nov 18 2024 liyunfei - 17.0.6-20 - [Backport] Simple check to ignore Inline asm fwait insertion