Skip to content

rename spirv backend name #24192

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

Merged
merged 2 commits into from
Jun 16, 2025
Merged

rename spirv backend name #24192

merged 2 commits into from
Jun 16, 2025

Conversation

alichraghi
Copy link
Contributor

stage2_spirv64 was misleading. we support logical and 32bit variants as well

@alexrp
Copy link
Member

alexrp commented Jun 15, 2025

spirv is used for logical pointers in LLVM, so I don't think 964e307 makes a difference one way or the other?

@alichraghi
Copy link
Contributor Author

Well, usize size is based on this function so it definitely does make a difference since we don't wanna crash on unimplemented logic (composite ints) or missing feature (int64)

@alexrp
Copy link
Member

alexrp commented Jun 15, 2025

But why does it matter if pointers are logical anyway? 32 vs 64 bits is an arbitrary choice at that point, and it seems better to match LLVM.

@alichraghi
Copy link
Contributor Author

Fair point. Now it decides based on int64 feature state

@alichraghi alichraghi marked this pull request as draft June 16, 2025 08:13
`stage2_spirv64` -> `stage2_spirv`
@alichraghi alichraghi marked this pull request as ready for review June 16, 2025 09:52
@alichraghi alichraghi changed the title rename spirv backend name & ptr bit width fix rename spirv backend name Jun 16, 2025
@alexrp alexrp enabled auto-merge June 16, 2025 12:04
@alexrp alexrp merged commit 080ee25 into ziglang:master Jun 16, 2025
10 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.

2 participants