-
Notifications
You must be signed in to change notification settings - Fork 221
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
llvm-spirv: Set Opaque Pointers support also when compiling LLVM to SPIR-V #2069
base: llvm_release_160
Are you sure you want to change the base?
llvm-spirv: Set Opaque Pointers support also when compiling LLVM to SPIR-V #2069
Conversation
Seems like a lot of tests are failing, because they expect But maybe fixing the translator is the better approach here, though for llvm-16 I think it's better to fallback to keep opaque pointers disabled. |
…PIR-V LLVM implicitly upgrades modules to opaque pointers, so we have to do it also when translating LLVM to SPIR-V.
674579e
to
91b4185
Compare
maybe we even want to disable it by default as this might break users? Not quite sure. Any thoughts on this? |
AFAIK opaque pointers are not default for LLVM 16, so I'd vote not to enable them here. @jcranmer-intel WDYT? |
they are on by default though, so that's why I need this change so the LLVM tooling implicitly upgrades to opaque pointers in its tools as well (e.g. It's already set for the "SPIRV to LLVM" path, just not in the "LLVM to SPIRV" one |
I've created #2074 for flipping the default of -emit-opaque-pointers on trunk. The proper way to set the flag for LLVM-to-SPIR-V translation is to use the |
but that doesn't work? |
LLVM implicitly upgrades modules to opaque pointers, so we have to do it also when translating LLVM to SPIR-V.
This should also get backported to branches containing 0fe726f (and backports).