Skip to content

Commit 3abd2fa

Browse files
authored
Update melior (#1061)
1 parent 934ec38 commit 3abd2fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+112
-210
lines changed

Cargo.lock

Lines changed: 51 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ itertools = "0.13.0"
7070
lazy_static = "1.5"
7171
libc = "0.2"
7272
llvm-sys = "191.0.0"
73-
melior = { version = "0.20.2", features = ["ods-dialects", "helpers"] }
73+
melior = { version = "0.21.0", features = ["ods-dialects", "helpers"] }
7474
mlir-sys = { version = "0.4.1" }
7575
num-bigint = "0.4.6"
7676
num-traits = "0.2"

src/compiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ use melior::{
8484
},
8585
operation::OperationBuilder,
8686
r#type::{FunctionType, IntegerType, MemRefType},
87-
Attribute, AttributeLike, Block, BlockRef, Identifier, Location, Module, Region, Type,
88-
Value,
87+
Attribute, AttributeLike, Block, BlockLike, BlockRef, Identifier, Location, Module, Region,
88+
Type, Value,
8989
},
9090
Context,
9191
};

src/libfuncs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use cairo_lang_sierra::{
2525
};
2626
use melior::{
2727
dialect::{arith, cf},
28-
ir::{Block, BlockRef, Location, Module, Operation, Region, Value},
28+
ir::{Block, BlockLike, BlockRef, Location, Module, Operation, Region, Value},
2929
Context,
3030
};
3131
use num_bigint::BigInt;

src/libfuncs/array.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ use melior::{
2424
cf, llvm, ods, scf,
2525
},
2626
ir::{
27-
attribute::IntegerAttribute, r#type::IntegerType, Block, Location, Region, Value, ValueLike,
27+
attribute::IntegerAttribute, r#type::IntegerType, Block, BlockLike, Location, Region,
28+
Value, ValueLike,
2829
},
2930
Context,
3031
};

src/libfuncs/bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use cairo_lang_sierra::{
1818
};
1919
use melior::{
2020
dialect::{arith, llvm},
21-
ir::{r#type::IntegerType, Block, Location},
21+
ir::{r#type::IntegerType, Block, BlockLike, Location},
2222
Context,
2323
};
2424

src/libfuncs/bounded_int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use melior::{
2626
arith::{self, CmpiPredicate},
2727
cf,
2828
},
29-
ir::{r#type::IntegerType, Block, Location, Value, ValueLike},
29+
ir::{r#type::IntegerType, Block, BlockLike, Location, Value, ValueLike},
3030
Context,
3131
};
3232
use num_bigint::{BigInt, Sign};

src/libfuncs/box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use melior::{
2222
llvm::{self, r#type::pointer, LoadStoreOptions},
2323
ods,
2424
},
25-
ir::{attribute::IntegerAttribute, r#type::IntegerType, Block, Location},
25+
ir::{attribute::IntegerAttribute, r#type::IntegerType, Block, BlockLike, Location},
2626
Context,
2727
};
2828

src/libfuncs/bytes31.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use melior::{
2121
arith::{self, CmpiPredicate},
2222
cf,
2323
},
24-
ir::{Attribute, Block, Location, Value},
24+
ir::{Attribute, Block, BlockLike, Location, Value},
2525
Context,
2626
};
2727
use num_bigint::BigUint;

src/libfuncs/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use cairo_lang_sierra::{
1919
};
2020
use melior::{
2121
dialect::arith::{self, CmpiPredicate},
22-
ir::{r#type::IntegerType, Block, Location, Value, ValueLike},
22+
ir::{r#type::IntegerType, Block, BlockLike, Location, Value, ValueLike},
2323
Context,
2424
};
2525
use num_bigint::{BigInt, Sign};

0 commit comments

Comments
 (0)