Skip to content
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

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

MaheshRavishankar
Copy link
Contributor

This takes care of handling memrefs with address space '2'.

@@ -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',
Copy link
Collaborator

@stephenneuendorffer stephenneuendorffer Dec 6, 2023

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Collaborator

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

@makslevental
Copy link
Contributor

@stephenneuendorffer can I merge?

@stephenneuendorffer stephenneuendorffer merged commit 7075254 into Xilinx:main Dec 7, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants