Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Move FeatureSpecRestrict into core 8.0-R architecture.
It was included in HasV8_0rOps when D88660 first introduced that architecture definition. In D118045 I moved it out of there and into ProcessorFeatures.R82, so that -mcpu=cortex-r82 would continue to behave the same as before but -march=armv8-r would include only the mandatory parts of the architecture. In fact, that was a mistake. Firstly, Cortex-R82 _doesn't_ implement that feature, so it makes no sense to deliberately enable it for that CPU in particular. But also, it's an extension that only adds system registers, and we're generally more relaxed about where we enable those (because kernel developers find it useful to write sysreg-access instructions after runtime checking, and because sysreg accesses aren't manufactured during code generation so the risk is small). So, in line with that usual AArch64 policy, FeatureSpecRestrict ought to be considered part of 8.0-R for LLVM purposes. So I'm moving it back into HasV8_0rOps, where it started out. Reviewed By: lenary Differential Revision: https://reviews.llvm.org/D120830
- Loading branch information