[PATCH] D143210: PowerPC] Include vector bool and pixel when emitting lax warning
Amy Kwan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 15 07:05:05 PST 2023
amyk added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:9845
if (anyAltivecTypes(RHSType, LHSType) &&
- !areSameVectorElemTypes(RHSType, LHSType))
+ !Context.areCompatibleVectorTypes(RHSType, LHSType))
Diag(RHS.get()->getExprLoc(), diag::warn_deprecated_lax_vec_conv_all)
----------------
Might be a silly question, but what does it mean to be a "compatible" vector type?
================
Comment at: clang/test/CodeGen/SystemZ/zvector.c:1
-// RUN: %clang_cc1 -triple s390x-linux-gnu -target-cpu z13 -fzvector -emit-llvm -o - -W -Wall -Werror %s | opt -S -passes=mem2reg | FileCheck %s
+// RUN: %clang_cc1 -triple s390x-linux-gnu -target-cpu z13 -fzvector -emit-llvm -o - -W -Wall -Werror -Wno-error=deprecate-lax-vec-conv-all \
+// RUN: %s | opt -S -passes=mem2reg | FileCheck %s
----------------
Nit: I think this line is still over 80 characters.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143210/new/
https://reviews.llvm.org/D143210
More information about the cfe-commits
mailing list