-
Notifications
You must be signed in to change notification settings - Fork 51
Introduce OperationLike::walk #708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ready for review at your convenience @raviqqe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes!
} | ||
|
||
/// Convenience for a pre-order walk. | ||
fn walk_pre<F>(&self, callback: F) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move these wrapper methods under the helpers
module or remove them for now? Currently, we have a policy to have one-to-one correspondence between the Rust API and C API as much as possible in the primary API.
OK, thanks for the feedback. Extra wrapper methods are gone now. |
Thank you for the changes! |
This exposes mlir_sys::mlirOperationWalk as OperationLike::walk, OperationLike::walk_pre, & OperationLike::walk_post
There are
#[test]
s forwalk_pre
&walk_post
This addresses #707