# wasm: add atomics opcodes and refactoring · gitcafe/zig

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

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

Visibility: public

Requested revision: 09d6938df9246bac20e84f5512743e96bccdfa3d

Requested commit: 09d6938df9246bac20e84f5512743e96bccdfa3d

Commit: 09d6938df9246bac20e84f5512743e96bccdfa3d

Tree: e9a4fc0d5c8f7a410d619526a89c45ddf18f73d9

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: add atomics opcodes and refactoring

This adds the atomic opcodes for the Threads proposal to the
WebAssembly specification: https://github.com/WebAssembly/threads

PrefixedOpcode has been renamed to MiscOpcode as there's multiple
types of prefixed opcodes. This naming is similar to other tools
such as LLVM. As we now use the 0xFE prefix, we moved the
function_index MIR instruction as it was occupying the same value.
This commit includes renaming all related opcodes.

```

## Parents

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

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