diff --git a/llvm-core/mlir/Manifest b/llvm-core/mlir/Manifest index fb59d806b562d..7d0bc38174546 100644 --- a/llvm-core/mlir/Manifest +++ b/llvm-core/mlir/Manifest @@ -2,9 +2,6 @@ DIST llvm-project-21.1.8.src.tar.xz 158958576 BLAKE2B 0d3d4ee920f8e5db50e9815261 DIST llvm-project-21.1.8.src.tar.xz.sig 119 BLAKE2B cffc1825f5778a3e3c128ec3e856ff6ee50687319d621cdf42e895abf67e05cc51cb7493308e2b506ab60dbdbaca7aa75eb9f78d91d42c81f9682a36f4042e9d SHA512 10f58eff58ed6e701d0f123b15e68c82ab8cbdf99b1c86c0d83e3b8553e90ea51055e30327e8e442ded57c8f503e2a2de9ee075e9c28b5ba815a0f8922f8671c DIST llvm-project-22.1.8.src.tar.xz 167061596 BLAKE2B 092204f62e0f0364a041c737eb2c25fd073cb5689663d6ccd5a9e4e1743d6d80822360d59b64bff7b4d7872a68a79e899bf2f75f384e55c7d313a79243576f03 SHA512 2615b20ba08534f83ab8ecc7b5ba43b5f1dfcf9cdb2534a32fcdbf0ccdd9a008b46276e45ef26ed9377f65b5e4ae89ea798f3863fd034484b5715140f3a7b35c DIST llvm-project-22.1.8.src.tar.xz.sig 119 BLAKE2B 2ce93472036e68782252991e4a8bdbeeec8706a56022220083a38a42ef18714a7894c41aaa04dc0d03f18601d8bfc1a5a030ed0ef0f0d64a662eae9843a4b362 SHA512 99a457b5b1fb409a5fe72b59ebd4ddae5cade3e5f2493e33b44d4f4b4625f7a1743f80106efb1134668842b15ea3400ce2c29263bec8ff986e05040910125e15 -DIST llvm-project-23.1.3.src.tar.xz 179220548 BLAKE2B 1ce328590eb86e5a8d117a1d5c2c4b691d9c1a897f239ba197e14f47b660e927313133e94a518c43ceed163fc081760d5d33e2685a94af1031184a0960ffb5c7 SHA512 eb76f37804564a2595ca8de4864e96cf13c0a3f07922f6bce4d11771547525785c0fde54457aadf7aa1bcaac496475f1dde00e1b152c1df560669c6e3e1318bf -DIST llvm-project-23.1.3.src.tar.xz.sig 466 BLAKE2B 0f5bc2af1f860f908ecb10b057170a832d42c5d916b63b86b75e529466d1ab2f6b2258c3b51a3cb0f236d9553d2990550343f371062d5224fb319bb9d4be26cd SHA512 7eabfb513a5516cab7d2d366117abd36bdb9d1a50e8ab0b21991d8143222e965ac53dbbacc80c8977ed8aaee57b480b7fdbdae0ba847f62c031da69989d34d2d DIST llvm-project-23.1.4.src.tar.xz 179272572 BLAKE2B dbd14791e5674d89427f2abec54a30c5570bac6b8a2b210611bc4cb9ded4f057f729f8d20df29ec7ffca34f767294a1c589a09a13e79bef29b124d62a84a53ea SHA512 1443531768d7040677302e4468b95b345511f10881a072e703814e9e10316d6ce12f56e8d1fbab5c350550380ae8d242acebb68c833fa385ea7777f05d8bde23 DIST llvm-project-23.1.4.src.tar.xz.sig 466 BLAKE2B 120e228f58ada689b8ae04221fc5c682c577f827e4e27e68a931e640c2462414681e0e3ca93ba6cefd4d910e138d17c673afd91220ff84afe49d299d01f2159a SHA512 1c37a50413faffb4f73c76583bbc3148d7e28005126aed0a41f63882aae174ba840aeaf6b43e56649d64e749fe9503c8f41435c7bdcf62468b1c0b4b93515802 -DIST llvm-project-53310c92e86e1c285b1fe3aaf76158addd0a2036.tar.gz 320028470 BLAKE2B f71cfa7241e3272e3f85200a2f83ffa2ec99b713d444102ce4e0b8420019a6f0f7818ce4a04a2f59be455cd2c26f557c814afbd4613ea09c6133e9faeaf90f42 SHA512 c9304de60fa1ef194b0d1ef158a6d0638465a723a86fbac922184fbd808044e43cd709bc4b5f15cbf04f6ddc465bedc7220978a4913959e4094c9e0ca9a2022a DIST llvm-project-c5904d2bebe0497b30a712adc085e96107f03160.tar.gz 321341453 BLAKE2B d2915041721282318947af08cfa79b42017dcaf9674863469f97752a6f98c323539fda7c329a926b274a7e196da1aef7ed747945a5a374cfb0803474368a0214 SHA512 55fb2c912d0b87fa6bea5eacd1006a44f40a2880e59b6eec2e22e21cedd4b67eef0da66a58b03c508fc1f2e77e815cba034ed0b1c3cf11ad99a15186f16f9244 diff --git a/llvm-core/mlir/mlir-23.1.3.ebuild b/llvm-core/mlir/mlir-23.1.3.ebuild deleted file mode 100644 index 57c838688f89a..0000000000000 --- a/llvm-core/mlir/mlir-23.1.3.ebuild +++ /dev/null @@ -1,236 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{12..14} ) -inherit cmake flag-o-matic llvm.org multilib-minimal python-any-r1 - -DESCRIPTION="Multi-Level Intermediate Representation (library only)" -HOMEPAGE="https://mlir.llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions" -SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" -KEYWORDS="~amd64 ~arm64" -IUSE="debug test" -RESTRICT="!test? ( test )" - -DEPEND=" - ~llvm-core/llvm-${PV}[debug=,${MULTILIB_USEDEP}] -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - ${PYTHON_DEPS} - llvm-core/llvm:${LLVM_MAJOR} - test? ( - $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') - ) -" - -LLVM_COMPONENTS=( mlir cmake ) -# tablegen tests use *.td files there -LLVM_TEST_COMPONENTS=( llvm/include ) -llvm.org_set_globals - -python_check_deps() { - if use test; then - python_has_version "dev-python/lit[${PYTHON_USEDEP}]" - fi -} - -src_prepare() { - llvm.org_src_prepare - - # https://github.com/llvm/llvm-project/issues/120902 - sed -i -e '/LINK_LIBS/s:PUBLIC:PRIVATE:' \ - lib/ExecutionEngine/CMakeLists.txt || die - - # this test is completely unpredictable, no clue why - rm test/mlir-pdll-lsp-server/view-output.test || die -} - -check_distribution_components() { - if [[ ${CMAKE_MAKEFILE_GENERATOR} == ninja ]]; then - local all_targets=() my_targets=() l - cd "${BUILD_DIR}" || die - - while read -r l; do - if [[ ${l} == install-*-stripped:* ]]; then - l=${l#install-} - l=${l%%-stripped*} - - case ${l} in - # meta-targets - mlir-libraries|distribution) - continue - ;; - # dylib - MLIR) - ;; - # installed test libraries - MLIRTestAnalysis|MLIRTestDialect|MLIRTestIR) - ;; - MLIROpenACCTestPasses) - ;; - # static libraries - MLIR*) - continue - ;; - esac - - all_targets+=( "${l}" ) - fi - done < <(${NINJA} -t targets all) - - while read -r l; do - my_targets+=( "${l}" ) - done < <(get_distribution_components $"\n") - - local add=() remove=() - for l in "${all_targets[@]}"; do - if ! has "${l}" "${my_targets[@]}"; then - add+=( "${l}" ) - fi - done - for l in "${my_targets[@]}"; do - if ! has "${l}" "${all_targets[@]}"; then - remove+=( "${l}" ) - fi - done - - if [[ ${#add[@]} -gt 0 || ${#remove[@]} -gt 0 ]]; then - eqawarn "get_distribution_components() is outdated!" - eqawarn " Add: ${add[*]}" - eqawarn "Remove: ${remove[*]}" - fi - cd - >/dev/null || die - fi -} - -get_distribution_components() { - local sep=${1-;} - - local out=( - mlir-cmake-exports - mlir-headers - - # the dylib - MLIR - - # shared libraries - mlir_apfloat_wrappers - mlir_arm_runner_utils - mlir_arm_sme_abi_stubs - mlir_async_runtime - mlir_c_runner_utils - mlir_float16_utils - mlir_runner_utils - - # test libraries required by flang - MLIROpenACCTestPasses - MLIRTestAnalysis - MLIRTestDialect - MLIRTestIR - ) - - if multilib_is_native_abi; then - out+=( - # tools - mlir-linalg-ods-yaml-gen - mlir-lsp-server - mlir-opt - mlir-pdll - mlir-pdll-lsp-server - mlir-query - mlir-reduce - mlir-rewrite - mlir-runner - mlir-tblgen - mlir-translate - tblgen-lsp-server - tblgen-to-irdl - ) - fi - - printf "%s${sep}" "${out[@]}" -} - -multilib_src_configure() { - # bug #956603 - filter-lto - - local mycmakeargs=( - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" - -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}" - - -DBUILD_SHARED_LIBS=OFF - # this controls building libMLIR.so - -DLLVM_BUILD_LLVM_DYLIB=ON - -DMLIR_BUILD_MLIR_C_DYLIB=OFF - -DMLIR_LINK_MLIR_DYLIB=ON - -DMLIR_INCLUDE_TESTS=ON - -DMLIR_INCLUDE_INTEGRATION_TESTS=OFF - -DLLVM_DISTRIBUTION_COMPONENTS=$(get_distribution_components) - # this enables installing mlir-tblgen and mlir-pdll - -DLLVM_BUILD_UTILS=ON - - -DPython3_EXECUTABLE="${PYTHON}" - - -DLLVM_BUILD_TOOLS=ON - # TODO - -DMLIR_ENABLE_CUDA_RUNNER=0 - -DMLIR_ENABLE_ROCM_RUNNER=0 - -DMLIR_ENABLE_SYCL_RUNNER=0 - -DMLIR_ENABLE_SPIRV_CPU_RUNNER=0 - -DMLIR_ENABLE_VULKAN_RUNNER=0 - -DMLIR_ENABLE_BINDINGS_PYTHON=0 - -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF - ) - use test && mycmakeargs+=( - -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" - -DLLVM_LIT_ARGS="$(get_lit_flags)" - ) - - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 - use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" - cmake_src_configure - - multilib_is_native_abi && check_distribution_components -} - -multilib_src_compile() { - cmake_build distribution -} - -multilib_src_test() { - local known_xfail=() - - case ${ABI} in - arm|ppc|x86) - known_xfail+=( - # MLIR is full of 64-bit assumptions, sigh - # https://github.com/llvm/llvm-project/issues/124541 - Dialect/Bufferization/Transforms/one-shot-bufferize-pass-statistics.mlir - Dialect/LLVMIR/sroa-statistics.mlir - Dialect/Linalg/vectorize-tensor-extract.mlir - Dialect/MemRef/mem2reg-statistics.mlir - Dialect/Tensor/fold-tensor-subset-ops.mlir - Dialect/Tensor/tracking-listener.mlir - Pass/pipeline-stats-nested.mlir - Pass/pipeline-stats.mlir - ) - ;; - esac - - # respect TMPDIR! - local -x LIT_PRESERVES_TMP=1 - local -x LIT_XFAIL="${known_xfail[*]}" - LIT_XFAIL=${LIT_XFAIL// /;} - cmake_build check-mlir -} - -multilib_src_install() { - DESTDIR=${D} cmake_build install-distribution -} diff --git a/llvm-core/mlir/mlir-24.0.0_pre20261010.ebuild b/llvm-core/mlir/mlir-24.0.0_pre20261010.ebuild deleted file mode 100644 index 7cdab204ea1db..0000000000000 --- a/llvm-core/mlir/mlir-24.0.0_pre20261010.ebuild +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{12..14} ) -inherit cmake flag-o-matic llvm.org multilib-minimal python-any-r1 - -DESCRIPTION="Multi-Level Intermediate Representation (library only)" -HOMEPAGE="https://mlir.llvm.org/" - -LICENSE="Apache-2.0-with-LLVM-exceptions" -SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" -IUSE="+debug test" -RESTRICT="!test? ( test )" - -DEPEND=" - ~llvm-core/llvm-${PV}[debug=,${MULTILIB_USEDEP}] -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - ${PYTHON_DEPS} - llvm-core/llvm:${LLVM_MAJOR} - test? ( - $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') - ) -" - -LLVM_COMPONENTS=( mlir cmake ) -# tablegen tests use *.td files there -LLVM_TEST_COMPONENTS=( llvm/include ) -llvm.org_set_globals - -python_check_deps() { - if use test; then - python_has_version "dev-python/lit[${PYTHON_USEDEP}]" - fi -} - -src_prepare() { - llvm.org_src_prepare - - # https://github.com/llvm/llvm-project/issues/120902 - sed -i -e '/LINK_LIBS/s:PUBLIC:PRIVATE:' \ - lib/ExecutionEngine/CMakeLists.txt || die - - # this test is completely unpredictable, no clue why - rm test/mlir-pdll-lsp-server/view-output.test || die -} - -check_distribution_components() { - if [[ ${CMAKE_MAKEFILE_GENERATOR} == ninja ]]; then - local all_targets=() my_targets=() l - cd "${BUILD_DIR}" || die - - while read -r l; do - if [[ ${l} == install-*-stripped:* ]]; then - l=${l#install-} - l=${l%%-stripped*} - - case ${l} in - # meta-targets - mlir-libraries|distribution) - continue - ;; - # dylib - MLIR) - ;; - # installed test libraries - MLIRTestAliasAnalysis|MLIRTestAnalysis|MLIRTestDialect|MLIRTestIR) - ;; - MLIROpenACCTestPasses) - ;; - # static libraries - MLIR*) - continue - ;; - esac - - all_targets+=( "${l}" ) - fi - done < <(${NINJA} -t targets all) - - while read -r l; do - my_targets+=( "${l}" ) - done < <(get_distribution_components $"\n") - - local add=() remove=() - for l in "${all_targets[@]}"; do - if ! has "${l}" "${my_targets[@]}"; then - add+=( "${l}" ) - fi - done - for l in "${my_targets[@]}"; do - if ! has "${l}" "${all_targets[@]}"; then - remove+=( "${l}" ) - fi - done - - if [[ ${#add[@]} -gt 0 || ${#remove[@]} -gt 0 ]]; then - eerror "get_distribution_components() is outdated!" - eerror " Add: ${add[*]}" - eerror "Remove: ${remove[*]}" - die "Update get_distribution_components()!" - fi - cd - >/dev/null || die - fi -} - -get_distribution_components() { - local sep=${1-;} - - local out=( - mlir-cmake-exports - mlir-headers - - # the dylib - MLIR - - # shared libraries - mlir_apfloat_wrappers - mlir_arm_runner_utils - mlir_arm_sme_abi_stubs - mlir_async_runtime - mlir_c_runner_utils - mlir_float16_utils - mlir_runner_utils - - # test libraries required by flang - MLIROpenACCTestPasses - MLIRTestAliasAnalysis - MLIRTestAnalysis - MLIRTestDialect - MLIRTestIR - ) - - if multilib_is_native_abi; then - out+=( - # tools - mlir-irdl-to-cpp - mlir-linalg-ods-yaml-gen - mlir-lsp-server - mlir-opt - mlir-pdll - mlir-pdll-lsp-server - mlir-query - mlir-reduce - mlir-rewrite - mlir-runner - mlir-src-sharder - mlir-tblgen - mlir-translate - tblgen-lsp-server - tblgen-to-irdl - ) - fi - - printf "%s${sep}" "${out[@]}" -} - -multilib_src_configure() { - # bug #956603 - filter-lto - - local mycmakeargs=( - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" - -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}" - - -DBUILD_SHARED_LIBS=OFF - # this controls building libMLIR.so - -DLLVM_BUILD_LLVM_DYLIB=ON - -DMLIR_BUILD_MLIR_C_DYLIB=OFF - -DMLIR_LINK_MLIR_DYLIB=ON - -DMLIR_INCLUDE_TESTS=ON - -DMLIR_INCLUDE_INTEGRATION_TESTS=OFF - -DLLVM_DISTRIBUTION_COMPONENTS=$(get_distribution_components) - # this enables installing mlir-tblgen and mlir-pdll - -DLLVM_BUILD_UTILS=ON - - -DPython3_EXECUTABLE="${PYTHON}" - - -DLLVM_BUILD_TOOLS=ON - # TODO - -DMLIR_ENABLE_CUDA_RUNNER=0 - -DMLIR_ENABLE_ROCM_RUNNER=0 - -DMLIR_ENABLE_SYCL_RUNNER=0 - -DMLIR_ENABLE_SPIRV_CPU_RUNNER=0 - -DMLIR_ENABLE_VULKAN_RUNNER=0 - -DMLIR_ENABLE_BINDINGS_PYTHON=0 - -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF - ) - use test && mycmakeargs+=( - -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" - -DLLVM_LIT_ARGS="$(get_lit_flags)" - ) - - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 - use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" - cmake_src_configure - - multilib_is_native_abi && check_distribution_components -} - -multilib_src_compile() { - cmake_build distribution -} - -multilib_src_test() { - # respect TMPDIR! - local -x LIT_PRESERVES_TMP=1 - cmake_build check-mlir -} - -multilib_src_install() { - DESTDIR=${D} cmake_build install-distribution -}