forked from OSchip/llvm-project
[mlir] fix build after llvm made ElementCount constructor private
The original patch (264afb9e6a
) did not
update subprojects.
This commit is contained in:
parent
074c591a7e
commit
0f95e73190
|
@ -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>());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue