[PATCH] D86187: [X86] Add support 'tune' in target attribute

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 12:55:38 PDT 2020


efriedma added inline comments.


================
Comment at: clang/test/Sema/attr-target.c:26
+//expected-warning at +1 {{unsupported tune 'hiss' in the 'target' attribute string; 'target' attribute ignored}}
+int __attribute__((target("tune=hiss,tune=woof"))) apple_tree() { return 4; }
+
----------------
"unsupported tune" seems a little weird. For the command-line flag, we print something like "unknown target CPU 'hiss'"; can we use similar wording here, so it's clear why it's not supported?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86187/new/

https://reviews.llvm.org/D86187



More information about the cfe-commits mailing list