-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Re-add rustc_codegen_ssa::builder::array_alloca #104022
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @wesleywiser (or someone else) soon. Please see the contribution instructions for more information. |
Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo |
This function was removed in the rust-lang#102551 I need this function in rust-lang#100316 for the custom entry function for UEFI. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
35cbc2b
to
69af784
Compare
From a brief glance to #100316, this looks unnecessary. Array allocas are non-canonical and only needed if the alloca is dynamically sized, which does not appear to be the case here. You can create a standard |
Thanks. When you mean standard bx.alloca(cx.type_array(cx.type_i8p(), bx.const_int(cx.type_int(), 2)), Align::ONE); |
It's probably just |
Moved type_array function to rustc_codegen_ssa::BaseTypeMethods trait. This allows using normal alloca function to create arrays as suggested in rust-lang#104022. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Add type_array to BaseTypeMethods Moved `type_array` function to `rustc_codegen_ssa::BaseTypeMethods` trait. This allows using normal `alloca` function to create arrays as suggested in rust-lang#104022. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Add type_array to BaseTypeMethods Moved `type_array` function to `rustc_codegen_ssa::BaseTypeMethods` trait. This allows using normal `alloca` function to create arrays as suggested in rust-lang#104022. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Moved type_array function to rustc_codegen_ssa::BaseTypeMethods trait. This allows using normal alloca function to create arrays as suggested in rust-lang/rust#104022. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Moved type_array function to rustc_codegen_ssa::BaseTypeMethods trait. This allows using normal alloca function to create arrays as suggested in rust-lang/rust#104022. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
This function was removed in the #102551
I need this function in #100316 for the custom entry function for UEFI.
Signed-off-by: Ayush Singh ayushsingh1325@gmail.com