# stage2 regalloc: Add freezeRegs/unfreezeRegs API · gitcafe/zig

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

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

Visibility: public

Requested revision: 35503b3d3fe1bfce19f1ea3e78a75ce87b0ed646

Requested commit: 35503b3d3fe1bfce19f1ea3e78a75ce87b0ed646

Commit: 35503b3d3fe1bfce19f1ea3e78a75ce87b0ed646

Tree: 0ca32ae96bd55966460f56df40443be64c3c0307

Author: joachimschmidt557

Committer: Jakub Konka

## Message

```
stage2 regalloc: Add freezeRegs/unfreezeRegs API

The freeze/unfreeze API replaces the exceptions API for hopefully
preventing bugs in codegen code using the RegisterManager. The
exceptions API is still available for backwards compatibility and will
be removed once all backends transition to the new freeze/unfreeze
API.

```

## Parents

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

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