[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 24 08:20:47 PDT 2025
================
@@ -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());
----------------
vortex73 wrote:
I'm not exactly sure about this - but `clang::VectorType` doesn't seem to have a getter for ElementCount. I just want to know if there is something in the API for it or I can work around that?
https://github.com/llvm/llvm-project/pull/140112
More information about the cfe-commits
mailing list