Skip to content

Commit

Permalink
merge massive LIR/CLIR overhaul experimental branch with main
Browse files Browse the repository at this point in the history
  • Loading branch information
simvux committed Nov 24, 2024
2 parents 23d3ced + a5a5e65 commit d9118dc
Show file tree
Hide file tree
Showing 58 changed files with 3,269 additions and 2,923 deletions.
225 changes: 125 additions & 100 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions lumina-collections/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ pub struct KeysIter<K> {
}

impl<K: MapKey> KeysIter<K> {
pub fn range(key: K, len: usize) -> Self {
let start = key.into();
let end = start.checked_add(len).unwrap_or(usize::MAX);
KeysIter { range: start..end, _key: PhantomData }
}

pub fn up_to(key: K) -> Self {
KeysIter { range: 0..key.into(), _key: PhantomData }
}
Expand Down
11 changes: 6 additions & 5 deletions lumina-compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ take_mut = "*"
derive_more = { version = "1.0.*", features = ["from", "display", "index", "index_mut", "deref", "deref_mut", "add", "add_assign"] }
insta = "*"
tracing = "0.1.40"
cranelift = "0.112.*"
cranelift-codegen = "0.112.*"
cranelift-module = "0.112.*"
cranelift-object = "0.112.*"
cranelift-native = "0.112.*"
cranelift = "0.113.*"
cranelift-entity = "0.113.*"
cranelift-codegen = "0.113.*"
cranelift-module = "0.113.*"
cranelift-object = "0.113.*"
cranelift-native = "0.113.*"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tracing-tree = "0.3.0"
gimli = "*"
Expand Down
Loading

0 comments on commit d9118dc

Please sign in to comment.