about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir/interpret/allocation
AgeCommit message (Collapse)AuthorLines
2025-09-10avoid calling insert_presorted more than onceRalf Jung-10/+16
2025-09-10interpret: copy_provenance: avoid large intermediate buffer for large repeat ↵Ralf Jung-58/+47
counts
2025-09-08const-eval: disable pointer fragment supportRalf Jung-2/+14
2025-08-22interpret/allocation: get_range on ProvenanceMapNia Espera-0/+11
2025-07-30const-eval: full support for pointer fragmentsRalf Jung-71/+71
2025-07-10interpret/allocation: expose init + write_wildcards on a rangeNia Espera-6/+22
2025-07-07compiler: Parse `p-` specs in datalayout string, allow definition of custom ↵Edoardo Marangoni-8/+7
default data address space
2025-07-02interpret: move the native call preparation logic into MiriRalf Jung-1/+1
2025-03-15Move codec module back into middleMichael Goulet-7/+6
2025-03-09Rollup merge of #138040 - thaliaarchi:use-prelude-size-of.compiler, ↵Matthias Krüger-2/+2
r=compiler-errors compiler: Use `size_of` from the prelude instead of imported Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. Apply this change across the compiler. These functions were added to all preludes in Rust 1.80. r? ``@compiler-errors``
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.
2025-03-03interpret/provenance_map: consistently use range_is_emptyRalf Jung-21/+21
2025-02-27Optimize empty provenance range checks.Nicholas Nethercote-10/+27
Currently it gets the pointers in the range and checks if the result is empty, but it can be done faster if you combine those two steps.
2025-02-22Greatly simplify lifetime captures in edition 2024Michael Goulet-1/+1
2025-01-19Manual cleanup of some `is_{or_none|some_and}` usagesYotam Ofek-1/+1
2025-01-19Run `clippy --fix` for `unnecessary_map_or` lintYotam Ofek-2/+2
2024-12-05extend Miri to correctly pass mutable pointers through FFIStrophox-0/+19
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-11-03compiler: Directly use rustc_abi in metadata and middleJubilee Young-2/+2
Stop reexporting ReprOptions from middle::ty
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-08-29Add `warn(unreachable_pub)` to `rustc_middle`.Nicholas Nethercote-1/+1
I am surprised the diff is so small for this enormous crate.
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_middle`.Nicholas Nethercote-3/+3
2024-04-29Remove `extern crate rustc_macros` from `rustc_middle`.Nicholas Nethercote-0/+2
2023-12-07ctfe interpreter: extend provenance so that it can track whether a pointer ↵Ralf Jung-10/+11
is immutable
2023-10-13Format all the let chains in compilerMichael Goulet-1/+3
2023-08-02const validation: point at where we found a pointer but expected an integerRalf Jung-5/+9
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-5/+1
2023-04-17Bypass the varint path when encoding InitMaskBen Kimock-1/+31
2023-04-10Fix typos in compilerDaniPopes-2/+2
2023-03-28address review commentsRémy Rakic-4/+8
Move tests and limit the init mask's structures/fields visibility.
2023-03-27readability tweaksRémy Rakic-22/+22
2023-03-27add more InitMask test coverageRémy Rakic-0/+175
2023-03-27make InitMask lazy for fully init/uninit casesRémy Rakic-58/+225
Avoid materializing bits in the InitMask bitset when a single value would be enough: when the mask represents a fully initialized or fully uninitialized const allocation.
2022-11-26interpret: remove PartialOrd from a bunch of types that do not have or need ↵Ralf Jung-2/+2
a sensible order
2022-11-14assert that we are (de)seiralizing ProvenanceMap correctlyRalf Jung-2/+4
2022-11-14Manually implement `Encodable` for ProvenanceMap to avoid serializing an ↵Oli Scherer-1/+16
always-none option
2022-11-09another optimization attemptRalf Jung-66/+83
2022-11-08another attempt at performance improvementsRalf Jung-23/+26
2022-11-07less unsupported errors in Miri, and clarifying commentsRalf Jung-2/+3
2022-11-07try to make things faster when only ptr provenance can existRalf Jung-5/+17
2022-11-06make uninit_mask a unit testRalf Jung-1/+20
2022-11-06move InitMask to its own moduleRalf Jung-3/+530
2022-11-06interpret: support for per-byte provenanceRalf Jung-0/+274