================
@@ -164,7 +164,8 @@ QualTypeMapper::convertArrayType(const clang::ArrayType
*AT) {
/// \return LLVM ABI VectorType with element type, count, and alignment
const llvm::abi::Type *QualTypeMapper::convertVectorType(const VectorType *VT)
{
const llvm::abi::Type *ElementType = convertType(VT->getElementType());
- uint64_t NumElements = VT->getNumElements();
+ llvm::ElementCount NumElements =
+ llvm::ElementCount::getFixed(VT->getNumElements());
----------------
nikic wrote:
I think this is right. VectorType only supports fixed vectors (this is used for
generic `__attribute__((vector_size(n))` style vectors). Note that the "normal"
vector types like `__m128i` etc are builtin types. For those there is
getBuiltinVectorTypeInfo() to extract element type and element count.
https://github.com/llvm/llvm-project/pull/140112
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits