# stage2 ARM: Save callee-saved registers · gitcafe/zig

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

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

Visibility: public

Requested revision: 297eabd4accbcae42bfe821078a79e4af06a2dde

Requested commit: 297eabd4accbcae42bfe821078a79e4af06a2dde

Commit: 297eabd4accbcae42bfe821078a79e4af06a2dde

Tree: 93aef82dce14373b5f0ff6ebb055acebec73d728

Author: joachimschmidt557

Committer: Veikka Tuominen

## Message

```
stage2 ARM: Save callee-saved registers

Add a new allocated_registers bitmap to keep track of all callee-saved
registers allocated during generation of this function.

Function(.arm).gen uses this data to generate instructions in the
function prologue and epilogue to push and pop these registers
respectively.

```

## Parents

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

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