-
Notifications
You must be signed in to change notification settings - Fork 285
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
[HW] Fix instance ops in hw-flatten-io
pass
#5537
Conversation
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.
Does TypeConverter not work for CallLike ops to do this? It seems like if you're updating function args, you'd need to update the call args as well, and I would imagine that's a big use case for type converter.
If not, this seems like a reasonably common enough problem to warrant a helper lib in MLIR...
return success(); | ||
} | ||
|
||
mutable DenseSet<hw::InstanceOp> *convertedOps; |
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.
I don't think mutable
is necessary here since the pointer itself isn't modified.
Are you talking about this, and moving that into the type converter source/target materialization code? I actually suspect that this pass could be rewritten to use our |
I had forgotten about that, but yeah. |
No description provided.