-
Notifications
You must be signed in to change notification settings - Fork 220
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
Handle constant sized array allocations using no extension #2713
Conversation
In LLVM, array allocations might have constant size: ```llvm %array = alloca i32, i64 4, align 4 ``` Represent this kind of allocations using `OpVariable + OpBitcast`. Before this patch, the `SPV_INTEL_variable_length_array` extension was used. Signed-off-by: Victor Perez <victor.perez@codeplay.com>
5d2dc97
to
9520b63
Compare
MLIR-based compilers will probably generate this kind of allocations for constant size array allocations as that's what MLIR memory allocation operations lower to. |
@MrSidims can I get a review here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! Please consider a test change
Failing tests not because of lines I've even touched. |
Restarting CI |
In LLVM, array allocations might have constant size:
Represent this kind of allocations using
OpVariable + OpBitcast
.Before this patch, the
SPV_INTEL_variable_length_array
extension was used.