ARM: expose `rclass` and `dsp` target features

- `dsp`: the subtarget supports the DSP (saturating arith. and such)
         instructions
- `rclass`: target is a Cortex-R

Both features are useful to support ARM MCUs on `coresimd`.

Note: Cortex-R52 is the first Armv8-R with `neon` support
This commit is contained in:
Paolo Teti 2018-07-25 09:27:55 +02:00
parent 1398572403
commit 580f437ff2
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ unsafe fn configure_llvm(sess: &Session) {
const ARM_WHITELIST: &[(&str, Option<&str>)] = &[
("mclass", Some("arm_target_feature")),
("rclass", Some("arm_target_feature")),
("dsp", Some("arm_target_feature")),
("neon", Some("arm_target_feature")),
("v7", Some("arm_target_feature")),
("vfp2", Some("arm_target_feature")),