Skip to content

Commit

Permalink
Merge #2307
Browse files Browse the repository at this point in the history
2307: Update cranelift, impl low hanging fruit SIMD opcodes r=syrusakbary a=MarkMcCaskey

Bumps to clif 0.73 and implements the new SIMD opcodes that are 0 effort to do. (I thought i8x16popcnt would be zero effort too, but popcnt doesn't work on vectors in cranelift). Also updates `ignores.txt` due to the newly passing spectests



Co-authored-by: Mark McCaskey <[email protected]>
Co-authored-by: Syrus <[email protected]>
  • Loading branch information
3 people authored May 12, 2021
2 parents 7d491b4 + 7c96f54 commit 10cf8c5
Show file tree
Hide file tree
Showing 15 changed files with 292 additions and 196 deletions.
50 changes: 28 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions lib/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cfg-if = "0.1"
wat = { version = "1.0", optional = true }
thiserror = "1.0"
more-asserts = "0.2"
target-lexicon = { version = "0.11", default-features = false }
target-lexicon = { version = "0.12", default-features = false }
loupe = "0.1"

[target.'cfg(target_os = "windows")'.dependencies]
Expand Down Expand Up @@ -66,11 +66,6 @@ cranelift = [
"wasmer-compiler-cranelift",
"compiler",
]
# Enable Cranelift experimental x64 backend
cranelift-experimental-x64 = [
"cranelift",
"wasmer-compiler-cranelift/experimental-x64",
]
llvm = [
"wasmer-compiler-llvm",
"compiler",
Expand Down
5 changes: 0 additions & 5 deletions lib/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ cranelift = [
"wasmer-compiler-cranelift",
"compiler",
]
# Enable Cranelift experimental x64 backend
cranelift-experimental-x64 = [
"cranelift",
"wasmer-compiler-cranelift/experimental-x64",
]
llvm = [
"wasmer-compiler-llvm",
"compiler",
Expand Down
13 changes: 5 additions & 8 deletions lib/compiler-cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ edition = "2018"
wasmer-compiler = { path = "../compiler", version = "1.0.2", features = ["translator"], default-features = false }
wasmer-vm = { path = "../vm", version = "1.0.2" }
wasmer-types = { path = "../types", version = "1.0.2", default-features = false, features = ["std"] }
cranelift-entity = { version = "0.70", default-features = false }
cranelift-codegen = { version = "0.70", default-features = false, features = ["x86", "arm64"] }
cranelift-frontend = { version = "0.70", default-features = false }
cranelift-entity = { version = "0.73", default-features = false }
cranelift-codegen = { version = "0.73", default-features = false, features = ["x86", "arm64", "old-x86-backend"] }
cranelift-frontend = { version = "0.73", default-features = false }
tracing = "0.1"
hashbrown = { version = "0.9", optional = true }
rayon = "1.5"
Expand All @@ -27,8 +27,8 @@ smallvec = "1.6"
loupe = "0.1"

[dev-dependencies]
target-lexicon = { version = "0.11", default-features = false }
cranelift-codegen = { version = "0.70", features = ["all-arch"] }
target-lexicon = { version = "0.12", default-features = false }
cranelift-codegen = { version = "0.73", features = ["all-arch"] }
lazy_static = "1.4"

[badges]
Expand All @@ -39,6 +39,3 @@ default = ["std", "unwind"]
unwind = ["cranelift-codegen/unwind", "gimli"]
std = ["cranelift-codegen/std", "cranelift-frontend/std", "wasmer-compiler/std", "wasmer-types/std"]
core = ["hashbrown", "cranelift-codegen/core", "cranelift-frontend/core"]

# Enable Cranelift experimental x64 backend
experimental-x64 = ["cranelift-codegen/x64"]
Loading

0 comments on commit 10cf8c5

Please sign in to comment.