# wasm: use atomic feature for \`@cmpxchg\` when enabled · gitcafe/zig

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

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

Visibility: public

Requested revision: 650976b2262a9ce715ebeb1e5949b7b453b75f2f

Requested commit: 650976b2262a9ce715ebeb1e5949b7b453b75f2f

Commit: 650976b2262a9ce715ebeb1e5949b7b453b75f2f

Tree: 5b1ced4e88720419eb026eb2d5d9846c05967a53

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: use atomic feature for `@cmpxchg` when enabled

When the user passes the cpu feature `atomics` to the target triple,
the backend will lower the AIR instruction using opcodes from the
atomics feature instead of manually lowering it.

```

## Parents

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

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