Skip to content

Commit

Permalink
Update documentation (#107)
Browse files Browse the repository at this point in the history
- Update documentation
- Fix
  • Loading branch information
raviqqe committed May 8, 2023
1 parent b3ab31f commit 9cf52dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions melior/src/dialect/arith.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::ir::{operation::Builder, Location, Operation, Value};

/// Create a `arith.addi` operation.
pub fn addi<'c>(lhs: Value, rhs: Value, location: Location<'c>) -> Operation<'c> {
binary_operator("arith.addi", lhs, rhs, location)
}
Expand Down
2 changes: 2 additions & 0 deletions melior/src/dialect/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::{
Context,
};

/// Create a `func.func` operation.
pub fn func<'c>(
context: &'c Context,
name: Attribute<'c>,
Expand All @@ -19,6 +20,7 @@ pub fn func<'c>(
.build()
}

/// Create a `func.return` operation.
pub fn r#return<'c>(operands: &[Value], location: Location<'c>) -> Operation<'c> {
Builder::new("func.return", location)
.add_operands(operands)
Expand Down

0 comments on commit 9cf52dc

Please sign in to comment.