fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB53 linesraw
1// MIR for `main` after ConstProp
2
3fn main() -> () {
4    let mut _0: ();
5    let _1: &Packed;
6    let mut _2: &&Packed;
7
8    bb0: {
9        StorageLive(_1);
10        StorageLive(_2);
11        _2 = const {alloc1: &&Packed};
12        _1 = (*_2);
13        StorageDead(_2);
14        StorageDead(_1);
15        _0 = const ();
16        return;
17    }
18}
19
20alloc1 (static: FOO, size: 8, align: 8) {
21    ╾───────alloc12───────╼                         │ ╾──────╼
22}
23
24alloc12 (size: 180, align: 1) {
25    0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
26    0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾──alloc7── │ ............╾───
27    0x20 │ ──────────╼ 01 ef cd ab 00 00 00 00 00 00 00 00 │ ───╼............
28    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
29    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
30    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
31    0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
32    0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
33    0x80 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ╾──── │ ..............╾─
34    0x90 │ ─────alloc9─────╼ 00 00 ╾────alloc10+0x63─────╼ │ ─────╼..╾──────╼
35    0xa0 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36    0xb0 │ 00 00 00 00                                     │ ....
37}
38
39alloc7 (size: 4, align: 4) {
40    2a 00 00 00                                     │ *...
41}
42
43alloc9 (fn: main)
44
45alloc10 (size: 100, align: 1) {
46    0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
47    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
48    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
49    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
50    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
51    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52    0x60 │ 00 00 00 00                                     │ ....
53}