Build & ship mlir too

This commit is contained in:
Sylvestre Ledru 2021-12-30 20:41:13 +01:00
parent 27c99c7ca2
commit 4a688750e5
8 changed files with 71 additions and 1 deletions

6
debian/changelog vendored
View File

@ -264,6 +264,12 @@ llvm-toolchain-snapshot (1:14~++20210715093511+afc760ef3527-1~exp2) unstable; ur
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 06 Aug 2021 08:40:58 +0200
llvm-toolchain-13 (1:13.0.1~+rc1-1~exp3) experimental; urgency=medium
* Build & ship mlir too
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 30 Dec 2021 12:04:43 +0100
llvm-toolchain-13 (1:13.0.1~+rc1-1~exp2) experimental; urgency=medium
* Bring back the dependency clang => llvm-13-linker-tools

48
debian/control vendored
View File

@ -754,3 +754,51 @@ Description: production-quality unwinder
The low level libunwind API was designed to work either in-process (aka local)
or to operate on another process (aka remote), but only the local path has
been implemented. Remote unwinding remains as future work.
# ------------- mlir -------------
Package: mlir-13-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Multi-Level Intermediate Representation tools
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.
.
This package provides tools.
Package: libmlir-13
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: libmlir-x.y
Conflicts: libmlir-x.y
Replaces: libmlir-x.y
Description: Multi-Level Intermediate Representation library
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: libmlir-13-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
libmlir-13 (= ${binary:Version})
Breaks: libmlir-dev
Provides: libmlir-x.y-dev
Conflicts: libmlir-x.y-dev
Replaces: libmlir-dev, libmlir-x.y-dev
Description: Multi-Level Intermediate Representation library
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.

7
debian/libmlir-X.Y-dev.install.in vendored Normal file
View File

@ -0,0 +1,7 @@
usr/lib/llvm-@LLVM_VERSION@/include/mlir-c/
usr/lib/llvm-@LLVM_VERSION@/include/mlir/
usr/lib/llvm-@LLVM_VERSION@/lib/cmake/mlir/
usr/lib/llvm-@LLVM_VERSION@/lib/libMLIR.so
usr/lib/llvm-@LLVM_VERSION@/lib/libMLIR*.a
usr/lib/llvm-@LLVM_VERSION@/lib/libmlir*.so

View File

@ -0,0 +1 @@
libmlir-@LLVM_VERSION@-dev: arch-dependent-file-not-in-arch-specific-directory usr/lib/llvm-@LLVM_VERSION@/lib/*

2
debian/libmlir-X.Y.install.in vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/llvm-@LLVM_VERSION@/lib/libMLIR.so.*
usr/lib/llvm-@LLVM_VERSION@/lib/libmlir*.so.*

View File

@ -0,0 +1 @@
libmlir-@LLVM_VERSION@: arch-dependent-file-not-in-arch-specific-directory usr/lib/llvm-@LLVM_VERSION@/lib/*

2
debian/mlir-X.Y-tools.install.in vendored Normal file
View File

@ -0,0 +1,2 @@
usr/bin/mlir-*
usr/lib/llvm-@LLVM_VERSION@/bin/mlir-*

5
debian/rules vendored
View File

@ -1,7 +1,7 @@
#!/usr/bin/make -f
# polly & lldb aren't enabled for every platform
PROJECTS = clang;clang-tools-extra;lld;cross-project-tests
PROJECTS = clang;clang-tools-extra;lld;cross-project-tests;mlir
# openmp & libunwind aren't enabled for every platform
RUNTIMES = compiler-rt;libcxx;libcxxabi
@ -706,6 +706,9 @@ override_dh_auto_install:
# Remove an example - introduced in https://reviews.llvm.org/D61446
rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libBye.a
# should not be installed (mlir)
rm -rf $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/objects-Release/
cp $(TARGET_BUILD_STAGE2)/bin/clang-query $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin
# Only run on executable, not script