2022-08-25 22:51:41 +08:00
|
|
|
Name: pin-gcc-client
|
2023-02-26 22:49:00 +08:00
|
|
|
Version: 0.4.1
|
2024-04-10 17:34:04 +08:00
|
|
|
Release: 14
|
2022-08-25 22:51:41 +08:00
|
|
|
Summary: A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC.
|
2022-12-01 09:46:19 +08:00
|
|
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
2022-08-25 22:51:41 +08:00
|
|
|
URL: https://gitee.com/src-openeuler/pin-gcc-client
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++ gcc-plugin-devel cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
2023-08-07 16:19:59 +08:00
|
|
|
BuildRequires: mlir mlir-static mlir-devel llvm-devel llvm-test
|
2022-08-25 22:51:41 +08:00
|
|
|
Requires: gcc grpc protobuf
|
|
|
|
|
|
2023-03-07 11:17:54 +08:00
|
|
|
Patch1: 0001-Pin-gcc-client-BugFix-for-SwitchOp-change-it-to-term.patch
|
|
|
|
|
Patch2: 0002-Pin-gcc-client-Bugfix-for-GetFunctionById.patch
|
|
|
|
|
Patch3: 0003-Pin-gcc-client-Init-a-SimpleIPAPASS.patch
|
|
|
|
|
Patch4: 0004-Pin-gcc-client-Add-CGnodeOp.patch
|
|
|
|
|
Patch5: 0005-Pin-gcc-client-Add-support-for-decl-and-field-SetDec.patch
|
|
|
|
|
Patch6: 0006-Pin-gcc-client-Add-GetDeclType.patch
|
2023-03-15 10:22:56 +08:00
|
|
|
Patch7: 0007-Pin-gcc-client-Fix-VectorType.patch
|
|
|
|
|
Patch8: 0008-Pin-gcc-client-Fix-struct-self-contained-CallOp-Tree.patch
|
2023-03-25 16:28:21 +08:00
|
|
|
Patch9: 0009-Pin-gcc-client-Fix-TreeToValue-VAR_DECL-and-ARRAY_TY.patch
|
2023-08-07 16:19:59 +08:00
|
|
|
Patch10: 0010-PluginClient-Fix-the-bug-during-multi-process-compil.patch
|
|
|
|
|
Patch11: 0011-Pin-gcc-client-Adaptation-to-llvm15-mlir15-only-solv.patch
|
2023-08-07 16:21:41 +08:00
|
|
|
Patch12: 0012-Pin-gcc-client-Adaptation-to-gcc12-only-solves-the-b.patch
|
2024-04-10 16:47:44 +08:00
|
|
|
Patch13: 0013-pin-gcc-client-Add-DataFlow-APIs.patch
|
|
|
|
|
Patch14: 0014-PluginClient-Bugfix-for-semaphore-exception-and-port.patch
|
2024-04-10 17:34:04 +08:00
|
|
|
Patch15: 0015-MLIR17-Adaptation-to-llvm17-mlir17.patch
|
2023-03-07 11:17:54 +08:00
|
|
|
|
2022-08-25 22:51:41 +08:00
|
|
|
%description
|
|
|
|
|
A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-05-09 12:00:54 +08:00
|
|
|
%autosetup -p1
|
2023-03-07 11:17:54 +08:00
|
|
|
|
2023-08-22 15:50:43 +08:00
|
|
|
%build
|
2022-08-25 22:51:41 +08:00
|
|
|
mkdir -p _build
|
|
|
|
|
cd _build
|
2023-03-03 11:36:56 +08:00
|
|
|
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm
|
2022-08-25 22:51:41 +08:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd _build
|
|
|
|
|
%make_install
|
|
|
|
|
|
2023-03-06 14:54:00 +08:00
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
|
|
|
|
echo "{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
2023-08-07 16:23:14 +08:00
|
|
|
find %{buildroot} -type f -name "*.so" -exec strip "{}" ";"
|
2023-03-03 11:36:56 +08:00
|
|
|
|
2023-03-06 14:54:00 +08:00
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
2022-08-25 22:51:41 +08:00
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%attr(0755,root,root) %{_libdir}/libpin_gcc_client.so
|
2022-12-01 09:46:19 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRClientAPI.so
|
2024-04-10 17:34:04 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRClientAPI.so.17
|
2022-12-01 09:46:19 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so
|
2024-04-10 17:34:04 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.17
|
2022-09-28 15:49:13 +08:00
|
|
|
%attr(0644,root,root) %{_bindir}/pin-gcc-client.json
|
2023-03-06 14:54:00 +08:00
|
|
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
2022-08-25 22:51:41 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-04-10 17:34:04 +08:00
|
|
|
* Wed Apr 10 2024 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-14
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to llvm17/mlir17.
|
|
|
|
|
|
2024-04-10 16:47:44 +08:00
|
|
|
* Wed Apr 10 2024 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-13
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-gcc-client
|
|
|
|
|
|
2023-08-22 15:50:43 +08:00
|
|
|
* Tue Aug 22 2023 liyunfei <liyunfei33@huawei.com> - 0.4.1-12
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:FIX clang toolchain error
|
|
|
|
|
|
2023-08-07 16:23:14 +08:00
|
|
|
* Thu Aug 3 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-11
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:FIX STRIP problem
|
|
|
|
|
|
2023-08-07 16:21:41 +08:00
|
|
|
* Thu Aug 3 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-10
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to gcc12 only solves the build problem
|
|
|
|
|
|
2023-08-07 16:19:59 +08:00
|
|
|
* Thu Aug 3 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-9
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to llvm15/mlir15 only solves the build problem
|
|
|
|
|
|
2023-05-09 12:00:54 +08:00
|
|
|
* Tue May 09 2023 shenbowen <shenbowen@xfusion.com> - 0.4.1-8
|
|
|
|
|
- Type:SPEC
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify %patchxxx -p1 to %autosetup -p1
|
|
|
|
|
|
2023-04-06 16:28:17 +08:00
|
|
|
* Thu Apr 6 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-7
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix the bug during multi-process compilation
|
|
|
|
|
|
2023-03-25 16:28:21 +08:00
|
|
|
* Sat 25 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-6
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix TreeToValue-VAR_DECL and ARRAY_TYPE-getDomainIndex
|
|
|
|
|
|
2023-03-15 10:22:56 +08:00
|
|
|
* Fri Mar 17 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-5
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix VectorType CallOp TreeTOValue
|
|
|
|
|
|
2023-03-07 11:17:54 +08:00
|
|
|
* Tue Mar 7 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-4
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-gcc-client
|
|
|
|
|
|
2023-03-06 14:54:00 +08:00
|
|
|
* Mon Mar 6 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-3
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix RPATH problem by ld.so.conf.d
|
|
|
|
|
|
2023-03-03 11:36:56 +08:00
|
|
|
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-2
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix STRIP & RPATH
|
|
|
|
|
|
2023-02-26 22:49:00 +08:00
|
|
|
* Sun Feb 26 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-1
|
2023-02-22 16:16:32 +08:00
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2023-02-26 22:49:00 +08:00
|
|
|
- DESC:Update to v0.4.1
|
2023-02-22 16:16:32 +08:00
|
|
|
|
2022-12-20 17:18:15 +08:00
|
|
|
* Tue Dec 20 2022 zhaowenyu <804544223@qq.com> - 0.4.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.4.0
|
|
|
|
|
|
2022-12-08 21:26:02 +08:00
|
|
|
* Thu Dec 08 2022 benniaobufeijiushiji <linda7@huawei.com> - 0.3.0-2
|
|
|
|
|
- Type:Sync
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-gcc-client
|
|
|
|
|
|
2022-12-01 09:46:19 +08:00
|
|
|
* Thu Dec 01 2022 wumingchuan <wumingchuan1992@foxmail.com> - 0.3.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.3.0
|
|
|
|
|
|
2022-09-28 15:49:13 +08:00
|
|
|
* Thu Sep 29 2022 wumingchuan <wumingchuan1992@foxmail.com> - 0.2.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.2.0
|
|
|
|
|
|
2022-08-27 10:15:54 +08:00
|
|
|
* Sat Aug 27 2022 liyancheng <412998149@qq.com> - 0.1.0-2
|
|
|
|
|
- Type:Bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Static link plg_grpc_proto
|
|
|
|
|
|
2022-08-25 22:51:41 +08:00
|
|
|
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
|
|
|
|
- Type:Init
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Init pin-gcc-client repository
|