llvm::ElementCount LLVMVectorType::getElementCount() {
// Both derived classes share the implementation type.
- return llvm::ElementCount(
+ return llvm::ElementCount::get(
static_cast<detail::LLVMTypeAndSizeStorage *>(impl)->numElements,
isa<LLVMScalableVectorType>());
}
return nullptr;
if (llvmType->isVectorTy())
return llvm::ConstantVector::getSplat(
- llvm::ElementCount(numElements, /*Scalable=*/false), child);
+ llvm::ElementCount::get(numElements, /*Scalable=*/false), child);
if (llvmType->isArrayTy()) {
auto *arrayType = llvm::ArrayType::get(elementType, numElements);
SmallVector<llvm::Constant *, 8> constants(numElements, child);