about summary refs log tree commit diff
path: root/compiler/stable_mir/src/mir/alloc.rs
AgeCommit message (Collapse)AuthorLines
2025-07-14rename `stable_mir` to `rustc_public`, and `rustc_smir` to `rustc_public_bridge`Makai-90/+0
2025-07-09Add opaque TypeId handles for CTFEOli Scherer-0/+3
2025-07-06move `stable_mir` back to its own crate and move `rustc_internal` to ↵Makai-0/+87
the`stable_mir` crate As part of this reorganization, some traits need to be moved from `rustc_smir::context::traits` to `stable_mir::unstable::internal_cx`. These traits are specifically designed for `InternalCx` to clarify the behavior of different functions that share the same name. This move is necessary to avoid orphan rule violations.
2025-04-05let `rustc_smir` host `stable_mir` for refactoringMakai-87/+0
2025-03-07compiler: Use size_of from the prelude instead of importedThalia Archibald-2/+2
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+4
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-06-26add serde derive Serialize to stable_mirStephen Skeirik-2/+3
2024-06-20Add blank lines after module-level `//!` comments.Nicholas Nethercote-0/+1
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
2024-03-23Rollup merge of #122762 - RoboSchmied:RoboSchmied-typo, r=workingjubileeJubilee-2/+2
fix typo of endianness fix typo endianess -> endianness
2024-03-20Update target.rs alloc.rs event.rs simd.rsRoboSchmied-2/+2
fix typos
2024-03-20resolve clippy errorsonur-ozkan-4/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-07Add instance evaluation and methods to read allocCelina G. Val-2/+34
The instance evaluation is needed to handle intrinsics such as `type_id` and `type_name`. Since we now use Allocation to represent all evaluated constants, provide a few methods to help process the data inside an allocation.
2023-11-21Add allocation test and a bit more documentationCelina G. Val-0/+7
2023-11-21Add support to get virtual table allocationCelina G. Val-0/+7
2023-11-21Add support to global allocation to stable-mirCelina G. Val-0/+37