From fb55dd430463cf88e748b47d4c09c9ce876a4890 Mon Sep 17 00:00:00 2001 From: Philippe Virouleau Date: Fri, 28 Nov 2025 10:22:45 +0100 Subject: [PATCH] gnu: Add MLIR 15. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/llvm.scm (mlir-15): New variable. Change-Id: Idf0d2e406b7705a8d7de0dbda66d358c64c00d66 Signed-off-by: Ludovic Courtès Modified-by: Ludovic Courtès --- gnu/packages/llvm.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index ac53276bdf..0ccbb2da10 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -1616,14 +1616,16 @@ 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 +(define (mlir-from-llvm llvm) + "Produce MLIR with dependencies on LLVM." (package (name "mlir") - (version (package-version llvm-19)) + (version (package-version llvm)) (source (llvm-monorepo version)) (build-system cmake-build-system) + (native-inputs (package-native-inputs llvm)) (inputs - (list llvm-19)) + (list llvm)) (arguments (list #:build-type "Release" #:configure-flags @@ -1644,6 +1646,12 @@ reduce the cost of building domain specific compilers, and aid in connecting existing compilers together.") (license license:asl2.0))) ; With LLVM exception +(define-public mlir-19 + (mlir-from-llvm llvm-19)) + +(define-public mlir-15 + (mlir-from-llvm llvm-15)) + (define-public python-llvmlite (package (name "python-llvmlite")