bmahjour added inline comments.

================
Comment at: clang/include/clang/Basic/LangOptions.h:248
+  enum class VectorCompareCompatKind {
+    // Default clang behaviour.
+    // All vector compares produce scalars except vector Pixel and vector bool.
----------------
How about adding `Default = Mixed` at the end and moving the comment with it?


================
Comment at: clang/include/clang/Basic/LangOptions.h:249
+    // Default clang behaviour.
+    // All vector compares produce scalars except vector Pixel and vector bool.
+    // The types vector Pixel and vector bool return vector results.
----------------
Pixel -> pixel


================
Comment at: clang/include/clang/Basic/LangOptions.h:250
+    // All vector compares produce scalars except vector Pixel and vector bool.
+    // The types vector Pixel and vector bool return vector results.
+    Mixed,
----------------
[nit] Pixel -> pixel


================
Comment at: clang/lib/Sema/SemaExpr.cpp:12221
+  // which behavior is prefered.
+  switch (getLangOpts().getVectorCompareCompat()) {
+  case LangOptions::VectorCompareCompatKind::Mixed:
----------------
Check for `getLangOpts().AltiVec` before the switch?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103615

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

Reply via email to