This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b1fe9aa142 gnu: Add mlir-19.
b1fe9aa142 is described below

commit b1fe9aa142440a52e93aef86cf2817f625507d37
Author: Zheng Junjie <z572@z572.online>
AuthorDate: Mon Jul 7 19:24:38 2025 +0800

    gnu: Add mlir-19.
    
    * gnu/packages/llvm.scm (mlir-19): New variable.
    
    Change-Id: I9808f173aa437ea98e61b37a22406a3679db60ff
---
 gnu/packages/llvm.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index e1de59f1b0..fe64db6a35 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -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")

Reply via email to