[mlir] fix build after llvm made ElementCount constructor private

The original patch (264afb9e6a) did not
update subprojects.
This commit is contained in:
Alex Zinenko 2020-08-19 18:46:53 +02:00
parent 074c591a7e
commit 0f95e73190
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ LLVMType LLVMVectorType::getElementType() {
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>());
}

View File

@ -141,7 +141,7 @@ llvm::Constant *ModuleTranslation::getLLVMConstant(llvm::Type *llvmType,
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);