[clang-tools-extra] [Clang] Support target attr specifying CPU (PR #68678)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 16 12:19:40 PDT 2023
================
@@ -560,11 +560,12 @@ ParsedTargetAttr TargetInfo::parseTargetAttr(StringRef Features) const {
}
// While we're here iterating check for a different target cpu.
- if (Feature.startswith("arch=")) {
+ if (Feature.startswith("arch=") || Feature.startswith("cpu=")) {
----------------
erichkeane wrote:
We shouldn't be allowing 'cpu' in x86/x86-64 mode, as this is supposed to be compatible with GCC and I don't see value in it as a non-compatible extension.
https://github.com/llvm/llvm-project/pull/68678
More information about the cfe-commits
mailing list