Skip to content

Commit

Permalink
Create a crate for converting Souper optimizations into Peepmatic DSL
Browse files Browse the repository at this point in the history
This crate is currently empty but is hooked up to our CI, the cargo workspace,
our publish script, etc.
  • Loading branch information
fitzgen committed Sep 10, 2020
1 parent ae6693a commit 443965b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ jobs:
--package peepmatic-fuzzing \
--package peepmatic-macro \
--package peepmatic-runtime \
--package peepmatic-test
--package peepmatic-test \
--package peepmatic-souper
- name: Rebuild Peepmatic-based peephole optimizers and test them
run: |
cargo test \
Expand Down Expand Up @@ -248,7 +249,8 @@ jobs:
--exclude peepmatic-fuzzing \
--exclude peepmatic-macro \
--exclude peepmatic-runtime \
--exclude peepmatic-test
--exclude peepmatic-test \
--exclude peepmatic-souper
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -383,6 +385,7 @@ jobs:
--exclude peepmatic-macro \
--exclude peepmatic-runtime \
--exclude peepmatic-test \
--exclude peepmatic-souper \
--exclude wasmtime-fuzz
env:
RUST_BACKTRACE: 1
Expand Down
5 changes: 5 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ term = "0.6.1"
capstone = { version = "0.6.0", optional = true }
wat = { version = "1.0.18", optional = true }
target-lexicon = "0.10"
peepmatic-souper = { path = "./peepmatic/crates/souper", version = "0.66.0", optional = true }
pretty_env_logger = "0.4.0"
file-per-thread-logger = "0.1.2"
indicatif = "0.13.0"
thiserror = "1.0.15"
walkdir = "2.2"

[features]
default = ["disas", "wasm", "cranelift-codegen/all-arch"]
default = ["disas", "wasm", "cranelift-codegen/all-arch", "peepmatic-souper"]
disas = ["capstone"]
enable-peepmatic = ["cranelift-codegen/enable-peepmatic", "cranelift-filetests/enable-peepmatic"]
wasm = ["wat", "cranelift-wasm"]
Expand Down
11 changes: 11 additions & 0 deletions cranelift/peepmatic/crates/souper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "peepmatic-souper"
version = "0.66.0"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
edition = "2018"
license = "Apache-2.0 WITH LLVM-exception"
description = "Converting Souper optimizations into Peepmatic DSL"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
1 change: 1 addition & 0 deletions cranelift/peepmatic/crates/souper/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//! Converting Souper optimizations into Peepmatic DSL.
1 change: 1 addition & 0 deletions scripts/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const CRATES_TO_PUBLISH: &[&str] = &[
"peepmatic-test-operator",
"peepmatic-runtime",
"peepmatic",
"peepmatic-souper",
// cranelift
"cranelift-entity",
"cranelift-bforest",
Expand Down

0 comments on commit 443965b

Please sign in to comment.