Skip to content

Commit 84891e8

Browse files
authored
Merge pull request #125 from Pat-Lafon/brilirs-stable
Brilirs stable
2 parents 1b02d8a + 9071d8f commit 84891e8

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

benchmarks/turnt_brilirs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
command = "bril2json < {filename} | cargo +nightly run --manifest-path ../brilirs/Cargo.toml --quiet -- -p {args}"
1+
command = "bril2json < {filename} | cargo run --manifest-path ../brilirs/Cargo.toml --quiet -- -p {args}"
22
output.out = "-"
33
output.prof = "2"

brilirs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ benchmark:
1414

1515
.PHONY: release
1616
release:
17-
RUSTFLAGS="-C target-cpu=native" cargo +nightly build --release
17+
RUSTFLAGS="-C target-cpu=native" cargo build --release
1818

1919
.PHONY: compare
2020
compare: release
@@ -26,4 +26,4 @@ compare: release
2626
# This is primarily used for running examples and debuging a bril program
2727
.PHONY: example
2828
example:
29-
bril2json < ../benchmarks/sqrt.bril | cargo +nightly run
29+
bril2json < ../benchmarks/sqrt.bril | cargo run

brilirs/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(or_patterns)]
2-
31
use error::InterpError;
42

53
mod basic_block;

docs/tools/brilirs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ Fast Interpreter in Rust
22
========================
33

44
The `brilirs` directory contains a fast Bril interpreter written in [Rust][].
5-
It is a drop-in replacement for the [reference interpreter](interp.md) that prioritizes speed over completeness and hacakability.
5+
It is a drop-in replacement for the [reference interpreter](interp.md) that prioritizes speed over completeness and hackability.
66
It implements [core Bril](../lang/core.md) and the [SSA][], [memory][], and [floating point][float] extensions.
77

88
Read [more about the implementation][blog], which is originally by Wil Thomason and Daniel Glus.
99

1010
Install
1111
-------
12-
To use `brilirs` you will need to [install Rust](https://www.rust-lang.org/tools/install) and add the nightly channel with `rustup toolchain install nightly`. Use `echo $PATH` to check that `$HOME/.cargo/bin` is on your [path](https://unix.stackexchange.com/a/26059/61192).
12+
To use `brilirs` you will need to [install Rust](https://www.rust-lang.org/tools/install). Use `echo $PATH` to check that `$HOME/.cargo/bin` is on your [path](https://unix.stackexchange.com/a/26059/61192).
1313

1414
In the `brilirs` directory, build the interpreter with:
1515

16-
cargo +nightly install --path .
16+
cargo install --path .
1717

1818
Run a program by piping a JSON Bril program into it:
1919

test/fail/turnt_brilirs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
command = "bril2json < {filename} | cargo +nightly run --manifest-path ../../brilirs/Cargo.toml -- {args}"
1+
command = "bril2json < {filename} | cargo run --manifest-path ../../brilirs/Cargo.toml -- {args}"
22
return_code = 2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
command = "bril2json < {filename} | cargo +nightly run --manifest-path ../../brilirs/Cargo.toml -- {args}"
1+
command = "bril2json < {filename} | cargo run --manifest-path ../../brilirs/Cargo.toml -- {args}"
22
return_code = 2
33
output.err = "2"

test/interp/turnt_brilirs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
command = "bril2json < {filename} | cargo +nightly run --manifest-path ../../brilirs/Cargo.toml -- {args}"
1+
command = "bril2json < {filename} | cargo run --manifest-path ../../brilirs/Cargo.toml -- {args}"

test/mem/turnt_brilirs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
command = "bril2json < {filename} | cargo +nightly run --manifest-path ../../brilirs/Cargo.toml -- {args}"
1+
command = "bril2json < {filename} | cargo run --manifest-path ../../brilirs/Cargo.toml -- {args}"

0 commit comments

Comments
 (0)