Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[workspace]
members = ["spirti"]

[package]
name = "spirt"
description = "Shader-focused IR to target, transform and translate from."
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ global_var GV0 in spv.StorageClass.Output: s32

func F0() -> spv.OpTypeVoid {
loop(v0: s32 <- 1s32, v1: s32 <- 1s32) {
v2 = spv.OpSLessThan(v1, 10s32): bool
v2 = s.lt(v1, 10s32): bool
(v3: s32, v4: s32) = if v2 {
v5 = spv.OpIMul(v0, v1): s32
v6 = spv.OpIAdd(v1, 1s32): s32
v5 = i.mul(v0, v1): s32
v6 = i.add(v1, 1s32): s32
(v5, v6)
} else {
(spv.OpUndef: s32, spv.OpUndef: s32)
(undef: s32, undef: s32)
}
(v3, v4) -> (v0, v1)
} while v2
Expand Down
21 changes: 21 additions & 0 deletions spirti/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "spirti"
version = "0.1.0"
edition = "2021"

[dependencies]
spirt = { path = ".." }

# FIXME(eddyb) deduplicate these by the workspace inheritance feature.
arrayvec = "0.7.1"
derive_more = "0.99.17"
itertools = "0.10.3"
lazy_static = "1.4.0"
rustc-hash = "1.1.0"
smallvec = { version = "1.7.0", features = ["serde", "union"] }

image = "0.24.6"
rayon = { version = "1.7.0", optional = true }

[features]
default = ["rayon"]
Loading