rustc should use vendor names for target features #61895
Labels
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right now in source code we follow vendor names and not LLVM ones (e.g.
rdrand
and notrdrnd
). Translation is handled here. But when enabling target feature viarustc
flags we have to use LLVM names, i.e.-C target-feature=+rdrnd
and+rdrand
will not work. So we have inconsistency on our hands.At the very least vendor names provided in
rustc
flags should be translated to LLVM ones. Additionally I think we should not expose LLVM names at all, including inrustc --print target-features
.Relevant: #50077, #48369
The text was updated successfully, but these errors were encountered: