2022-08-25 21:14:59 +08:00
|
|
|
Name: pin-server
|
2022-12-20 17:13:03 +08:00
|
|
|
Version: 0.4.0
|
2024-04-09 10:59:09 +08:00
|
|
|
Release: 16
|
2022-08-25 21:14:59 +08:00
|
|
|
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
|
|
|
|
License: Apache 2.0
|
|
|
|
|
URL: https://gitee.com/openeuler/pin-server
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++ cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
2023-08-07 19:29:58 +08:00
|
|
|
BuildRequires: mlir mlir-static mlir-devel llvm-devel llvm-test
|
2022-08-25 21:14:59 +08:00
|
|
|
Requires: grpc protobuf
|
|
|
|
|
|
2023-02-22 16:27:40 +08:00
|
|
|
Patch1: 0001-Refactoring-Code-refactoring-of-Communication-Subsys.patch
|
|
|
|
|
Patch2: 0002-Refactoring-Code-refactoring-of-Communication-Subsys.patch
|
|
|
|
|
Patch3: 0003-Refactoring-Code-refactoring-of-Communication-Subsys.patch
|
|
|
|
|
Patch4: 0004-Pin-server-Add-DebugOp.patch
|
|
|
|
|
Patch5: 0005-Pin-server-Add-API-for-LTO-judgement.patch
|
|
|
|
|
Patch6: 0006-Pin-server-Fix-bug-for-BuildCallOp.patch
|
|
|
|
|
Patch7: 0007-Pin-server-Refactoring-array-widen-compare-into-a-cl.patch
|
|
|
|
|
Patch8: 0008-Pin-server-Refactoring-DEMOs-into-PluginOpt-classes.patch
|
|
|
|
|
Patch9: 0009-Pin-server-Support-functiontype-structtype.eg.patch
|
2023-02-26 21:14:58 +08:00
|
|
|
Patch10: 0010-Pin-server-Add-ComponentOp-ConstructorOp-AddressOp-F.patch
|
|
|
|
|
Patch11: 0011-Pin-server-Add-NopOp-EHElseOp-AsmOp-SwitchOp-LabelOp.patch
|
|
|
|
|
Patch12: 0012-Pin-server-Support-Vectortype.patch
|
2023-03-07 11:41:20 +08:00
|
|
|
Patch13: 0013-Pin-server-Fix-Definecode-name.patch
|
2023-02-26 21:14:58 +08:00
|
|
|
Patch14: 0014-Pin-server-Fix-AWC-pass-can-complice-can-compile-a-c.patch
|
2023-03-07 11:41:20 +08:00
|
|
|
Patch15: 0015-Pin-server-Bugfix-for-SwitchOp-change-it-to-terminat.patch
|
|
|
|
|
Patch16: 0016-Pin-server-Bugfix-for-GetFunctionById.patch
|
|
|
|
|
Patch17: 0017-Refactoring-Modify-API-parameters-to-improve-usabili.patch
|
|
|
|
|
Patch18: 0018-Build-Fix-strip-problem.patch
|
|
|
|
|
Patch19: 0019-Pin-server-Init-a-SimpleIPAPASS.patch
|
|
|
|
|
Patch20: 0020-Pin-server-Add-CGnodeOp.patch
|
|
|
|
|
Patch21: 0021-Pin-server-The-lto-flag-is-used-to-control-the-pass-.patch
|
|
|
|
|
Patch22: 0022-Pin-server-Add-support-for-decl-and-field-SetDeclNam.patch
|
|
|
|
|
Patch23: 0023-Pin-server-Add-StructReorderPASS-demo.patch
|
2023-03-15 10:41:01 +08:00
|
|
|
Patch24: 0024-Pin-server-Fix-VectorType.patch
|
|
|
|
|
Patch25: 0025-Pin-server-Fix-Pass-DoOptimize-method-and-struct-sel.patch
|
2023-03-21 09:55:09 +08:00
|
|
|
Patch26: 0026-Pin-server-Fix-log-output-form.patch
|
2023-03-25 16:34:56 +08:00
|
|
|
Patch27: 0027-Pin-server-Optimized-LocalVarSummeryPass.patch
|
2023-08-07 19:29:58 +08:00
|
|
|
Patch28: 0028-Pin-server-Adaptation-to-llvm15-mlir15-only-solves-t.patch
|
2023-08-07 19:31:44 +08:00
|
|
|
Patch29: 0029-Pin-server-Adaptation-to-gcc12-only-solves-the-build.patch
|
2023-08-14 15:47:22 +08:00
|
|
|
Patch30: 0030-Pin-server-fix-the-adaptation-to-grpc-1.54.2.patch
|
2024-04-08 21:25:08 +08:00
|
|
|
Patch31: 0031-Pin-Server-Added-null-pointer-check-to-avoid-potenti.patch
|
|
|
|
|
Patch32: 0032-Pin-server-Bugfix-for-the-operation-sequence-of-user.patch
|
|
|
|
|
Patch33: 0033-Pin-server-Add-DataFlow-APIs.patch
|
2024-04-09 10:59:09 +08:00
|
|
|
Patch34: 0034-MLIR17-Adaptation-to-llvm17-mlir17.patch
|
2023-02-22 16:27:40 +08:00
|
|
|
|
2022-08-25 21:14:59 +08:00
|
|
|
%description
|
|
|
|
|
Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
|
Summary: Demo for %{name}
|
|
|
|
|
Requires: grpc protobuf
|
|
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
|
A demo for pin-server
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2022-12-08 21:42:24 +08:00
|
|
|
|
2023-04-26 15:05:30 +08:00
|
|
|
%autopatch -p1
|
2023-02-22 16:27:40 +08:00
|
|
|
|
2023-08-22 20:02:53 +08:00
|
|
|
%build
|
2022-08-25 21:14:59 +08:00
|
|
|
mkdir -p _build
|
|
|
|
|
cd _build
|
2023-03-03 11:44:20 +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 21:14:59 +08:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd _build
|
|
|
|
|
%make_install
|
|
|
|
|
|
2023-03-06 14:42:42 +08:00
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
|
|
|
|
echo "{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
2023-03-03 11:44:20 +08:00
|
|
|
find %{_bindir} -type f -name "pin_server" -exec strip "{}" ";"
|
2023-03-06 14:42:42 +08:00
|
|
|
find %{_libdir} -type f -name "libMLIRPluginServer.so" -exec strip "{}" ";"
|
|
|
|
|
find %{_libdir} -type f -name "libMLIRServerAPI.so" -exec strip "{}" ";"
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
2023-03-03 11:44:20 +08:00
|
|
|
|
2022-08-25 21:14:59 +08:00
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/pin_server
|
|
|
|
|
|
|
|
|
|
%files demo
|
2022-09-28 16:08:43 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libpin_user.so
|
2023-02-22 16:27:40 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPluginServer.so
|
2024-04-09 10:59:09 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPluginServer.so.17
|
2022-12-01 09:39:24 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRServerAPI.so
|
2024-04-09 10:59:09 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRServerAPI.so.17
|
2022-09-28 16:08:43 +08:00
|
|
|
%attr(0644,root,root) %{_libdir}/libpin_user.sha256
|
2023-03-06 14:42:42 +08:00
|
|
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
2022-08-25 21:14:59 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-04-09 10:59:09 +08:00
|
|
|
* Tue Apr 09 2024 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.0-16
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to llvm17/mlir17
|
|
|
|
|
|
2024-04-08 21:25:08 +08:00
|
|
|
* Mon Apr 08 2024 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.0-15
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-server
|
|
|
|
|
|
2023-08-22 20:02:53 +08:00
|
|
|
* Tue Aug 22 2023 liyunfei <liyunfei33@huawei.com> - 0.4.0-14
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Add toolchain switch support
|
|
|
|
|
|
2023-08-14 15:47:22 +08:00
|
|
|
* Mon Aug 14 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-13
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix the adaptation to grpc-1.54.2
|
|
|
|
|
|
2023-08-07 19:31:44 +08:00
|
|
|
* Thu Aug 3 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-12
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to gcc12 only solves the build problem
|
|
|
|
|
|
2023-08-07 19:29:58 +08:00
|
|
|
* Thu Aug 3 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-11
|
|
|
|
|
- Type:FIX
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Adaptation to llvm15/mlir15 only solves the build problem
|
|
|
|
|
|
2023-04-26 15:05:30 +08:00
|
|
|
* Wed Apr 26 2023 zhangying <zhangying@xfusion.com> - 0.4.0-10
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:%patchxxx -p1 automation in pin-server.spec
|
|
|
|
|
|
2023-03-25 16:34:56 +08:00
|
|
|
* Sat Mar 25 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-9
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix Optimized LocalVarSummeryPass
|
|
|
|
|
|
2023-03-21 09:55:09 +08:00
|
|
|
* Tue Mar 21 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-8
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix log output form
|
|
|
|
|
|
2023-03-15 10:41:01 +08:00
|
|
|
* Fri Mar 17 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-7
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix VectorType and Fix Pass DoOptimize method
|
|
|
|
|
|
2023-03-07 11:41:20 +08:00
|
|
|
* Tue Mar 07 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-6
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-server
|
|
|
|
|
|
2023-03-06 14:42:42 +08:00
|
|
|
* Mon Mar 6 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.0-5
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix RPATH problem by ld.so.conf.d
|
|
|
|
|
|
2023-03-03 11:44:20 +08:00
|
|
|
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.0-4
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Fix STRIP & RPATH
|
|
|
|
|
|
2023-02-26 21:14:58 +08:00
|
|
|
* Sun Feb 26 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-3
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-server
|
|
|
|
|
|
2023-02-22 16:27:40 +08:00
|
|
|
* Wed Feb 22 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-2
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-server
|
|
|
|
|
|
2022-12-20 17:13:03 +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:42:24 +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-server
|
|
|
|
|
|
2022-12-01 09:39:24 +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 16:08:43 +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:30:04 +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 21:14:59 +08:00
|
|
|
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
|
|
|
|
- Type:Init
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Init pin-server repository
|