# stage1: eliminate the IrInst base struct · gitcafe/zig

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

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

Visibility: public

Requested revision: af20fdbce71d6799ab8fdca4374ade80755b04a3

Requested commit: af20fdbce71d6799ab8fdca4374ade80755b04a3

Commit: af20fdbce71d6799ab8fdca4374ade80755b04a3

Tree: e1d2c8779dde26ea40a01a658c04c8a8249e487d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: eliminate the IrInst base struct

This commit intentions to have no functional changes. The only purpose
is to delete the struct IrInst, which is the common base struct that
both IrInstSrc (ZIR) and IrInstGen (AIR) instructions embed.

This untangles stage1 ZIR and AIR memory layout, paving the way for a
following commit to reduce memory usage.

```

## Parents

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

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