# stage2: add separate tag for MI encoding · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/08ea1a2eab9472389d57ddbd97e307fcb096a992)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 08ea1a2eab9472389d57ddbd97e307fcb096a992

Requested commit: 08ea1a2eab9472389d57ddbd97e307fcb096a992

Commit: 08ea1a2eab9472389d57ddbd97e307fcb096a992

Tree: 6f546b4f1cc266f56fd9640713ae3de750c64504

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
stage2: add separate tag for MI encoding

To request memory-immediate encoding at the MIR side, we should now
use a new tag such as `mov_mem_imm` where the size of the memory
pointer is encoded as the flags:

```
0b00 => .byte_ptr,
0b01 => .word_ptr,
0b10 => .dword_ptr,
0b11 => .qword_ptr,
```

````

## Parents

- [be5130ec535456559497ac241ac9fa76c4bbb8ca](https://git.cafe/gitcafe/zig/commit/be5130ec535456559497ac241ac9fa76c4bbb8ca?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/08ea1a2eab9472389d57ddbd97e307fcb096a992?format=markdown)
