chore: update llvm and fix API breaks

This commit is contained in:
youben11
2021-10-08 10:18:36 +01:00
committed by Ayoub Benaissa
parent 34f114cda9
commit ebdc95f827
5 changed files with 5 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ static llvm::APInt denseCstTensorNorm2Sq(mlir::ConstantOp cstOp) {
llvm::APInt accu{1, 0, false};
for (llvm::APInt val : denseVals.getIntValues()) {
for (llvm::APInt val : denseVals.getValues<llvm::APInt>()) {
llvm::APInt valSq = APIntWidthExtendUSq(val);
accu = APIntWidthExtendUAdd(accu, valSq);
}

View File

@@ -25,7 +25,7 @@ void HLFHEDialect::initialize() {
mlir::Type type;
if (parser.parseOptionalKeyword("eint").succeeded()) {
generatedTypeParser(this->getContext(), parser, "eint", type);
generatedTypeParser(parser, "eint", type);
return type;
}

View File

@@ -47,7 +47,7 @@ void LowLFHEDialect::initialize() {
for (const std::string &type_str : types_str) {
if (parser.parseOptionalKeyword(type_str).succeeded()) {
generatedTypeParser(this->getContext(), parser, type_str, type);
generatedTypeParser(parser, type_str, type);
return type;
}
}

View File

@@ -23,7 +23,7 @@ void MidLFHEDialect::initialize() {
::mlir::Type MidLFHEDialect::parseType(::mlir::DialectAsmParser &parser) const {
if (parser.parseOptionalKeyword("glwe").succeeded())
return GLWECipherTextType::parse(this->getContext(), parser);
return GLWECipherTextType::parse(parser);
parser.emitError(parser.getCurrentLocation(), "Unknown MidLFHE type");
return ::mlir::Type();
}