This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG711a71d1ab10: PowerPC] Emit warning for incompatible vector
types that are currently… (authored by maryammo, committed by lei).
Repository:
rG
maryammo updated this revision to Diff 437740.
maryammo added a comment.
Address review comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
nemanjai added inline comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7571-7573
+ "Current bitcast for incompatible vector types (%0 and %1) are deprecated. "
+ "The default behaviour will change to what is implied by the "
+
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 added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:7716
+// This returns true if at least one of the types is an altivec vector.
+bool Sema::areAnyVectorTypesAltivec(QualType SrcTy, QualType DestTy) {
+ assert((DestTy->isVectorType() || SrcTy->isVectorType()) &&
maryammo added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:7723
+
+ if (SrcTy->isVectorType()) {
+VectorType::VectorKind SrcVecKind =
maryammo wrote:
> lei wrote:
> > do we really need this check since we have an assert above?
> Yes, without
maryammo added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:7723
+
+ if (SrcTy->isVectorType()) {
+VectorType::VectorKind SrcVecKind =
lei wrote:
> do we really need this check since we have an assert above?
Yes, without this check there is
lei added a comment.
LGTM, just a few nit that can be addressed on commit.
Comment at: clang/lib/Sema/SemaExpr.cpp:7723
+
+ if (SrcTy->isVectorType()) {
+VectorType::VectorKind SrcVecKind =
do we really need this check since we have an assert above?
amyk accepted this revision.
amyk added a comment.
This revision is now accepted and ready to land.
Thanks for the updates. Unless @lei has any other additional comments, I think
LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
maryammo updated this revision to Diff 437317.
maryammo added a comment.
Fixing unintentional merge from previous commit
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
maryammo updated this revision to Diff 437313.
maryammo added a comment.
Herald added a subscriber: kbarton.
clang-format
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
maryammo updated this revision to Diff 437311.
maryammo added a comment.
NFC
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
maryammo updated this revision to Diff 437310.
maryammo added a comment.
NFC
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
maryammo updated this revision to Diff 437303.
maryammo marked an inline comment as not done.
maryammo added a comment.
Address the review comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
maryammo added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:7715
+bool Sema::areAnyVectorTypesAltivec(QualType SrcTy, QualType DestTy) {
+ assert(DestTy->isVectorType() || SrcTy->isVectorType());
lei wrote:
> maryammo wrote:
> > amyk wrote:
> > >
maryammo added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:7715
+bool Sema::areAnyVectorTypesAltivec(QualType SrcTy, QualType DestTy) {
+ assert(DestTy->isVectorType() || SrcTy->isVectorType());
amyk wrote:
> Can we add some brief documentation
lei added a comment.
Please document all new functions added.
Comment at: clang/lib/Sema/SemaExpr.cpp:7715
+bool Sema::areAnyVectorTypesAltivec(QualType SrcTy, QualType DestTy) {
+ assert(DestTy->isVectorType() || SrcTy->isVectorType());
amyk wrote:
> Can
amyk added a comment.
Some additional minor comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7572
+ "Current bitcast for incompatible vector types (%0 and %1) are deprecated. "
+ "The default behaviour will change to what implied by the "
+
maryammo updated this revision to Diff 437161.
maryammo added a comment.
Tune the logic to emit warning when at least one of the vectors is altivec one
and overloading resolution is done
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
amyk added inline comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7572
+ "Current bitcast for incompatible vector types (%0 and %1) are deprecated. "
+ "The default behaviour will change to what implied by the "
+ "-fno-lax-vector-conversions option">,
maryammo updated this revision to Diff 432553.
maryammo added a comment.
NFC update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126540/new/
https://reviews.llvm.org/D126540
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
maryammo created this revision.
Herald added subscribers: shchenz, nemanjai.
Herald added a project: All.
maryammo requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch is the last prerequisite to switch the default behaviour to
22 matches
Mail list logo