Skip to content

Commit

Permalink
Bump SPIRV to LLVM translator. (#9400)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Sep 10, 2024
1 parent 8d4ae7e commit f708629
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 29 deletions.
15 changes: 0 additions & 15 deletions S/SPIRV_LLVM_Translator/SPIRV_LLVM_Translator@14/build_tarballs.jl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ llvm_version = v"15.0.7"
include("../common.jl")

# Collection of sources required to build attr
sources = [GitSource(repo, "0f9ad6622b1bf308facf35073c91c738b34081ba")]
sources = [GitSource(repo, "1e170e22f65d6bf01e6c592f8ed845dcceb69bea")]

# Dependencies that must be installed before this package can be built
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ llvm_version = v"16.0.6"
include("../common.jl")

# Collection of sources required to build attr
sources = [GitSource(repo, "0b107dbf421593ed6f201ea2b7976e9456bc6bd3")]
sources = [GitSource(repo, "1f9e0e36d8917cece7593771304d8db0bcd9f614")]

# Dependencies that must be installed before this package can be built
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ llvm_version = v"17.0.6"
include("../common.jl")

# Collection of sources required to build attr
sources = [GitSource(repo, "38e0a0dda82ab2807d7064b34bd7e81034ef3837")]
sources = [GitSource(repo, "3aa5bcd0c60a2c05b3a045339b2ef001465961ec")]

# Dependencies that must be installed before this package can be built
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version = v"13.0"
llvm_version = v"13.0.1"
version = v"18.0"
llvm_version = v"18.1.7"
include("../common.jl")

# Collection of sources required to build attr
sources = [GitSource(repo, "093cf279cad6f12bb22abf0a94eae9aca938aaea")]
sources = [GitSource(repo, "242df2cb83e2322b456990fb0ca3e30bd9209ed0")]

# Dependencies that must be installed before this package can be built
dependencies = [
Expand Down
3 changes: 3 additions & 0 deletions S/SPIRV_LLVM_Translator/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ if llvm_version >= v"15"
filter!(p -> !(arch(p) == "i686" && libc(p) == "musl"), platforms)
end

# missing LLVM_full
filter!(p -> !(Sys.isfreebsd(p) && arch(p) == "aarch64"), platforms)

# Bash recipe for building across all platforms
get_script(llvm_version) = raw"""
cd SPIRV-LLVM-Translator
Expand Down
16 changes: 8 additions & 8 deletions S/SPIRV_LLVM_Translator_unified/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ include(joinpath(YGGDRASIL_DIR, "platforms", "llvm.jl"))

name = "SPIRV_LLVM_Translator_unified"
repo = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git"
version = v"0.5"
version = v"0.6"

llvm_versions = [v"13.0.1", v"14.0.6", v"15.0.7", v"16.0.6", v"17.0.6"]
llvm_versions = [v"15.0.7", v"16.0.6", v"17.0.6", v"18.1.7"]

# Collection of sources required to build SPIRV_LLVM_Translator
sources = Dict(
v"13.0.1" => [GitSource(repo, "093cf279cad6f12bb22abf0a94eae9aca938aaea")],
v"14.0.6" => [GitSource(repo, "62f5b09b11b1da42274371b1f7535f6f2ab11485")],
v"15.0.7" => [GitSource(repo, "0f9ad6622b1bf308facf35073c91c738b34081ba")],
v"16.0.6" => [GitSource(repo, "0b107dbf421593ed6f201ea2b7976e9456bc6bd3")],
v"17.0.6" => [GitSource(repo, "38e0a0dda82ab2807d7064b34bd7e81034ef3837")],
v"15.0.7" => [GitSource(repo, "1e170e22f65d6bf01e6c592f8ed845dcceb69bea")],
v"16.0.6" => [GitSource(repo, "1f9e0e36d8917cece7593771304d8db0bcd9f614")],
v"17.0.6" => [GitSource(repo, "3aa5bcd0c60a2c05b3a045339b2ef001465961ec")],
v"18.1.7" => [GitSource(repo, "242df2cb83e2322b456990fb0ca3e30bd9209ed0")],
)

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = expand_cxxstring_abis(supported_platforms(; experimental=true))
filter!(p -> libc(p) != "musl", platforms) # LLVM_full+asserts isn't available for musl
filter!(p -> libc(p) != "musl", platforms) # missing LLVM_full+asserts
filter!(p -> !(Sys.isfreebsd(p) && arch(p) == "aarch64"), platforms) # missing LLVM_full

# Bash recipe for building across all platforms
get_script(llvm_version) = raw"""
Expand Down

0 comments on commit f708629

Please sign in to comment.