Skip to content

Commit

Permalink
Add BlockApi trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 committed Dec 9, 2024
1 parent 73a214d commit ad7998f
Show file tree
Hide file tree
Showing 19 changed files with 242 additions and 93 deletions.
2 changes: 1 addition & 1 deletion macro/tests/operand.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod utility;

use melior::ir::{Block, Location, Type};
use melior::ir::{block::BlockApi, Block, Location, Type};
use utility::*;

melior_macro::dialect! {
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/arith.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ mod tests {
dialect::func,
ir::{
attribute::{StringAttribute, TypeAttribute},
block::BlockApi,
r#type::FunctionType,
Attribute, Block, Location, Module, Region, Type,
},
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/cf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
attribute::{
DenseElementsAttribute, DenseI32ArrayAttribute, IntegerAttribute, StringAttribute,
},
block::BlockApi,
operation::OperationBuilder,
r#type::RankedTensorType,
Block, Identifier, Location, Operation, Type, Value,
Expand Down
2 changes: 1 addition & 1 deletion melior/src/dialect/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn r#return<'c>(operands: &[Value<'c, '_>], location: Location<'c>) -> Opera
mod tests {
use super::*;
use crate::{
ir::{Block, Module, Type},
ir::{block::BlockApi, Block, Module, Type},
test::create_test_context,
};

Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ mod tests {
dialect::func,
ir::{
attribute::{StringAttribute, TypeAttribute},
block::BlockApi,
r#type::{FunctionType, IntegerType},
Block, Location, Module, Region, Type,
},
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ mod tests {
},
ir::{
attribute::{IntegerAttribute, StringAttribute, TypeAttribute},
block::BlockApi,
r#type::{FunctionType, IntegerType},
Block, Module, Region,
},
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/memref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ mod tests {
dialect::{func, index},
ir::{
attribute::{DenseElementsAttribute, StringAttribute, TypeAttribute},
block::BlockApi,
r#type::{FunctionType, IntegerType, RankedTensorType},
Block, Module, Region, Type,
},
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/ods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ mod tests {
dialect,
ir::{
attribute::{IntegerAttribute, StringAttribute, TypeAttribute},
block::BlockApi,
r#type::{FunctionType, IntegerType},
Block, Location, Module, Region, Type,
},
Expand Down
1 change: 1 addition & 0 deletions melior/src/dialect/scf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ mod tests {
dialect::{arith, func},
ir::{
attribute::{FloatAttribute, IntegerAttribute, StringAttribute, TypeAttribute},
block::BlockApi,
r#type::{FunctionType, IntegerType, Type},
Attribute, Block, Module,
},
Expand Down
2 changes: 1 addition & 1 deletion melior/src/helpers/builtin.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
ir::{Block, Operation, Value},
ir::{block::BlockApi, Block, Operation, Value},
Error,
};

Expand Down
1 change: 1 addition & 0 deletions melior/src/helpers/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::{
attribute::{
DenseI32ArrayAttribute, DenseI64ArrayAttribute, IntegerAttribute, TypeAttribute,
},
block::BlockApi,
r#type::IntegerType,
Attribute, Block, Location, Type, Value, ValueLike,
},
Expand Down
Loading

0 comments on commit ad7998f

Please sign in to comment.