Skip to content

Commit

Permalink
Disable prev in block function temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Jun 26, 2024
1 parent ec6041d commit 89bc2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions melior/src/ir/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ impl<'c> Operation<'c> {
unsafe { OperationRefMut::from_option_raw(mlirOperationGetNextInBlock(self.raw)) }
}

/// Returns a reference to the next operation in the same block.
/// Returns a reference to the previous operation in the same block.
pub fn previous_in_block(&self) -> Option<OperationRef<'c, '_>> {
unsafe { OperationRef::from_option_raw(mlirOperationGetNextInBlock(self.raw)) }
todo!("mlirOperationGetPrevInBlock is not exposed in the C API")
}

/// Returns a reference to a parent operation.
Expand Down

0 comments on commit 89bc2de

Please sign in to comment.