mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore: update llvm and fix API breaks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Submodule llvm-project updated: 660f281b5e...dd5991cc6f
Reference in New Issue
Block a user