diff --git a/README.en.md b/README.en.md index eb098f82cf7a82e8e5d6cd2898a60da6e080041d..a8ba5d028511356a99aca707774b113458feaf50 100644 --- a/README.en.md +++ b/README.en.md @@ -1,24 +1,3 @@ # llvm-mlir -#### Description -The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. -MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, -significantly reduce the cost of building domain specific compilers, and aid in connecting -existing compilers together. - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +This multiversion branch has been deprecated, using [llvm-toolset-18](https://gitee.com/src-openeuler/llvm-toolset-18) instead. diff --git a/README.md b/README.md index 8caea75e7ada1c60a256cb9b055e29a7d4118133..ca199c5f46ccd82f9e5b24f227a007fcd1df8353 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,3 @@ # llvm-mlir -#### 介绍 -The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. -MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, -significantly reduce the cost of building domain specific compilers, and aid in connecting -existing compilers together. - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +该多版本分支已废弃, 使用 [llvm-toolset-18](https://gitee.com/src-openeuler/llvm-toolset-18) 替代. diff --git a/llvm-mlir.spec b/llvm-mlir.spec deleted file mode 100644 index 7c4bda25849f24029459262b35c580f23105ee01..0000000000000000000000000000000000000000 --- a/llvm-mlir.spec +++ /dev/null @@ -1,225 +0,0 @@ -%bcond_without check -%bcond_without toolchain_clang - -%if %{with toolchain_clang} -%global toolchain clang -%endif - -%global maj_ver 18 -%global min_ver 1 -%global patch_ver 8 -%global mlir_version %{maj_ver}.%{min_ver}.%{patch_ver} -%global mlir_srcdir mlir-%{mlir_version}%{?rc_ver:rc%{rc_ver}}.src - -%global _scl_prefix /opt/openEuler -%{?scl:%scl_package %scl} -%{!?scl:%global scl_prefix llvm-toolset-%{maj_ver}-} -%{!?scl:%global pkg_name %{name}} -%global install_prefix %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_prefix} -%global install_datadir %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_datadir} - -%global install_bindir %{install_prefix}/bin -%if 0%{?__isa_bits} == 64 -%global install_libdir %{install_prefix}/lib64 -%else -%global install_libdir %{install_prefix}/lib -%endif -%global install_includedir %{install_prefix}/include - -Name: %{?scl_prefix}llvm-mlir -Version: %{mlir_version} -Release: 1 -Summary: The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. -License: Apache-2.0 -URL: https://mlir.llvm.org/ - -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{mlir_version}/%{mlir_srcdir}.tar.xz -Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{mlir_version}/%{mlir_srcdir}.tar.xz.sig - -BuildRequires: clang -BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel python3-lit -BuildRequires: %{?scl_prefix}llvm-devel = %{version} -BuildRequires: %{?scl_prefix}llvm-googletest = %{version} -BuildRequires: %{?scl_prefix}llvm-test = %{version} -BuildRequires: %{?scl_prefix}llvm-cmake-utils = %{version} - -BuildRequires: python3-devel -BuildRequires: python3-numpy -BuildRequires: python3-pybind11 -BuildRequires: python3-pyyaml - -%description -The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. -MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, -significantly reduce the cost of building domain specific compilers, and aid in connecting -existing compilers together. - -%package static -Summary: MLIR static files -Requires: %{pkg_name} = %{version} - -%description static -MLIR static files. - -%package devel -Summary: MLIR development files -Requires: %{pkg_name} = %{version}-%{release} -Requires: %{pkg_name}-static = %{version}-%{release} - -%description devel -MLIR development files. - -%package -n python3-mlir -Summary: MLIR python bindings -Requires: python3 -Requires: python3-numpy - -%description -n python3-mlir -%{summary} - -%prep -%autosetup -n %{mlir_srcdir} -p2 - -%build -%cmake -G Ninja \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_SKIP_RPATH=ON \ - -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ - -DLLVM_BUILD_LLVM_DYLIB=ON \ - -DCMAKE_PREFIX_PATH=%{install_libdir}/cmake/llvm/ \ - -DLLVM_EXTERNAL_LIT=%{install_bindir}/lit \ - -DLLVM_THIRD_PARTY_DIR=%{install_datadir}/llvm/src/utils \ - -DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \ - -DLLVM_BUILD_UTILS:BOOL=ON \ - -DLLVM_LIBRARY_OUTPUT_INTDIR="." \ - -DLLVM_SHLIB_OUTPUT_INTDIR="%{_builddir}/%{mlir_srcdir}/lib/ExecutionEngine/" \ - -DMLIR_INCLUDE_DOCS:BOOL=ON \ - -DMLIR_INCLUDE_TESTS:BOOL=ON \ - -DMLIR_INCLUDE_INTEGRATION_TESTS:BOOL=OFF \ - -DBUILD_SHARED_LIBS=OFF \ - -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF \ - -DMLIR_BUILD_MLIR_C_DYLIB=ON \ - -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ - -DCMAKE_INSTALL_PREFIX=%{install_prefix} \ -%if "%{toolchain}" == "clang" - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ -%endif -%ifarch aarch64 %ix86 ppc64le x86_64 - -DLLVM_PARALLEL_LINK_JOBS=1 \ -%endif -%ifarch %ix86 - -DMLIR_RUN_X86VECTOR_TESTS:BOOL=OFF \ -%endif - -DMLIR_ENABLE_BINDINGS_PYTHON:BOOL=ON \ -%if 0%{?__isa_bits} == 64 - -DLLVM_LIBDIR_SUFFIX=64 \ -%else - -DLLVM_LIBDIR_SUFFIX= \ -%endif -%ifarch %ix86 x86_64 - -DLLVM_TARGETS_TO_BUILD="X86" -%endif -%ifarch aarch64 - -DLLVM_TARGETS_TO_BUILD="AArch64" -%endif - -%ninja_build - -%install -%ninja_install - -mkdir -p %{buildroot}/%{python3_sitearch} -mv %{buildroot}%{install_prefix}/python_packages/mlir_core/mlir %{buildroot}/%{python3_sitearch}/mlir -# These directories should be empty now. -rmdir %{buildroot}%{install_prefix}/python_packages/mlir_core %{buildroot}%{install_prefix}/python_packages -# Unneeded files. -rm -rf %{buildroot}%{install_prefix}/src/python - -%if %{with check} -%check -# TODO: Investigate the following issues. -rm -rf test/mlir-pdll-lsp-server/compilation_database.test -rm -rf test/mlir-pdll-lsp-server/completion.test -rm -rf test/mlir-pdll-lsp-server/definition-split-file.test -rm -rf test/mlir-pdll-lsp-server/definition.test -rm -rf test/mlir-pdll-lsp-server/document-links.test -rm -rf test/mlir-pdll-lsp-server/document-symbols.test -rm -rf test/mlir-pdll-lsp-server/exit-eof.test -rm -rf test/mlir-pdll-lsp-server/exit-with-shutdown.test -rm -rf test/mlir-pdll-lsp-server/exit-without-shutdown.test -rm -rf test/mlir-pdll-lsp-server/hover.test -rm -rf test/mlir-pdll-lsp-server/initialize-params-invalid.test -rm -rf test/mlir-pdll-lsp-server/initialize-params.test -rm -rf test/mlir-pdll-lsp-server/inlay-hints.test -rm -rf test/mlir-pdll-lsp-server/references.test -rm -rf test/mlir-pdll-lsp-server/signature-help.test -rm -rf test/mlir-pdll-lsp-server/textdocument-didchange.test -rm -rf test/mlir-pdll-lsp-server/view-output.test - -rm -rf test/mlir-tblgen/directive-common.td -rm -rf test/mlir-tblgen/llvm-intrinsics.td -rm -rf test/tblgen-lsp-server/document-links.test -rm -rf test/tblgen-lsp-server/hover.test - -# build process .exe tools normally use rpath or static linkage -export LD_LIBRARY_PATH=%{buildroot}/%{install_libdir}:%{buildroot}/%{python3_sitearch}/mlir/_mlir_libs -export PYTHONPATH=%{buildroot}/%{python3_sitearch} -%ninja_build check-mlir -%endif - -%files -%license LICENSE.TXT -%{install_libdir}/libMLIR*.so.* -%{install_libdir}/libmlir_arm_runner_utils.so.%{maj_ver}* -%{install_libdir}/libmlir_arm_sme_abi_stubs.so.%{maj_ver}* -%{install_libdir}/libmlir_runner_utils.so.* -%{install_libdir}/libmlir_c_runner_utils.so.* -%{install_libdir}/libmlir_float16_utils.so.%{maj_ver}* -%{install_libdir}/libmlir_async_runtime.so.* - -%files static -%{install_libdir}/libMLIR*.a - -%files devel -%{install_bindir}/mlir-tblgen -%{install_bindir}/mlir-pdll -%{install_libdir}/libMLIR*.so -%{install_bindir}/tblgen-to-irdl -%{install_libdir}/libmlir_arm_runner_utils.so -%{install_libdir}/libmlir_arm_sme_abi_stubs.so -%{install_libdir}/libmlir_runner_utils.so -%{install_libdir}/libmlir_c_runner_utils.so -%{install_libdir}/libmlir_float16_utils.so -%{install_libdir}/libmlir_async_runtime.so -%{install_includedir}/mlir -%{install_includedir}/mlir-c -%{install_libdir}/cmake/mlir - -%files -n python3-mlir -%{python3_sitearch}/mlir/ - -%changelog -* Fri Dec 6 2024 liyunfei - 18.1.8-1 -- init for Multi-Version LLVM-18.1.8 - -* Mon Nov 11 2024 Funda Wang - 17.0.6-4 -- adopt to new cmake macro - -* Tue Aug 20 2024 liyunfei - 17.0.6-3 -- Add BiSheng Autotuner support. - -* Fri Jul 5 2024 liyunfei - 17.0.6-2 -- Add toolchain_clang build support - -* Sun Jun 25 2023 zhoujing - 17.0.6-1 -- Update to 17.0.6 - -* Sun Jun 25 2023 cf-zhao - 15.0.7-1 -- Update to 15.0.7 - -* Wed Nov 16 2022 liyancheng <412998149@qq.com> - 12.0.1-0 -- Type:Init -- ID:NA -- SUG:NA -- DESC:Init llvm-mlir repository diff --git a/llvm-mlir.yaml b/llvm-mlir.yaml deleted file mode 100644 index c7c50f6ac87dd806f0574c6b3a4fd97b11d3e479..0000000000000000000000000000000000000000 --- a/llvm-mlir.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: llvm/llvm-project -tag_prefix: ^llvmorg- -separator: . diff --git a/mlir-18.1.8.src.tar.xz b/mlir-18.1.8.src.tar.xz deleted file mode 100644 index 5977baa93c8694af03b4c6e36f01e132580f55f5..0000000000000000000000000000000000000000 Binary files a/mlir-18.1.8.src.tar.xz and /dev/null differ diff --git a/mlir-18.1.8.src.tar.xz.sig b/mlir-18.1.8.src.tar.xz.sig deleted file mode 100644 index 31b4ab890e3590be46db2453c0aab9592dcfaeec..0000000000000000000000000000000000000000 Binary files a/mlir-18.1.8.src.tar.xz.sig and /dev/null differ