about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-05 15:05:48 +0100
committerGitHub <noreply@github.com>2022-01-05 15:05:48 +0100
commitc570fcb0c4652172745ee63dfc73c785fda91108 (patch)
treeb98a3df7e7430d8949b74dbbda4746cd0851c9a5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent051d591edff3f771d6aa7fb6c386fdc4177fc5cd (diff)
parent06f44530271c2bf69dd1e3d977885495b3b2bf3b (diff)
downloadrust-c570fcb0c4652172745ee63dfc73c785fda91108.tar.gz
rust-c570fcb0c4652172745ee63dfc73c785fda91108.zip
Rollup merge of #92574 - luojia65:riscv-kernel-dev-rust, r=Amanieu
Add RISC-V detection macro and more architecture instructions

This pull request includes:

- Update `stdarch` dependency to include ratified RISC-V supervisor and hypervisor instruction intrinsics which is useful in Rust kernel development
- Add macro `is_riscv_feature_detected!`
- Modify impl of `core::hint::spin_loop` to comply with latest version of `core::arch`

After this update, users may now develop RISC-V kernels and user applications more freely.

r? `@Amanieu`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions