about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-27 19:08:00 +0200
committerGitHub <noreply@github.com>2024-09-27 19:08:00 +0200
commitfd9d961ed803a4ee5e9943c0e8c24acde528a56d (patch)
tree070f6d6a56eaf236ed1edde4bee6cc65ba24bdb8 /compiler/rustc_codegen_llvm/src
parent56e5bfac284a4394700a6df7ca9e176d5347e29a (diff)
parent36455c6f6b6e4e626bbcb0144dfac5ccfb30e5ba (diff)
downloadrust-fd9d961ed803a4ee5e9943c0e8c24acde528a56d.tar.gz
rust-fd9d961ed803a4ee5e9943c0e8c24acde528a56d.zip
Rollup merge of #130873 - taiki-e:ppc64-atomic, r=Amanieu
rustc_target: Add powerpc64 atomic-related features

This adds the following two target features to unstable powerpc_target_feature.

- `partword-atomics`: 8-bit and 16-bit atomic instructions (`l{b,h}arx` and `st{b,h}cx.`) ([definition in LLVM](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L170-L172))
- `quadword-atomics`: 128-bit atomic instructions (`lqarx` and `stqcx.`) ([definition in LLVM](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L173-L175))

Both features are [available on power8+](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/PowerPC/PPC.td#L408-L422), so enabled by default for `powerpc64le-*` targets.

r? `@Amanieu`

`@rustbot` label +O-PowerPC
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions