1
Fork 0
rust/compiler/rustc_codegen_ssa/src
Matthias Krüger 17914c89ec
Rollup merge of #100528 - tux3:riscv-bitmanip-features, r=davidtwco
Support 1st group of RISC-V Bitmanip backend target features

These target features use the same names as LLVM and `is_riscv_feature_detected!`, they are:
- zba (address generation instructions)
- zbb (basic bit manipulation)
- zbc (carry-less multiplication)
- zbs (single-bit manipulation)

The extension is frozen and ratified, and I don't think we should expect LLVM to change those feature names in the future.
For reference, the specification for the B extension can be found here: https://github.com/riscv/riscv-bitmanip/releases/download/1.0.0/bitmanip-1.0.0-38-g865e7a7.pdf)

On my current project, I see a 7.6% reduction in binary size with these features on, so I have some incentive to try to silence the "unknown feature" warning from `-Ctarget-feature` =)
2022-08-15 20:11:37 +02:00
..
back rustc_target: Update some old naming around self contained linking 2022-08-12 18:47:13 +03:00
coverageinfo Remove in_band_lifetimes from rustc_codegen_ssa 2021-12-15 00:41:41 -05:00
debuginfo Use enum2<_> instead of enum<_> for Cpp-like debuginfo enum type names. 2022-08-12 10:53:07 +02:00
mir Rollup merge of #97077 - ouz-a:Optimize-backend, r=oli-obk 2022-07-26 07:14:44 +09:00
traits Auto merge of #95548 - rcvalle:rust-cfi-2, r=nagisa 2022-07-24 01:22:36 +00:00
base.rs Reliably signal coordinator thread on panic during ongoing codegen 2022-07-27 16:19:07 +02:00
common.rs rustc_codegen_ssa: derive copy and clone for various enums 2022-05-25 10:34:35 +02:00
glue.rs use unchecked mul to compute slice sizes 2022-06-14 17:09:07 -04:00
lib.rs move emit_metadata to rustc_metadata::fs 2022-07-02 22:48:16 +09:00
meth.rs consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
mono_item.rs Add codegen for global_asm! sym operands 2022-04-15 14:36:30 +01:00
target_features.rs feat: Target features for 1st group of RISC-V Bitmanip extensions 2022-08-14 12:09:44 +02:00