diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-05-11 17:52:00 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-08-21 05:27:14 +0400 |
| commit | 5b32aa074762faa5d7132aa9d2943cf35a05d833 (patch) | |
| tree | be05172e96c4f26b3b55886ad7e06c5698339bbb /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | ee65a1018f54669b17c97bad979edfea1accafbf (diff) | |
| download | rust-5b32aa074762faa5d7132aa9d2943cf35a05d833.tar.gz rust-5b32aa074762faa5d7132aa9d2943cf35a05d833.zip | |
Add pointer masking convenience functions
This commit adds the following functions all of which have a signature `pointer, usize -> pointer`: - `<*mut T>::mask` - `<*const T>::mask` - `intrinsics::ptr_mask` These functions are equivalent to `.map_addr(|a| a & mask)` but they utilize `llvm.ptrmask` llvm intrinsic. *masks your pointers*
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
