Closed
Description
Added as part of the SIMD work, supports feature detection based on e.g. target processor. This issue tracks stabilization.
Relevant issues and bugs
- repr(simd) is unsound #44367 -- repr(simd) is unsound
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
alexcrichton commentedon Nov 9, 2015
The only known issue with this I'm aware of is that it doesn't doesn't use the same mechanism in LLVM to query whether a feature is activated or not. We already maintain our own list of what features are allowed here (e.g. we're not just exposing what LLVM accepts) and then we currently map that down to an LLVM feature name. When testing whether the LLVM feature is activated, however, we should robustly query LLVM via its own internal mechanisms rather than explicitly checking ourselves.
gnzlbg commentedon Dec 18, 2015
I opened a separate issue #30462 for the missing
cfg_target_feature
for bit manipulation instruction sets.alexcrichton commentedon Feb 24, 2016
cfg target_feature -- for github issue searchability as well
also a new forum link -- https://internals.rust-lang.org/t/comprehensive-list-of-desired-cfg-target-feature-s/3201
gnzlbg commentedon Jun 21, 2016
So this is a list of the current target features supported by
llc -mattr=help
:Would a patch that implements macros for all of these need to go through the RFC process?
Support detecting all llc's x86 target features
aturon commentedon Jun 21, 2016
cc @BurntSushi @eddyb @nikomatsakis -- I believe all of you were recently involved in discussion around SIMD stabilization.
bluss commentedon Oct 18, 2016
This would be useful to use in matrixmultiply, ndarray even before simd stabilization. I get better results if I can pick the particular stable rust-implemented loop that generates best code given the particular available vector types / available target features.
91 remaining items