From c8bcb5fc4b8a0ba32e69d9c3832d51db03c9101a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20P=C3=A9r=C3=A9?= Date: Fri, 17 Jan 2025 15:56:05 +0100 Subject: [PATCH] chore(compiler): please clang-format 18.1.3 formatting --- .../concretelang/ClientLib/ClientLib.h | 2 +- .../include/concretelang/Common/Csprng.h | 2 +- .../include/concretelang/Common/Error.h | 2 +- .../include/concretelang/Common/Keys.h | 12 ++--- .../include/concretelang/Common/Keysets.h | 2 +- .../include/concretelang/Common/Values.h | 16 +++--- .../Conversion/FHEToTFHEScalar/Pass.h | 2 +- .../concretelang/Dialect/FHE/IR/FHEOps.h | 3 +- .../concretelang/Support/CompilerEngine.h | 3 +- .../include/concretelang/Support/Error.h | 4 +- .../FHEToTFHEScalar/FHEToTFHEScalar.cpp | 2 +- .../Conversion/LinalgExtras/LinalgExtras.cpp | 2 +- .../TFHEGlobalParametrization.cpp | 2 +- .../TFHEKeyNormalization.cpp | 2 +- .../lib/Dialect/FHE/Analysis/MANP.cpp | 4 +- .../lib/Dialect/FHE/Transforms/BigInt.cpp | 2 +- .../lib/Dialect/FHELinalg/IR/FHELinalgOps.cpp | 54 +++++++++---------- .../RT/Analysis/BufferizeDataflowTaskOps.cpp | 2 +- .../RT/Analysis/BuildDataflowTaskGraph.cpp | 2 +- .../RT/Analysis/LowerDataflowTasksToRT.cpp | 8 +-- .../TFHECircuitSolutionParametrization.cpp | 2 +- .../compiler/lib/Support/V0Parameters.cpp | 10 ++-- 22 files changed, 66 insertions(+), 74 deletions(-) diff --git a/compilers/concrete-compiler/compiler/include/concretelang/ClientLib/ClientLib.h b/compilers/concrete-compiler/compiler/include/concretelang/ClientLib/ClientLib.h index 36fdca5066..8d74364ef2 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/ClientLib/ClientLib.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/ClientLib/ClientLib.h @@ -76,7 +76,7 @@ class ClientCircuit { std::vector outputTransformers, bool simulated) : circuitInfo(circuitInfo), inputTransformers(inputTransformers), - outputTransformers(outputTransformers), simulated(simulated) {}; + outputTransformers(outputTransformers), simulated(simulated){}; static Result create(const Message &info, const ClientKeyset &keyset, diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Common/Csprng.h b/compilers/concrete-compiler/compiler/include/concretelang/Common/Csprng.h index 071f1b51d3..df585b47c9 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Common/Csprng.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Common/Csprng.h @@ -27,7 +27,7 @@ template class CSPRNG { other.ptr = nullptr; }; - CSPRNG(Csprng *ptr) : ptr(ptr) {}; + CSPRNG(Csprng *ptr) : ptr(ptr){}; }; class SoftCSPRNG : public CSPRNG { diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Common/Error.h b/compilers/concrete-compiler/compiler/include/concretelang/Common/Error.h index f5f5683c37..3a705c9c01 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Common/Error.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Common/Error.h @@ -14,7 +14,7 @@ namespace error { /// The type of error used throughout the client/server libs. class StringError { public: - StringError(std::string mesg) : mesg(mesg) {}; + StringError(std::string mesg) : mesg(mesg){}; std::string mesg; diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Common/Keys.h b/compilers/concrete-compiler/compiler/include/concretelang/Common/Keys.h index fc2804cb0e..f35e037cff 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Common/Keys.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Common/Keys.h @@ -48,7 +48,7 @@ class LweSecretKey { LweSecretKey() = delete; LweSecretKey(std::shared_ptr> buffer, Message info) - : buffer(buffer), info(info) {}; + : buffer(buffer), info(info){}; static LweSecretKey fromProto(const Message &proto); @@ -91,7 +91,7 @@ class LweBootstrapKey { Message info) : seededBuffer(std::make_shared>()), buffer(buffer), info(info), decompress_mutext(std::make_shared()), - decompressed(std::make_shared(false)) {}; + decompressed(std::make_shared(false)){}; /// @brief Initialize the key from the protocol message. static LweBootstrapKey @@ -117,7 +117,7 @@ class LweBootstrapKey { : seededBuffer(std::make_shared>()), buffer(std::make_shared>()), info(info), decompress_mutext(std::make_shared()), - decompressed(std::make_shared(false)) {}; + decompressed(std::make_shared(false)){}; LweBootstrapKey() = delete; /// @brief The buffer of the seeded key if needed. @@ -147,7 +147,7 @@ class LweKeyswitchKey { Message info) : seededBuffer(std::make_shared>()), buffer(buffer), info(info), decompress_mutext(std::make_shared()), - decompressed(std::make_shared(false)) {}; + decompressed(std::make_shared(false)){}; /// @brief Initialize the key from the protocol message. static LweKeyswitchKey @@ -173,7 +173,7 @@ class LweKeyswitchKey { : seededBuffer(std::make_shared>()), buffer(std::make_shared>()), info(info), decompress_mutext(std::make_shared()), - decompressed(std::make_shared(false)) {}; + decompressed(std::make_shared(false)){}; /// @brief The buffer of the seeded key if needed. std::shared_ptr> seededBuffer; @@ -204,7 +204,7 @@ class PackingKeyswitchKey { PackingKeyswitchKey() = delete; PackingKeyswitchKey(std::shared_ptr> buffer, Message info) - : buffer(buffer), info(info) {}; + : buffer(buffer), info(info){}; static PackingKeyswitchKey fromProto(const Message &proto); diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Common/Keysets.h b/compilers/concrete-compiler/compiler/include/concretelang/Common/Keysets.h index 4871f33be8..271254d1ae 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Common/Keysets.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Common/Keysets.h @@ -54,7 +54,7 @@ struct Keyset { ServerKeyset server; ClientKeyset client; - Keyset() {}; + Keyset(){}; /// @brief Generates a keyset from infos. /// diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Common/Values.h b/compilers/concrete-compiler/compiler/include/concretelang/Common/Values.h index d063625e7e..1d59ba84fb 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Common/Values.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Common/Values.h @@ -148,14 +148,14 @@ struct Value { Tensor, Tensor> inner; Value() = default; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; - Value(Tensor inner) : inner(inner) {}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; + Value(Tensor inner) : inner(inner){}; /// Turns a server value to a client value, without interpreting the kind of /// value. diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Conversion/FHEToTFHEScalar/Pass.h b/compilers/concrete-compiler/compiler/include/concretelang/Conversion/FHEToTFHEScalar/Pass.h index e2fc6eae5e..a14970a3ec 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Conversion/FHEToTFHEScalar/Pass.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Conversion/FHEToTFHEScalar/Pass.h @@ -15,7 +15,7 @@ namespace concretelang { struct ScalarLoweringParameters { size_t polynomialSize; - ScalarLoweringParameters(size_t polySize) : polynomialSize(polySize) {}; + ScalarLoweringParameters(size_t polySize) : polynomialSize(polySize){}; }; /// Create a pass to convert `FHE` dialect to `TFHE` dialect with the scalar diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Dialect/FHE/IR/FHEOps.h b/compilers/concrete-compiler/compiler/include/concretelang/Dialect/FHE/IR/FHEOps.h index b41856f0d8..b85231b6b3 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Dialect/FHE/IR/FHEOps.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Dialect/FHE/IR/FHEOps.h @@ -37,8 +37,7 @@ void emitErrorBadLutSize(Op &op, std::string lutName, std::string inputName, auto s = op.emitOpError(); s << ": `" << lutName << "` (operand #2)" << " inner dimension should have size " << expectedSize << "(=2^" - << bitWidth << ") to match " - << "`" << inputName << "` (operand #1)" + << bitWidth << ") to match " << "`" << inputName << "` (operand #1)" << " elements bitwidth (" << bitWidth << ")"; } diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Support/CompilerEngine.h b/compilers/concrete-compiler/compiler/include/concretelang/Support/CompilerEngine.h index 30b100c628..65a0e669dc 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Support/CompilerEngine.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Support/CompilerEngine.h @@ -123,8 +123,7 @@ struct CompilationOptions { batchTFHEOps(false), maxBatchSize(std::numeric_limits::max()), emitSDFGOps(false), unrollLoopsWithSDFGConvertibleOps(false), optimizeTFHE(true), chunkIntegers(false), chunkSize(4), chunkWidth(2), - encodings(std::nullopt), enableTluFusing(true), - printTluFusing(false) {}; + encodings(std::nullopt), enableTluFusing(true), printTluFusing(false){}; /// @brief Constructor for CompilationOptions with default parameters for a /// specific backend. diff --git a/compilers/concrete-compiler/compiler/include/concretelang/Support/Error.h b/compilers/concrete-compiler/compiler/include/concretelang/Support/Error.h index be383ee84b..e3d177e6a1 100644 --- a/compilers/concrete-compiler/compiler/include/concretelang/Support/Error.h +++ b/compilers/concrete-compiler/compiler/include/concretelang/Support/Error.h @@ -28,8 +28,8 @@ namespace concretelang { /// } class StreamStringError { public: - StreamStringError(const llvm::StringRef &s) : buffer(s.str()), os(buffer) {}; - StreamStringError() : buffer(""), os(buffer) {}; + StreamStringError(const llvm::StringRef &s) : buffer(s.str()), os(buffer){}; + StreamStringError() : buffer(""), os(buffer){}; template StreamStringError &operator<<(const T &v) { this->os << v; diff --git a/compilers/concrete-compiler/compiler/lib/Conversion/FHEToTFHEScalar/FHEToTFHEScalar.cpp b/compilers/concrete-compiler/compiler/lib/Conversion/FHEToTFHEScalar/FHEToTFHEScalar.cpp index 54ba7ab417..e8e85be05f 100644 --- a/compilers/concrete-compiler/compiler/lib/Conversion/FHEToTFHEScalar/FHEToTFHEScalar.cpp +++ b/compilers/concrete-compiler/compiler/lib/Conversion/FHEToTFHEScalar/FHEToTFHEScalar.cpp @@ -791,7 +791,7 @@ struct FHEToTFHEScalarPass : public FHEToTFHEScalarBase { FHEToTFHEScalarPass( mlir::concretelang::ScalarLoweringParameters loweringParams) - : loweringParameters(loweringParams) {}; + : loweringParameters(loweringParams){}; void runOnOperation() override { auto op = this->getOperation(); diff --git a/compilers/concrete-compiler/compiler/lib/Conversion/LinalgExtras/LinalgExtras.cpp b/compilers/concrete-compiler/compiler/lib/Conversion/LinalgExtras/LinalgExtras.cpp index 7067e6b66f..bd5197aa04 100644 --- a/compilers/concrete-compiler/compiler/lib/Conversion/LinalgExtras/LinalgExtras.cpp +++ b/compilers/concrete-compiler/compiler/lib/Conversion/LinalgExtras/LinalgExtras.cpp @@ -14,7 +14,7 @@ struct LinalgGenericOpWithTensorsToLoopsPass LinalgGenericOpWithTensorsToLoopsPass> { LinalgGenericOpWithTensorsToLoopsPass() = delete; LinalgGenericOpWithTensorsToLoopsPass(bool parallelizeLoops) - : parallelizeLoops(parallelizeLoops) {}; + : parallelizeLoops(parallelizeLoops){}; void runOnOperation() final; private: diff --git a/compilers/concrete-compiler/compiler/lib/Conversion/TFHEGlobalParametrization/TFHEGlobalParametrization.cpp b/compilers/concrete-compiler/compiler/lib/Conversion/TFHEGlobalParametrization/TFHEGlobalParametrization.cpp index 7ebaaeb07d..74d24dd036 100644 --- a/compilers/concrete-compiler/compiler/lib/Conversion/TFHEGlobalParametrization/TFHEGlobalParametrization.cpp +++ b/compilers/concrete-compiler/compiler/lib/Conversion/TFHEGlobalParametrization/TFHEGlobalParametrization.cpp @@ -27,7 +27,7 @@ struct TFHEGlobalParametrizationPass : public TFHEGlobalParametrizationBase { TFHEGlobalParametrizationPass( const mlir::concretelang::V0Parameter cryptoParameters) - : cryptoParameters(cryptoParameters) {}; + : cryptoParameters(cryptoParameters){}; void runOnOperation() final; const mlir::concretelang::V0Parameter cryptoParameters; }; diff --git a/compilers/concrete-compiler/compiler/lib/Conversion/TFHEKeyNormalization/TFHEKeyNormalization.cpp b/compilers/concrete-compiler/compiler/lib/Conversion/TFHEKeyNormalization/TFHEKeyNormalization.cpp index 6b4de151c1..1ece7a056a 100644 --- a/compilers/concrete-compiler/compiler/lib/Conversion/TFHEKeyNormalization/TFHEKeyNormalization.cpp +++ b/compilers/concrete-compiler/compiler/lib/Conversion/TFHEKeyNormalization/TFHEKeyNormalization.cpp @@ -36,7 +36,7 @@ class KeyConverter { public: KeyConverter(mlir::concretelang::TFHE::TFHECircuitKeys &circuitKeys) - : circuitKeys(circuitKeys) {}; + : circuitKeys(circuitKeys){}; TFHE::GLWESecretKey convertSecretKey(TFHE::GLWESecretKey sk) { auto parameterizedKey = sk.getParameterized().value(); diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Analysis/MANP.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Analysis/MANP.cpp index b76c2818ed..c4dea87029 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Analysis/MANP.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Analysis/MANP.cpp @@ -1332,7 +1332,7 @@ struct MANPPass : public MANPBase { return signalPassFailure(); } MANPPass() = delete; - MANPPass(bool debug) : debug(debug) {}; + MANPPass(bool debug) : debug(debug){}; protected: bool debug; @@ -1358,7 +1358,7 @@ struct MaxMANPPass : public MaxMANPBase { } MaxMANPPass() = delete; MaxMANPPass(std::function updateMax) - : updateMax(updateMax) {}; + : updateMax(updateMax){}; protected: void processOperation(mlir::Operation *op) { diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Transforms/BigInt.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Transforms/BigInt.cpp index 1ce167d300..cc0877692d 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Transforms/BigInt.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/FHE/Transforms/BigInt.cpp @@ -174,7 +174,7 @@ class FHEBigIntTransformPass : public FHEBigIntTransformBase { public: FHEBigIntTransformPass(unsigned int chunkSize, unsigned int chunkWidth) - : chunkSize(chunkSize), chunkWidth(chunkWidth) {}; + : chunkSize(chunkSize), chunkWidth(chunkWidth){}; void runOnOperation() override { mlir::Operation *op = getOperation(); diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/FHELinalg/IR/FHELinalgOps.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/FHELinalg/IR/FHELinalgOps.cpp index d92d8b3153..4690743204 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/FHELinalg/IR/FHELinalgOps.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/FHELinalg/IR/FHELinalgOps.cpp @@ -57,9 +57,8 @@ LogicalResult verifyTensorBroadcastingRules( op->emitOpError() << "has the dimension #" << (operandsShapes[j].size() - k) << " of the operand #" << j - << " incompatible with other operands" - << ", got " << operandDim << " expect 1 or " - << expectedResultDim; + << " incompatible with other operands" << ", got " + << operandDim << " expect 1 or " << expectedResultDim; return mlir::failure(); } @@ -706,9 +705,9 @@ template mlir::LogicalResult verifyMatmul(MatMulOp &op) { // 1xMxN @ KxLxNxP -> KxLxMxP if (lhsShape[lhsDims - 1] != rhsShape[rhsDims - 2]) { - op.emitOpError() << "should have the same size " - << "on dimension #" << lhsDims - 1 << " of operand #0 " - << "and dimension #" << rhsDims - 2 << " of operand #1"; + op.emitOpError() << "should have the same size " << "on dimension #" + << lhsDims - 1 << " of operand #0 " << "and dimension #" + << rhsDims - 2 << " of operand #1"; return mlir::failure(); } @@ -759,8 +758,8 @@ template mlir::LogicalResult verifyMatmul(MatMulOp &op) { if (rhsShape[rhsDims - 2] != lhsShape[0]) { op.emitOpError() << "should have the same size " - << "on dimension #0 of operand #0 " - << "and dimension #" << rhsDims - 2 << " of operand #1"; + << "on dimension #0 of operand #0 " << "and dimension #" + << rhsDims - 2 << " of operand #1"; return mlir::failure(); } @@ -777,8 +776,8 @@ template mlir::LogicalResult verifyMatmul(MatMulOp &op) { // KxLxMxN @ N -> KxLxM if (lhsShape[lhsDims - 1] != rhsShape[0]) { - op.emitOpError() << "should have the same size " - << "on dimension #" << lhsDims - 1 << " of operand #0 " + op.emitOpError() << "should have the same size " << "on dimension #" + << lhsDims - 1 << " of operand #0 " << "and dimension #0 of operand #1"; return mlir::failure(); } @@ -1091,11 +1090,10 @@ mlir::LogicalResult Maxpool2dOp::verify() { const FHE::FheIntegerInterface outputElementTy = outputTy.getElementType(); if (inputElementTy != outputElementTy) { - this->emitOpError() << "expected output element type " - << "(" << outputElementTy << ") " - << "to be the same with input element type " - << "(" << inputElementTy << ") " - << "but it is not"; + this->emitOpError() << "expected output element type " << "(" + << outputElementTy << ") " + << "to be the same with input element type " << "(" + << inputElementTy << ") " << "but it is not"; return mlir::failure(); } @@ -1125,10 +1123,9 @@ mlir::LogicalResult Maxpool2dOp::verify() { kernelShapeAttrTy.getShape(); if (kernelShapeAttrShape.size() != 1 || kernelShapeAttrShape[0] != 2) { - this->emitOpError() << "expected kernel shape to be of shape " - << "(2) " - << "but it is of shape " - << "(" << kernelShapeAttrShape << ")"; + this->emitOpError() << "expected kernel shape to be of shape " << "(2) " + << "but it is of shape " << "(" << kernelShapeAttrShape + << ")"; return mlir::failure(); } @@ -1149,10 +1146,9 @@ mlir::LogicalResult Maxpool2dOp::verify() { const llvm::ArrayRef stridesAttrShape = stridesAttrTy.getShape(); if (stridesAttrShape.size() != 1 || stridesAttrShape[0] != 2) { - this->emitOpError() << "expected strides to be of shape " - << "(2) " - << "but it is of shape " - << "(" << stridesAttrShape << ")"; + this->emitOpError() << "expected strides to be of shape " << "(2) " + << "but it is of shape " << "(" << stridesAttrShape + << ")"; return mlir::failure(); } @@ -1183,10 +1179,9 @@ mlir::LogicalResult Maxpool2dOp::verify() { dilationsAttrTy.getShape(); if (dilationsAttrShape.size() != 1 || dilationsAttrShape[0] != 2) { - this->emitOpError() << "expected dilations to be of shape " - << "(2) " - << "but it is of shape " - << "(" << dilationsAttrShape << ")"; + this->emitOpError() << "expected dilations to be of shape " << "(2) " + << "but it is of shape " << "(" << dilationsAttrShape + << ")"; return mlir::failure(); } @@ -1218,9 +1213,8 @@ mlir::LogicalResult Maxpool2dOp::verify() { }; if (outputShape != llvm::ArrayRef(expectedOutputShape)) { - this->emitOpError() << "expected output to be of shape " - << "(" << expectedOutputShape << ") " - << "but it is of shape " + this->emitOpError() << "expected output to be of shape " << "(" + << expectedOutputShape << ") " << "but it is of shape " << "(" << outputShape << ")"; return mlir::failure(); } diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BufferizeDataflowTaskOps.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BufferizeDataflowTaskOps.cpp index 430467c451..d8f0ee1676 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BufferizeDataflowTaskOps.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BufferizeDataflowTaskOps.cpp @@ -147,7 +147,7 @@ struct BufferizeDataflowTaskOpsPass signalPassFailure(); } - BufferizeDataflowTaskOpsPass(bool debug) : debug(debug) {}; + BufferizeDataflowTaskOpsPass(bool debug) : debug(debug){}; protected: bool debug; diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BuildDataflowTaskGraph.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BuildDataflowTaskGraph.cpp index f561a78944..fc288866a8 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BuildDataflowTaskGraph.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/BuildDataflowTaskGraph.cpp @@ -157,7 +157,7 @@ struct BuildDataflowTaskGraphPass (void)mlir::simplifyRegions(rewriter, func->getRegions()); }); } - BuildDataflowTaskGraphPass(bool debug) : debug(debug) {}; + BuildDataflowTaskGraphPass(bool debug) : debug(debug){}; protected: mlir::WalkResult processOperation(mlir::Operation *op) { diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/LowerDataflowTasksToRT.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/LowerDataflowTasksToRT.cpp index 9826f38c64..17bdd1fd99 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/LowerDataflowTasksToRT.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/RT/Analysis/LowerDataflowTasksToRT.cpp @@ -349,7 +349,7 @@ struct LowerDataflowTasksPass lowerDataflowTaskOp(mapping.first, mapping.second); }); } - LowerDataflowTasksPass(bool debug) : debug(debug) {}; + LowerDataflowTasksPass(bool debug) : debug(debug){}; protected: bool debug; @@ -428,7 +428,7 @@ struct StartStopPass : public StartStopBase { mlir::TypeRange(), useDFRVal); } } - StartStopPass(bool debug) : debug(debug) {}; + StartStopPass(bool debug) : debug(debug){}; protected: bool debug; @@ -550,7 +550,7 @@ struct FinalizeTaskCreationPass } }); } - FinalizeTaskCreationPass(bool debug) : debug(debug) {}; + FinalizeTaskCreationPass(bool debug) : debug(debug){}; protected: bool debug; @@ -612,7 +612,7 @@ struct FixupBufferDeallocationPass } }); } - FixupBufferDeallocationPass(bool debug) : debug(debug) {}; + FixupBufferDeallocationPass(bool debug) : debug(debug){}; protected: bool debug; diff --git a/compilers/concrete-compiler/compiler/lib/Dialect/TFHE/Transforms/TFHECircuitSolutionParametrization.cpp b/compilers/concrete-compiler/compiler/lib/Dialect/TFHE/Transforms/TFHECircuitSolutionParametrization.cpp index e5bef47f88..4d4c6dd256 100644 --- a/compilers/concrete-compiler/compiler/lib/Dialect/TFHE/Transforms/TFHECircuitSolutionParametrization.cpp +++ b/compilers/concrete-compiler/compiler/lib/Dialect/TFHE/Transforms/TFHECircuitSolutionParametrization.cpp @@ -1251,7 +1251,7 @@ class TFHECircuitSolutionParametrizationPass public: TFHECircuitSolutionParametrizationPass( std::optional<::concrete_optimizer::dag::CircuitSolution> solution) - : solution(solution) {}; + : solution(solution){}; void runOnOperation() override { mlir::ModuleOp module = this->getOperation(); diff --git a/compilers/concrete-compiler/compiler/lib/Support/V0Parameters.cpp b/compilers/concrete-compiler/compiler/lib/Support/V0Parameters.cpp index ccf5ed30b9..f23501a8de 100644 --- a/compilers/concrete-compiler/compiler/lib/Support/V0Parameters.cpp +++ b/compilers/concrete-compiler/compiler/lib/Support/V0Parameters.cpp @@ -195,13 +195,13 @@ void displayOptimizer(const Solution &solution, } // Print the actual correctness of the solution llvm::errs() << "-- Solution correctness\n" - << " For each pbs call: " - << " 1/" << int(1.0 / solution.p_error) << ", p_error (" + << " For each pbs call: " << " 1/" + << int(1.0 / solution.p_error) << ", p_error (" << solution.p_error << ")\n"; if (descr.dag && !std::isnan(solution.global_p_error)) { - llvm::errs() << " For the full circuit:" - << " 1/" << int(1.0 / solution.global_p_error) - << " global_p_error(" << solution.global_p_error << ")\n"; + llvm::errs() << " For the full circuit:" << " 1/" + << int(1.0 / solution.global_p_error) << " global_p_error(" + << solution.global_p_error << ")\n"; } auto complexity_label = descr.dag ? "for the full circuit" : "for each Pbs call";