# riscv: \`@atomicRmw\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 0460572899482f7aa7ec6d9d177ed48984802c80

Requested commit: 0460572899482f7aa7ec6d9d177ed48984802c80

Commit: 0460572899482f7aa7ec6d9d177ed48984802c80

Tree: 027b9132b140fbfde4f0d7b3344a84c02b8699ab

Author: David Rubin

Committer: David Rubin

## Message

```
riscv: `@atomicRmw`

Now we generate debug undefined constants when the user asks for them to dedup across the function decl. This takes 2 instructions instead of 7 in the RISC-V backend.

TODO, we need to dedupe across function decl boundaries.

```

## Parents

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

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