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

Opaque pointer fixes #1158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rj-jesus
Copy link
Contributor

This fixes a few issues @stuartarchibald and I found with opaque pointers.

@gmarkall
Copy link
Member

What are the issues? Are there any test cases that should be added to clarify / check that the issues are resolved?

@rj-jesus
Copy link
Contributor Author

Hi @gmarkall, just added a few tests for this. I wasn't sure where to place them, so I created new methods for them. Please let me know if you have a better idea!

Comment on lines +2478 to +2479
self.assertEqual(ir.PointerType(int1).intrinsic_name, 'p0i1')
self.assertEqual(ir.PointerType(int1, 1).intrinsic_name, 'p1i1')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these need to be changed in opaque pointer mode to emit p<addrspace> unconditionally. Should we wait for #1160 to fix this by removing the .intrinsic_name from typed pointers? Or would you rather I add a path for opaque_pointer_enabled similar to what we have for _to_string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants