gnu: Add mlir-19.

* gnu/packages/llvm.scm (mlir-19): New variable.

Change-Id: I9808f173aa437ea98e61b37a22406a3679db60ff
This commit is contained in:
Zheng Junjie 2025-07-07 19:24:38 +08:00
parent 987ad77492
commit b1fe9aa142
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -1561,6 +1561,34 @@ requirements according to version 1.1 of the OpenCL specification.")
;; Apache license 2.0 with LLVM exception
(license license:asl2.0)))
(define-public mlir-19
(package
(name "mlir")
(version (package-version llvm-19))
(source (llvm-monorepo version))
(build-system cmake-build-system)
(inputs
(list llvm-19))
(arguments
(list #:build-type "Release"
#:configure-flags
#~(list "-DMLIR_BUILD_MLIR_C_DYLIB=ON"
"-DLLVM_BUILD_LLVM_DYLIB=ON"
"-DLLVM_LINK_LLVM_DYLIB=ON")
#:tests? #f ; Tests require gtest
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'change-directory
(lambda _
(chdir "mlir"))))))
(home-page "https://mlir.llvm.org/")
(synopsis "Multi-Level Intermediate Representation")
(description "This package 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.")
(license license:asl2.0))) ; With LLVM exception
(define-public python-llvmlite
(package
(name "python-llvmlite")