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

[NFC] allocas should use the AllocaAS #3004

Merged

Conversation

AlexVlx
Copy link
Contributor

@AlexVlx AlexVlx commented Feb 9, 2025

Currently, when reverse translating, we hardcode either 0 or SPIRAS_Private as the address space for allocas. This is not ideal as it creates tight coupling with the current AS mappings. Furthermore, it is not necessary, as the DataLayout holds the AllocaAS, which is what we need. Hence, this patch changes all hardcoded callsites where we create an AllocaInst to use the DataLayout specified AS. It's NFC as it does not modify existing behaviour.

@CLAassistant
Copy link

CLAassistant commented Feb 9, 2025

CLA assistant check
All committers have signed the CLA.

@AlexVlx AlexVlx changed the title [NFC} allocas should use the AllocaAS [NFC] allocas should use the AllocaAS Feb 9, 2025
@MrSidims MrSidims merged commit c1a7e51 into KhronosGroup:main Feb 10, 2025
9 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