LLVM support for mlir (#15859)
This commit is contained in:
parent
4bb1392d7d
commit
4ee9fd46bc
@ -77,6 +77,7 @@ class Llvm(CMakePackage):
|
|||||||
)
|
)
|
||||||
variant("lldb", default=True, description="Build the LLVM debugger")
|
variant("lldb", default=True, description="Build the LLVM debugger")
|
||||||
variant("lld", default=True, description="Build the LLVM linker")
|
variant("lld", default=True, description="Build the LLVM linker")
|
||||||
|
variant("mlir", default=False, description="Build with MLIR support")
|
||||||
variant(
|
variant(
|
||||||
"internal_unwind",
|
"internal_unwind",
|
||||||
default=True,
|
default=True,
|
||||||
@ -182,6 +183,9 @@ class Llvm(CMakePackage):
|
|||||||
# OMP TSAN exists in > 5.x
|
# OMP TSAN exists in > 5.x
|
||||||
conflicts("+omp_tsan", when="@:5.99")
|
conflicts("+omp_tsan", when="@:5.99")
|
||||||
|
|
||||||
|
# MLIR exists in > 10.x
|
||||||
|
conflicts("+mlir", when="@:9")
|
||||||
|
|
||||||
# Github issue #4986
|
# Github issue #4986
|
||||||
patch("llvm_gcc7.patch", when="@4.0.0:4.0.1+lldb %gcc@7.0:")
|
patch("llvm_gcc7.patch", when="@4.0.0:4.0.1+lldb %gcc@7.0:")
|
||||||
# Backport from llvm master + additional fix
|
# Backport from llvm master + additional fix
|
||||||
@ -299,6 +303,8 @@ def cmake_args(self):
|
|||||||
projects.append("libcxxabi")
|
projects.append("libcxxabi")
|
||||||
if spec.satisfies("@3.9.0:"):
|
if spec.satisfies("@3.9.0:"):
|
||||||
cmake_args.append("-DCLANG_DEFAULT_CXX_STDLIB=libc++")
|
cmake_args.append("-DCLANG_DEFAULT_CXX_STDLIB=libc++")
|
||||||
|
if "+mlir" in spec:
|
||||||
|
projects.append("mlir")
|
||||||
if "+internal_unwind" in spec:
|
if "+internal_unwind" in spec:
|
||||||
projects.append("libunwind")
|
projects.append("libunwind")
|
||||||
if "+polly" in spec:
|
if "+polly" in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user