@@ 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")