[PATCH] D126540: PowerPC] Emit warning for incompatible vector types that are currently diagnosed with -fno-lax-vector-conversions

Lei Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 16 05:44:02 PDT 2022


lei added inline comments.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:7738
+// This returns true if both vectors have the same element type.
+bool Sema::areVectorTypesSameElmType(QualType SrcTy, QualType DestTy) {
+  assert((DestTy->isVectorType() || SrcTy->isVectorType()) &&
----------------
lei wrote:
> rename suggestion: haveSameVectorElemTypes()
> rename suggestion: haveSameVectorElemTypes()

actually maybe this:  areSameVectorElemTypes()


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126540



More information about the cfe-commits mailing list