diff --git a/compiler/lib/Dialect/HLFHE/Analysis/MANP.cpp b/compiler/lib/Dialect/HLFHE/Analysis/MANP.cpp index 0a677cb43..17e106fa6 100644 --- a/compiler/lib/Dialect/HLFHE/Analysis/MANP.cpp +++ b/compiler/lib/Dialect/HLFHE/Analysis/MANP.cpp @@ -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 valSq = APIntWidthExtendUSq(val); accu = APIntWidthExtendUAdd(accu, valSq); } diff --git a/compiler/lib/Dialect/HLFHE/IR/HLFHEDialect.cpp b/compiler/lib/Dialect/HLFHE/IR/HLFHEDialect.cpp index 09f18d9bd..e908d1480 100644 --- a/compiler/lib/Dialect/HLFHE/IR/HLFHEDialect.cpp +++ b/compiler/lib/Dialect/HLFHE/IR/HLFHEDialect.cpp @@ -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; } diff --git a/compiler/lib/Dialect/LowLFHE/IR/LowLFHEDialect.cpp b/compiler/lib/Dialect/LowLFHE/IR/LowLFHEDialect.cpp index 2bcee07f5..60e193e07 100644 --- a/compiler/lib/Dialect/LowLFHE/IR/LowLFHEDialect.cpp +++ b/compiler/lib/Dialect/LowLFHE/IR/LowLFHEDialect.cpp @@ -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; } } diff --git a/compiler/lib/Dialect/MidLFHE/IR/MidLFHEDialect.cpp b/compiler/lib/Dialect/MidLFHE/IR/MidLFHEDialect.cpp index 008c537d9..45c9c8735 100644 --- a/compiler/lib/Dialect/MidLFHE/IR/MidLFHEDialect.cpp +++ b/compiler/lib/Dialect/MidLFHE/IR/MidLFHEDialect.cpp @@ -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(); } diff --git a/llvm-project b/llvm-project index 660f281b5..dd5991cc6 160000 --- a/llvm-project +++ b/llvm-project @@ -1 +1 @@ -Subproject commit 660f281b5e755663b2d8ad061075eb5f5abdf9fb +Subproject commit dd5991cc6f2d0b39716c4e6c9272596481f1c7ad