MaskRay added inline comments.

================
Comment at: clang/include/clang/Driver/Options.td:903-906
+def mno_gather : Flag<["-"], "mno-gather">, Flags<[NoXarchOption]>,
+                 HelpText<"Disable generation of gather instructions in 
auto-vectorization(x86 only)">;
+def mno_scatter : Flag<["-"], "mno-scatter">, Flags<[NoXarchOption]>,
+                  HelpText<"Disable generation of scatter instructions in 
auto-vectorization(x86 only)">;
----------------
pengfei wrote:
> Move under "// X86 feature flags"
Also remove `NoXarchOption`

https://maskray.me/blog/2021-03-28-compiler-driver-and-cross-compilation#misc

If an option has the NoXarchOption flag, ClangDriver will emit an error if the 
option is used after -Xarch_* (originally for universal macOS binary, reused by 
offloading purposes -Xarch_host/etc). The error checking only applies to a 
small set of options (e.g. -o) and is not very useful for most options, but 
NoXarchOption was improperly named DriverOption (commit 
aabb0b11a3c1d8a6bb859db80400cffdcc9b336f) and lured some contributors to add 
NoXarchOption to options that should not have the flag.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157680

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to