-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now correctly prints ```mlir module { llvm.mlir.global internal @i32_global(42) } ``` and ```mlir module { func.func @test_addi(%arg0 : i64) -> i64 { %0 = arith.constant 1 : i64 %1 = arith.addi %arg0, %0 : i64 return %1 : i64 } } ```
- Loading branch information
1 parent
34cfcbc
commit 22cc2bc
Showing
17 changed files
with
317 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
RUST_TOOLCHAIN: '1.80' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: '${{ env.RUST_TOOLCHAIN }}' | ||
|
||
# Compile, but don't run. | ||
- run: cargo test --no-run | ||
|
||
- run: cargo test --all-features | ||
|
||
fmt: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
if: github.ref != 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: '${{ env.RUST_TOOLCHAIN }}' | ||
|
||
- run: rustup component add rustfmt | ||
|
||
- run: cargo fmt --all --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod op; | ||
|
||
pub use op::AddiOp; | ||
pub use op::ConstantOp; | ||
pub use op::AddiOp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.