Skip to content

Commit

Permalink
Decouple TargetFeature strings.
Browse files Browse the repository at this point in the history
"arm" and "aarch64" support different sets of `target_feature` and
`simd_test` arguments, and for "arm", the set of features that can be
dynamically detected is different again. Restructure the generator code
to allow this to be expressed accurately (in future patches).

This implementation preserves the way that target features are specified
for shared intrinsics, because this has an impact on the generated
documentation. In particular, rustdoc cannot look inside
`cfg_attr(target_arch = ...)` tests, so we use unconditional
`target_feature` attributes where possible.
  • Loading branch information
jacobbramley committed Jan 4, 2023
1 parent a0c30f3 commit cdd26c8
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 209 deletions.
Loading

0 comments on commit cdd26c8

Please sign in to comment.