!125 Add BiSheng Autotuner support

From: @liyunfei33 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
This commit is contained in:
openeuler-ci-bot 2024-07-20 05:03:29 +00:00 committed by Gitee
commit 130f0d4d67
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9925 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
%bcond_without check
%bcond_with classic_flang
%bcond_without toolchain_clang
%bcond_without bisheng_autotuner
%if %{with toolchain_clang}
%global toolchain clang
@ -43,7 +44,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
Release: 11
Release: 12
Summary: The Low Level Virtual Machine
License: NCSA
@ -75,6 +76,8 @@ Patch18: 0018-Fix-declaration-definition-mismatch-for-classic-flang.patch
Patch19: 0019-Backport-LoongArch-Improve-the-support-for-atomic-and-clear_cache.patch
Patch20: 0020-Update-llvm-lit-config-to-support-build_for_openeule.patch
Patch21: 0021-Add-BiSheng-Autotuner-support-for-LLVM-compiler.patch
BuildRequires: binutils-devel
BuildRequires: cmake
BuildRequires: gcc
@ -242,6 +245,9 @@ cd _build
%if "%{toolchain}" == "clang"
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
%endif
%if %{with bisheng_autotuner}
-DLLVM_ENABLE_AUTOTUNER=ON \
%endif
-DLLVM_INCLUDE_BENCHMARKS=OFF
%ninja_build LLVM
@ -365,6 +371,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build
%{install_includedir}/llvm-gmock
%changelog
* Tue Jul 16 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-12
- Add BiSheng Autotuner support.
* Fri Jul 5 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-11
- Add toolchain_clang build support