-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add a pass to normalize address spaces before lowering to standard ops. #834
Add a pass to normalize address spaces before lowering to standard ops. #834
Conversation
@@ -694,6 +694,7 @@ async def run_flow(self): | |||
if(opts.unified): | |||
self.file_opt_with_addresses = os.path.join(self.tmpdirname, 'input_opt_with_addresses.mlir') | |||
await self.do_call(progress_bar.task, ['aie-opt', '--aie-localize-locks', | |||
'--aie-normalize-address-spaces', |
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.
Should this get removed from aie-opt-passes?
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.
Yes, but it was suggested that this has to run before conversion to standard based on an error with handle address space 2
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.
Thanks, After your patch, I went back and actually processed what Jeff had indicated.
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.
It doesn't make sense to me to run this pass twice... so I factored it out of aie_opt_passes
12bc4e4
to
e7b9708
Compare
This takes care of handling memrefs with address space '2'.
e7b9708
to
550b273
Compare
@stephenneuendorffer can I merge? |
This takes care of handling memrefs with address space '2'.