================
@@ -2677,6 +2677,16 @@ class ASTContext : public RefCountedBase<ASTContext> {
return getTypeSizeInCharsIfKnown(QualType(Ty, 0));
}
+ /// Return the size of an element inside a given vector type.
+ uint64_t getVectorElementSize(const VectorType *VTy) const {
+ QualType EltTy = VTy->getElementType();
+ if (VTy->isPackedVectorBoolType(*this))
----------------
steffenlarsen wrote:
The patch adds `isBitIntVectorType` which could be used below. Is that what you
had in mind, or do you mean that `isBitIntVectorType` should check for HLSL as
well?
https://github.com/llvm/llvm-project/pull/161796
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits