[PATCH] D88905: [Clang] Allow "ext_vector_type" applied to Booleans
David Majnemer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 30 15:13:15 PDT 2020
majnemer added inline comments.
================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:2782
+
+ // construct the vector of 'unsigned char' type
+ QualType CharVecTy = Ctx.getVectorType(Ctx.CharTy, NumVectorBytes,
----------------
The code as written seems to be 'char' type, not 'unsigned char' type.
================
Comment at: clang/lib/CodeGen/CGExpr.cpp:2084-2085
Dst.isVolatileQualified());
+ auto *IRStoreTy = dyn_cast<llvm::IntegerType>(Vec->getType());
+ if (IRStoreTy) {
+ auto *IRVecTy = llvm::FixedVectorType::get(
----------------
`if (auto *IRStoreTy = dyn_cast<llvm::IntegerType>(Vec->getType()))`
================
Comment at: clang/lib/CodeGen/CodeGenTypes.cpp:97
+ if (VT && VT->isExtVectorBoolean()) {
+ auto *FixedVT = dyn_cast<llvm::FixedVectorType>(R);
+ // Pad to at least one byte.
----------------
`dyn_cast` -> `cast`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88905/new/
https://reviews.llvm.org/D88905
More information about the cfe-commits
mailing list