[PATCH] D106120: [PowerPC] Implement vector bool/pixel initialization under -faltivec-src-compat=xl
Nemanja Ivanovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 16 11:59:33 PDT 2021
nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.
LGTM other than a minor nit about a comment.
================
Comment at: clang/include/clang/Sema/Sema.h:6112-6115
+ // Checks if we have a valid AltiVec vector type, and splats the
+ // value into the vector accordingly. If a 'vector bool' or
+ // 'vector pixel' type is used with the -faltivec-src-compat=xl
+ // option, these types also splat the scalar value.
----------------
```
// Checks that the vector type should be initialized from a scalar
// by splatting the value rather than populating a single element.
// This is the case for AltiVecVector types as well as with
// AltiVecPixel and AltiVecBool when -faltivec-src-compat=xl
// is specified.
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106120/new/
https://reviews.llvm.org/D106120
More information about the cfe-commits
mailing list