[Openmp-commits] [openmp] [Clang] Support target attr specifying CPU (PR #68678)

Erich Keane via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 16 12:19:43 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.


More information about the Openmp-commits mailing list