From 4ee9fd46bc41759e1c8e70b70d538a458edf8413 Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Sat, 4 Apr 2020 11:12:21 -0500 Subject: LLVM support for mlir (#15859) --- var/spack/repos/builtin/packages/llvm/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index a5aedb625d..810203a9f0 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -77,6 +77,7 @@ class Llvm(CMakePackage): ) variant("lldb", default=True, description="Build the LLVM debugger") variant("lld", default=True, description="Build the LLVM linker") + variant("mlir", default=False, description="Build with MLIR support") variant( "internal_unwind", default=True, @@ -182,6 +183,9 @@ class Llvm(CMakePackage): # OMP TSAN exists in > 5.x conflicts("+omp_tsan", when="@:5.99") + # MLIR exists in > 10.x + conflicts("+mlir", when="@:9") + # Github issue #4986 patch("llvm_gcc7.patch", when="@4.0.0:4.0.1+lldb %gcc@7.0:") # Backport from llvm master + additional fix @@ -299,6 +303,8 @@ class Llvm(CMakePackage): projects.append("libcxxabi") if spec.satisfies("@3.9.0:"): cmake_args.append("-DCLANG_DEFAULT_CXX_STDLIB=libc++") + if "+mlir" in spec: + projects.append("mlir") if "+internal_unwind" in spec: projects.append("libunwind") if "+polly" in spec: -- cgit v1.2.3-60-g2f50