diff --git a/.github/workflows/assets/Installation.md b/.github/workflows/assets/Installation.md index 6f9460599..f5227ee8b 100644 --- a/.github/workflows/assets/Installation.md +++ b/.github/workflows/assets/Installation.md @@ -7,4 +7,4 @@ You can either install the compiler in user space or globally (you need root/sud 2. Global install: extract the tarball to a temporary path , and copy - temporary/path/concretecompiler/bin/concretecompiler to /usr/bin (or a directory in $PATH) -- temporary/path/concretecompiler/lib/libConcretelangRuntime.so to /usr/lib (or another lib folder) \ No newline at end of file +- temporary/path/concretecompiler/lib/libConcretelangRuntime.so to /usr/lib (or another lib folder) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d38da4f1e..e71f59090 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -39,6 +39,10 @@ jobs: # compiler requirements to lint pip install numpy make python_lint + - name: Linelint + uses: fernandrone/linelint@0.0.4 + id: linelint + CheckLicense: runs-on: ubuntu-latest diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 000000000..836863bd9 --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,20 @@ +# 'true' will fix files +autofix: false + +# list of paths to ignore, uses gitignore syntaxes (executes before any rule) +ignore: + - .git/ + - llvm-project/ + - compiler/concrete-optimizer + +rules: + # checks if file ends in a newline character + end-of-file: + # set to true to enable this rule + enable: true + + # set to true to disable autofix (if enabled globally) + disable-autofix: false + + # if true also checks if file ends in a single newline character + single-new-line: false diff --git a/LICENSE.txt b/LICENSE.txt index fd8e1cb4a..6ebc9c1f8 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -36,4 +36,4 @@ collaborate and share information with ZAMA regarding any use, developments or i whether protectable or not, of this open-source code and Patents included in it. In particular, the user commits to declaring to ZAMA their wish to file any patent or copyright application relating to this open-source code and Patents included in it, -before the application is filed. \ No newline at end of file +before the application is filed. diff --git a/builders/Dockerfile.mlir-env b/builders/Dockerfile.mlir-env index 14e8890e4..abbd07d43 100644 --- a/builders/Dockerfile.mlir-env +++ b/builders/Dockerfile.mlir-env @@ -23,4 +23,4 @@ ENV LLVM_PROJECT=/llvm-project ENV PATH=${LLVM_PROJECT}/build/bin:${PATH} RUN apt-get update RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake g++ build-essential python3 zlib1g-dev python3-pip python3-setuptools -RUN pip install numpy pybind11==2.8 PyYAML \ No newline at end of file +RUN pip install numpy pybind11==2.8 PyYAML diff --git a/builders/Dockerfile.release_manylinux_2_24_x86_64 b/builders/Dockerfile.release_manylinux_2_24_x86_64 index 4dc7469e4..a06a0bd81 100644 --- a/builders/Dockerfile.release_manylinux_2_24_x86_64 +++ b/builders/Dockerfile.release_manylinux_2_24_x86_64 @@ -27,4 +27,4 @@ RUN touch build/tools/concretelang/python_packages/concretelang_core/mlir/__init RUN touch build/tools/concretelang/python_packages/concretelang_core/mlir/dialects/__init__.py # Build wheel RUN /opt/python/${python_tag}/bin/pip wheel --no-deps -w /wheels . -RUN auditwheel repair /wheels/*.whl --plat manylinux_2_24_x86_64 -w /wheels \ No newline at end of file +RUN auditwheel repair /wheels/*.whl --plat manylinux_2_24_x86_64 -w /wheels diff --git a/builders/Dockerfile.release_tarball_linux_x86_64 b/builders/Dockerfile.release_tarball_linux_x86_64 index 335f90ca2..8439dcb09 100644 --- a/builders/Dockerfile.release_tarball_linux_x86_64 +++ b/builders/Dockerfile.release_tarball_linux_x86_64 @@ -24,4 +24,4 @@ RUN mkdir -p /tarballs/concretecompiler/lib /tarballs/concretecompiler/bin && \ cp /compiler/build/bin/concretecompiler /tarballs/concretecompiler/bin && \ cp /compiler/build/lib/libConcretelangRuntime.so /tarballs/concretecompiler/lib && \ cp /Installation.md /tarballs/concretecompiler/ -RUN cd /tarballs && tar -czvf concretecompiler.tar.gz concretecompiler \ No newline at end of file +RUN cd /tarballs && tar -czvf concretecompiler.tar.gz concretecompiler diff --git a/compiler/.clang-tidy b/compiler/.clang-tidy index 8ca4a4729..2d8cca6b5 100644 --- a/compiler/.clang-tidy +++ b/compiler/.clang-tidy @@ -16,4 +16,3 @@ CheckOptions: value: camelBack - key: readability-identifier-naming.IgnoreMainLikeFunctions value: 1 - diff --git a/compiler/.gitignore b/compiler/.gitignore index 6f75ce9e8..f72a79eb1 100644 --- a/compiler/.gitignore +++ b/compiler/.gitignore @@ -1,4 +1,4 @@ .dependencies/ build/ *.mlir.script -*.lit_test_times.txt \ No newline at end of file +*.lit_test_times.txt diff --git a/compiler/include/concretelang/CMakeLists.txt b/compiler/include/concretelang/CMakeLists.txt index 75ae0af0c..bd79ad95a 100644 --- a/compiler/include/concretelang/CMakeLists.txt +++ b/compiler/include/concretelang/CMakeLists.txt @@ -1,3 +1,3 @@ add_subdirectory(Dialect) add_subdirectory(Conversion) -add_subdirectory(Transforms) \ No newline at end of file +add_subdirectory(Transforms) diff --git a/compiler/include/concretelang/ClientLib/ClientParameters.h b/compiler/include/concretelang/ClientLib/ClientParameters.h index 744faef15..4e186de0e 100644 --- a/compiler/include/concretelang/ClientLib/ClientParameters.h +++ b/compiler/include/concretelang/ClientLib/ClientParameters.h @@ -215,4 +215,4 @@ static inline llvm::raw_ostream &operator<<(llvm::raw_string_ostream &OS, } // namespace clientlib } // namespace concretelang -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/ClientLib/KeySetCache.h b/compiler/include/concretelang/ClientLib/KeySetCache.h index c2f057d8c..989b15a83 100644 --- a/compiler/include/concretelang/ClientLib/KeySetCache.h +++ b/compiler/include/concretelang/ClientLib/KeySetCache.h @@ -37,4 +37,4 @@ private: } // namespace clientlib } // namespace concretelang -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/ClientLib/Types.h b/compiler/include/concretelang/ClientLib/Types.h index 3cd9c22af..0ea3470b0 100644 --- a/compiler/include/concretelang/ClientLib/Types.h +++ b/compiler/include/concretelang/ClientLib/Types.h @@ -53,4 +53,4 @@ struct TensorData { } // namespace clientlib } // namespace concretelang -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Common/BitsSize.h b/compiler/include/concretelang/Common/BitsSize.h index ac38df144..31ea4a2ea 100644 --- a/compiler/include/concretelang/Common/BitsSize.h +++ b/compiler/include/concretelang/Common/BitsSize.h @@ -16,4 +16,4 @@ size_t bitWidthAsWord(size_t exactBitWidth); } } // namespace concretelang -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/BConcreteToBConcreteCAPI/Pass.h b/compiler/include/concretelang/Conversion/BConcreteToBConcreteCAPI/Pass.h index 987ccab6d..906e1c417 100644 --- a/compiler/include/concretelang/Conversion/BConcreteToBConcreteCAPI/Pass.h +++ b/compiler/include/concretelang/Conversion/BConcreteToBConcreteCAPI/Pass.h @@ -19,4 +19,4 @@ createConvertBConcreteToBConcreteCAPIPass(); } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/CMakeLists.txt b/compiler/include/concretelang/Conversion/CMakeLists.txt index 2d29494b1..c8b3f6ebd 100644 --- a/compiler/include/concretelang/Conversion/CMakeLists.txt +++ b/compiler/include/concretelang/Conversion/CMakeLists.txt @@ -4,4 +4,4 @@ add_public_tablegen_target(ConcretelangConversionPassIncGen) add_dependencies(mlir-headers ConcretelangConversionPassIncGen) add_subdirectory(FHEToTFHE) -add_subdirectory(TFHEToConcrete) \ No newline at end of file +add_subdirectory(TFHEToConcrete) diff --git a/compiler/include/concretelang/Conversion/FHEToTFHE/Pass.h b/compiler/include/concretelang/Conversion/FHEToTFHE/Pass.h index bd42d713c..aa2dbfe7f 100644 --- a/compiler/include/concretelang/Conversion/FHEToTFHE/Pass.h +++ b/compiler/include/concretelang/Conversion/FHEToTFHE/Pass.h @@ -15,4 +15,4 @@ std::unique_ptr> createConvertFHEToTFHEPass(); } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/MLIRLowerableDialectsToLLVM/Pass.h b/compiler/include/concretelang/Conversion/MLIRLowerableDialectsToLLVM/Pass.h index f7e871a0b..c9e3bf071 100644 --- a/compiler/include/concretelang/Conversion/MLIRLowerableDialectsToLLVM/Pass.h +++ b/compiler/include/concretelang/Conversion/MLIRLowerableDialectsToLLVM/Pass.h @@ -17,4 +17,4 @@ createConvertMLIRLowerableDialectsToLLVMPass(); } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/TFHEGlobalParametrization/Pass.h b/compiler/include/concretelang/Conversion/TFHEGlobalParametrization/Pass.h index b53764284..249caf4f1 100644 --- a/compiler/include/concretelang/Conversion/TFHEGlobalParametrization/Pass.h +++ b/compiler/include/concretelang/Conversion/TFHEGlobalParametrization/Pass.h @@ -19,4 +19,4 @@ createConvertTFHEGlobalParametrizationPass( } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/TFHEToConcrete/Pass.h b/compiler/include/concretelang/Conversion/TFHEToConcrete/Pass.h index b7dd276de..c9746e5d8 100644 --- a/compiler/include/concretelang/Conversion/TFHEToConcrete/Pass.h +++ b/compiler/include/concretelang/Conversion/TFHEToConcrete/Pass.h @@ -15,4 +15,4 @@ std::unique_ptr> createConvertTFHEToConcretePass(); } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Conversion/Tools.h b/compiler/include/concretelang/Conversion/Tools.h index b5b808716..949a0eb68 100644 --- a/compiler/include/concretelang/Conversion/Tools.h +++ b/compiler/include/concretelang/Conversion/Tools.h @@ -8,4 +8,4 @@ mlir::LogicalResult insertForwardDeclaration(mlir::Operation *op, mlir::RewriterBase &rewriter, llvm::StringRef funcName, - mlir::FunctionType funcType); \ No newline at end of file + mlir::FunctionType funcType); diff --git a/compiler/include/concretelang/Dialect/BConcrete/IR/CMakeLists.txt b/compiler/include/concretelang/Dialect/BConcrete/IR/CMakeLists.txt index b96f45f0e..87dacb599 100644 --- a/compiler/include/concretelang/Dialect/BConcrete/IR/CMakeLists.txt +++ b/compiler/include/concretelang/Dialect/BConcrete/IR/CMakeLists.txt @@ -6,4 +6,4 @@ mlir_tablegen(BConcreteOpsTypes.cpp.inc -gen-typedef-defs -typedefs-dialect=BCon mlir_tablegen(BConcreteOpsDialect.h.inc -gen-dialect-decls -dialect=BConcrete) mlir_tablegen(BConcreteOpsDialect.cpp.inc -gen-dialect-defs -dialect=BConcrete) add_public_tablegen_target(MLIRBConcreteOpsIncGen) -add_dependencies(mlir-headers MLIRBConcreteOpsIncGen) \ No newline at end of file +add_dependencies(mlir-headers MLIRBConcreteOpsIncGen) diff --git a/compiler/include/concretelang/Support/LLVMEmitFile.h b/compiler/include/concretelang/Support/LLVMEmitFile.h index 5dcb5be1e..17d3b695c 100644 --- a/compiler/include/concretelang/Support/LLVMEmitFile.h +++ b/compiler/include/concretelang/Support/LLVMEmitFile.h @@ -21,4 +21,4 @@ emitLibrary(std::vector objectsPath, std::string libraryPath, } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Support/V0ClientParameters.h b/compiler/include/concretelang/Support/V0ClientParameters.h index bf7bd90cf..9318c89b1 100644 --- a/compiler/include/concretelang/Support/V0ClientParameters.h +++ b/compiler/include/concretelang/Support/V0ClientParameters.h @@ -24,4 +24,4 @@ createClientParametersForV0(V0FHEContext context, llvm::StringRef functionName, } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/include/concretelang/Support/V0Curves.h b/compiler/include/concretelang/Support/V0Curves.h index a9f6efec6..e9a4297c6 100644 --- a/compiler/include/concretelang/Support/V0Curves.h +++ b/compiler/include/concretelang/Support/V0Curves.h @@ -43,4 +43,4 @@ V0Curves *getV0Curves(int securityLevel, int keyFormat); } // namespace concretelang } // namespace mlir -#endif \ No newline at end of file +#endif diff --git a/compiler/lib/Bindings/CMakeLists.txt b/compiler/lib/Bindings/CMakeLists.txt index c05900364..fcf26e280 100644 --- a/compiler/lib/Bindings/CMakeLists.txt +++ b/compiler/lib/Bindings/CMakeLists.txt @@ -1,3 +1,3 @@ if (CONCRETELANG_BINDINGS_PYTHON_ENABLED) add_subdirectory(Python) -endif() \ No newline at end of file +endif() diff --git a/compiler/lib/Bindings/Python/CompilerAPIModule.h b/compiler/lib/Bindings/Python/CompilerAPIModule.h index 1634ded05..1a6778666 100644 --- a/compiler/lib/Bindings/Python/CompilerAPIModule.h +++ b/compiler/lib/Bindings/Python/CompilerAPIModule.h @@ -18,4 +18,4 @@ void populateCompilerAPISubmodule(pybind11::module &m); } // namespace concretelang } // namespace mlir -#endif // CONCRETELANG_PYTHON_DIALECTMODULES_H \ No newline at end of file +#endif // CONCRETELANG_PYTHON_DIALECTMODULES_H diff --git a/compiler/lib/Bindings/Python/DialectModules.h b/compiler/lib/Bindings/Python/DialectModules.h index 76cade2a7..dcf164543 100644 --- a/compiler/lib/Bindings/Python/DialectModules.h +++ b/compiler/lib/Bindings/Python/DialectModules.h @@ -18,4 +18,4 @@ void populateDialectFHESubmodule(pybind11::module &m); } // namespace concretelang } // namespace mlir -#endif // CONCRETELANG_PYTHON_DIALECTMODULES_H \ No newline at end of file +#endif // CONCRETELANG_PYTHON_DIALECTMODULES_H diff --git a/compiler/lib/Bindings/Python/FHEModule.cpp b/compiler/lib/Bindings/Python/FHEModule.cpp index c633688bd..11655b02f 100644 --- a/compiler/lib/Bindings/Python/FHEModule.cpp +++ b/compiler/lib/Bindings/Python/FHEModule.cpp @@ -36,4 +36,4 @@ void mlir::concretelang::python::populateDialectFHESubmodule( return cls( fheEncryptedIntegerTypeGetChecked(ctx, width, emitException)); }); -} \ No newline at end of file +} diff --git a/compiler/lib/Bindings/Python/version.txt b/compiler/lib/Bindings/Python/version.txt index 7d1de2290..b175e4c8c 100644 --- a/compiler/lib/Bindings/Python/version.txt +++ b/compiler/lib/Bindings/Python/version.txt @@ -1 +1 @@ -__version__ = "0.1.0-rc1" \ No newline at end of file +__version__ = "0.1.0-rc1" diff --git a/compiler/lib/CAPI/Dialect/CMakeLists.txt b/compiler/lib/CAPI/Dialect/CMakeLists.txt index 351d3270e..c5973d437 100644 --- a/compiler/lib/CAPI/Dialect/CMakeLists.txt +++ b/compiler/lib/CAPI/Dialect/CMakeLists.txt @@ -1,2 +1,2 @@ add_subdirectory(FHE) -add_subdirectory(FHELinalg) \ No newline at end of file +add_subdirectory(FHELinalg) diff --git a/compiler/lib/ClientLib/ClientLambda.cpp b/compiler/lib/ClientLib/ClientLambda.cpp index 50a973c8a..9e3635508 100644 --- a/compiler/lib/ClientLib/ClientLambda.cpp +++ b/compiler/lib/ClientLib/ClientLambda.cpp @@ -182,4 +182,4 @@ topLevelDecryptResult(ClientLambda &lambda, } } // namespace clientlib -} // namespace concretelang \ No newline at end of file +} // namespace concretelang diff --git a/compiler/lib/ClientLib/ClientParameters.cpp b/compiler/lib/ClientLib/ClientParameters.cpp index f6d94dcb7..7354feadc 100644 --- a/compiler/lib/ClientLib/ClientParameters.cpp +++ b/compiler/lib/ClientLib/ClientParameters.cpp @@ -413,4 +413,4 @@ ClientParameters::load(std::string jsonPath) { } } // namespace clientlib -} // namespace concretelang \ No newline at end of file +} // namespace concretelang diff --git a/compiler/lib/Conversion/Tools.cpp b/compiler/lib/Conversion/Tools.cpp index cf15e9b5f..5aa64fc2c 100644 --- a/compiler/lib/Conversion/Tools.cpp +++ b/compiler/lib/Conversion/Tools.cpp @@ -34,4 +34,4 @@ mlir::LogicalResult insertForwardDeclaration(mlir::Operation *op, assert(llvm::isa( mlir::SymbolTable::lookupSymbolIn(module, funcName))); return mlir::success(); -} \ No newline at end of file +} diff --git a/compiler/lib/Runtime/wrappers.cpp b/compiler/lib/Runtime/wrappers.cpp index a7bb0867a..f901ba25f 100644 --- a/compiler/lib/Runtime/wrappers.cpp +++ b/compiler/lib/Runtime/wrappers.cpp @@ -113,4 +113,4 @@ void memref_copy_one_rank(uint64_t *src_allocated, uint64_t *src_aligned, dst_aligned[dst_offset + i * dst_stride] = src_aligned[src_offset + i * src_stride]; } -} \ No newline at end of file +} diff --git a/compiler/lib/Support/JITSupport.cpp b/compiler/lib/Support/JITSupport.cpp index bfed0ab81..f1f279427 100644 --- a/compiler/lib/Support/JITSupport.cpp +++ b/compiler/lib/Support/JITSupport.cpp @@ -54,4 +54,4 @@ JITSupport::compile(llvm::SourceMgr &program, CompilationOptions options) { } } // namespace concretelang -} // namespace mlir \ No newline at end of file +} // namespace mlir diff --git a/compiler/ops/core_named_ops.py b/compiler/ops/core_named_ops.py index 0f45f33e7..b577c20f7 100644 --- a/compiler/ops/core_named_ops.py +++ b/compiler/ops/core_named_ops.py @@ -26,4 +26,4 @@ def fhelinalg_conv_2d_nchw_fchw( domain(D.n, D.f, D.oh, D.ow, D.c, D.kh, D.kw) O[D.n, D.f, D.oh, D.ow] += cast( U, I[D.n, D.c, D.oh * S.SH + D.kh * S.DH, D.ow * S.SW + D.kw * S.DW - ]) * cast(U, K[D.f, D.c, D.kh, D.kw]) \ No newline at end of file + ]) * cast(U, K[D.f, D.c, D.kh, D.kw]) diff --git a/compiler/tests/Conversion/ConcreteToBConcrete/identity.mlir b/compiler/tests/Conversion/ConcreteToBConcrete/identity.mlir index 7a69e1620..806acc81d 100644 --- a/compiler/tests/Conversion/ConcreteToBConcrete/identity.mlir +++ b/compiler/tests/Conversion/ConcreteToBConcrete/identity.mlir @@ -5,4 +5,4 @@ // CHECK-NEXT: } func @identity(%arg0: !Concrete.lwe_ciphertext<1024,7>) -> !Concrete.lwe_ciphertext<1024,7> { return %arg0 : !Concrete.lwe_ciphertext<1024,7> -} \ No newline at end of file +} diff --git a/compiler/tests/Conversion/ConcreteToBConcrete/tensor_identity.mlir b/compiler/tests/Conversion/ConcreteToBConcrete/tensor_identity.mlir index d8b1f6fd4..72575df39 100644 --- a/compiler/tests/Conversion/ConcreteToBConcrete/tensor_identity.mlir +++ b/compiler/tests/Conversion/ConcreteToBConcrete/tensor_identity.mlir @@ -4,4 +4,4 @@ // CHECK-NEXT: } func @tensor_identity(%arg0: tensor<2x3x4x!Concrete.lwe_ciphertext<1024,7>>) -> tensor<2x3x4x!Concrete.lwe_ciphertext<1024,7>> { return %arg0 : tensor<2x3x4x!Concrete.lwe_ciphertext<1024,7>> -} \ No newline at end of file +} diff --git a/compiler/tests/Conversion/FHEToTFHE/FHEToTFHE/apply_univariate.mlir b/compiler/tests/Conversion/FHEToTFHE/FHEToTFHE/apply_univariate.mlir index fc4fe88d3..a4d281143 100644 --- a/compiler/tests/Conversion/FHEToTFHE/FHEToTFHE/apply_univariate.mlir +++ b/compiler/tests/Conversion/FHEToTFHE/FHEToTFHE/apply_univariate.mlir @@ -8,4 +8,4 @@ func @apply_lookup_table(%arg0: !FHE.eint<2>, %arg1: tensor<4xi64>) -> !FHE.eint<3> { %1 = "FHE.apply_lookup_table"(%arg0, %arg1): (!FHE.eint<2>, tensor<4xi64>) -> (!FHE.eint<3>) return %1: !FHE.eint<3> -} \ No newline at end of file +} diff --git a/compiler/tests/Dialect/FHE/FHE/Analysis/MANP.mlir b/compiler/tests/Dialect/FHE/FHE/Analysis/MANP.mlir index 630159909..b5dc0d1a1 100644 --- a/compiler/tests/Dialect/FHE/FHE/Analysis/MANP.mlir +++ b/compiler/tests/Dialect/FHE/FHE/Analysis/MANP.mlir @@ -273,4 +273,4 @@ func @transpose_eint_3D_after_op(%arg0: tensor<3x4x5x!FHE.eint<6>>, %arg1: tenso %sum = "FHELinalg.add_eint"(%arg0, %arg1) : (tensor<3x4x5x!FHE.eint<6>>, tensor<3x4x5x!FHE.eint<6>>) -> tensor<3x4x5x!FHE.eint<6>> %c = "FHELinalg.transpose"(%sum) : (tensor<3x4x5x!FHE.eint<6>>) -> tensor<5x4x3x!FHE.eint<6>> return %c : tensor<5x4x3x!FHE.eint<6>> -} \ No newline at end of file +} diff --git a/compiler/tests/Dialect/FHE/FHE/ops.invalid.mlir b/compiler/tests/Dialect/FHE/FHE/ops.invalid.mlir index 71f94afae..29fd029ea 100644 --- a/compiler/tests/Dialect/FHE/FHE/ops.invalid.mlir +++ b/compiler/tests/Dialect/FHE/FHE/ops.invalid.mlir @@ -12,4 +12,4 @@ func @zero_plaintext() -> tensor<4x9xi32> { // expected-error @+1 {{'FHE.zero_tensor' op}} %0 = "FHE.zero_tensor"() : () -> tensor<4x9xi32> return %0 : tensor<4x9xi32> -} \ No newline at end of file +} diff --git a/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lookup_table.mlir b/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lookup_table.mlir index f5ec272e6..f4114fbd9 100644 --- a/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lookup_table.mlir +++ b/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lookup_table.mlir @@ -7,4 +7,4 @@ func @multi_lut(%arg0: tensor<4x4x!FHE.eint<2>>, %arg1: tensor<4x4x4xi64>) -> tensor<4x4x!FHE.eint<2>> { %1 = "FHELinalg.apply_multi_lookup_table"(%arg0, %arg1): (tensor<4x4x!FHE.eint<2>>, tensor<4x4x4xi64>) -> tensor<4x4x!FHE.eint<2>> return %1: tensor<4x4x!FHE.eint<2>> -} \ No newline at end of file +} diff --git a/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lut_broadcast.mlir b/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lut_broadcast.mlir index 269f9895b..538b24952 100644 --- a/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lut_broadcast.mlir +++ b/compiler/tests/Dialect/FHELinalg/FHELinalg/apply_multi_lut_broadcast.mlir @@ -7,4 +7,4 @@ func @multi_lut(%arg0: tensor<4x3x!FHE.eint<2>>, %arg1: tensor<3x4xi64>) -> tensor<4x3x!FHE.eint<2>> { %1 = "FHELinalg.apply_multi_lookup_table"(%arg0, %arg1): (tensor<4x3x!FHE.eint<2>>, tensor<3x4xi64>) -> tensor<4x3x!FHE.eint<2>> return %1: tensor<4x3x!FHE.eint<2>> -} \ No newline at end of file +} diff --git a/compiler/tests/Dialect/FHELinalg/FHELinalg/transpose.invalid.mlir b/compiler/tests/Dialect/FHELinalg/FHELinalg/transpose.invalid.mlir index 5d48ff24d..9cc7ab6c1 100644 --- a/compiler/tests/Dialect/FHELinalg/FHELinalg/transpose.invalid.mlir +++ b/compiler/tests/Dialect/FHELinalg/FHELinalg/transpose.invalid.mlir @@ -25,4 +25,4 @@ func @transpose_eint(%arg0: tensor<3x4x6x!FHE.eint<6>>) -> tensor<5x4x3x!FHE.ein return %c : tensor<5x4x3x!FHE.eint<6>> } -// ----- \ No newline at end of file +// ----- diff --git a/compiler/tests/TestLib/out/.keep b/compiler/tests/TestLib/out/.keep index e69de29bb..8b1378917 100644 --- a/compiler/tests/TestLib/out/.keep +++ b/compiler/tests/TestLib/out/.keep @@ -0,0 +1 @@ + diff --git a/compiler/tests/python/__init__.py b/compiler/tests/python/__init__.py index e69de29bb..8b1378917 100644 --- a/compiler/tests/python/__init__.py +++ b/compiler/tests/python/__init__.py @@ -0,0 +1 @@ + diff --git a/compiler/tests/stress_tests/__init__.py b/compiler/tests/stress_tests/__init__.py index e69de29bb..8b1378917 100644 --- a/compiler/tests/stress_tests/__init__.py +++ b/compiler/tests/stress_tests/__init__.py @@ -0,0 +1 @@ + diff --git a/compiler/tests/test_compiler_file_output/__init__.py b/compiler/tests/test_compiler_file_output/__init__.py index e69de29bb..8b1378917 100644 --- a/compiler/tests/test_compiler_file_output/__init__.py +++ b/compiler/tests/test_compiler_file_output/__init__.py @@ -0,0 +1 @@ + diff --git a/compiler/tests/unittest/EndToEndFixture.cpp b/compiler/tests/unittest/EndToEndFixture.cpp index 4ea02ffa2..f542b12c1 100644 --- a/compiler/tests/unittest/EndToEndFixture.cpp +++ b/compiler/tests/unittest/EndToEndFixture.cpp @@ -205,4 +205,4 @@ std::vector loadEndToEndDesc(std::string path) { if (yin.error()) assert(false && "cannot parse doc"); return desc; -} \ No newline at end of file +} diff --git a/compiler/tests/unittest/EndToEndFixture.h b/compiler/tests/unittest/EndToEndFixture.h index 705dd791e..74b162925 100644 --- a/compiler/tests/unittest/EndToEndFixture.h +++ b/compiler/tests/unittest/EndToEndFixture.h @@ -59,4 +59,4 @@ std::vector loadEndToEndDesc(std::string path); std::string printEndToEndDesc(const testing::TestParamInfo desc); -#endif \ No newline at end of file +#endif diff --git a/compiler/tests/unittest/end_to_end_encrypted_tensor.yaml b/compiler/tests/unittest/end_to_end_encrypted_tensor.yaml index 48fbc0a9e..ab58e4f4d 100644 --- a/compiler/tests/unittest/end_to_end_encrypted_tensor.yaml +++ b/compiler/tests/unittest/end_to_end_encrypted_tensor.yaml @@ -110,4 +110,4 @@ tests: outputs: - tensor: [63, 12, 7, 43, 52, 31, 32, 34, 22, 0, 0, 1, 2, 3, 4, 33, 34, 7, 8, 9] - shape: [2,10] \ No newline at end of file + shape: [2,10] diff --git a/compiler/tests/unittest/end_to_end_fhe.yaml b/compiler/tests/unittest/end_to_end_fhe.yaml index 26115de7d..f4785094e 100644 --- a/compiler/tests/unittest/end_to_end_fhe.yaml +++ b/compiler/tests/unittest/end_to_end_fhe.yaml @@ -434,4 +434,4 @@ tests: - inputs: - scalar: 63 outputs: - - scalar: 12 \ No newline at end of file + - scalar: 12 diff --git a/docs/Makefile b/docs/Makefile index 8b826a4ad..5dde2a9ce 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -13,4 +13,4 @@ clean: rm -rf links_to_compiler_build/ rm -rf python_api/* -.PHONY: update_doc_version \ No newline at end of file +.PHONY: update_doc_version diff --git a/docs/cpp_api/clientlib/key_set.rst b/docs/cpp_api/clientlib/key_set.rst index c4053a3ed..c3337229a 100644 --- a/docs/cpp_api/clientlib/key_set.rst +++ b/docs/cpp_api/clientlib/key_set.rst @@ -2,4 +2,4 @@ KeySet: ======= .. doxygenfile:: KeySet.h -.. doxygenfile:: KeySetCache.h \ No newline at end of file +.. doxygenfile:: KeySetCache.h diff --git a/docs/cpp_api/runtime.rst b/docs/cpp_api/runtime.rst index de896ae69..15fe987db 100644 --- a/docs/cpp_api/runtime.rst +++ b/docs/cpp_api/runtime.rst @@ -5,4 +5,4 @@ Runtime :glob: :maxdepth: 2 - runtime/* \ No newline at end of file + runtime/* diff --git a/docs/cpp_api/runtime/dataflow_runtime copy.rst b/docs/cpp_api/runtime/dataflow_runtime copy.rst deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/cpp_api/runtime/distributed_generic_task_server.rst b/docs/cpp_api/runtime/distributed_generic_task_server.rst index 10503c078..0d44453e4 100644 --- a/docs/cpp_api/runtime/distributed_generic_task_server.rst +++ b/docs/cpp_api/runtime/distributed_generic_task_server.rst @@ -1,4 +1,4 @@ Distributed generic task server: ================================ -.. doxygenfile:: concretelang/Runtime/distributed_generic_task_server.hpp \ No newline at end of file +.. doxygenfile:: concretelang/Runtime/distributed_generic_task_server.hpp diff --git a/docs/cpp_api/runtime/wrappers.rst b/docs/cpp_api/runtime/wrappers.rst index 8363f3f5e..dc197ad25 100644 --- a/docs/cpp_api/runtime/wrappers.rst +++ b/docs/cpp_api/runtime/wrappers.rst @@ -1,4 +1,4 @@ Wrappers: ========= -.. doxygenfile:: concretelang/Runtime/wrappers.h \ No newline at end of file +.. doxygenfile:: concretelang/Runtime/wrappers.h diff --git a/docs/cpp_api/support.rst b/docs/cpp_api/support.rst index 6654edc02..1e3a24cb6 100644 --- a/docs/cpp_api/support.rst +++ b/docs/cpp_api/support.rst @@ -5,4 +5,4 @@ Support :glob: :maxdepth: 2 - support/* \ No newline at end of file + support/* diff --git a/docs/cpp_api/support/bonus.rst b/docs/cpp_api/support/bonus.rst index 73605cef5..927578f6d 100644 --- a/docs/cpp_api/support/bonus.rst +++ b/docs/cpp_api/support/bonus.rst @@ -25,4 +25,4 @@ V0Parameters: Error: ^^^^^^ -.. doxygenfile:: Error.h \ No newline at end of file +.. doxygenfile:: Error.h diff --git a/docs/cpp_api/support/compiler_engine.rst b/docs/cpp_api/support/compiler_engine.rst index b6d221692..08ec1e553 100644 --- a/docs/cpp_api/support/compiler_engine.rst +++ b/docs/cpp_api/support/compiler_engine.rst @@ -1,4 +1,4 @@ CompilerEngine: =============== -.. doxygenfile:: concretelang/Support/CompilerEngine.h \ No newline at end of file +.. doxygenfile:: concretelang/Support/CompilerEngine.h diff --git a/docs/cpp_api/support/jit.rst b/docs/cpp_api/support/jit.rst index e4b506b89..fcdd218bc 100644 --- a/docs/cpp_api/support/jit.rst +++ b/docs/cpp_api/support/jit.rst @@ -2,4 +2,4 @@ Jit: ==== .. doxygenfile:: Jit.h -.. doxygenfile:: JitCompilerEngine.h \ No newline at end of file +.. doxygenfile:: JitCompilerEngine.h diff --git a/docs/cpp_api/support/lambda_argument.rst b/docs/cpp_api/support/lambda_argument.rst index f50ef8edb..be6787ca7 100644 --- a/docs/cpp_api/support/lambda_argument.rst +++ b/docs/cpp_api/support/lambda_argument.rst @@ -1,4 +1,4 @@ LambdaArgument: =============== -.. doxygenfile:: LambdaArgument.h \ No newline at end of file +.. doxygenfile:: LambdaArgument.h diff --git a/docs/symlink_md.bash b/docs/symlink_md.bash index b320bd6c5..223fd26eb 100755 --- a/docs/symlink_md.bash +++ b/docs/symlink_md.bash @@ -9,4 +9,4 @@ yourfilenames=`find ../../../compiler/build/tools/concretelang/docs/concretelang for entry in $yourfilenames do ln -s "$entry" -f -done \ No newline at end of file +done diff --git a/docs/user/concepts.md b/docs/user/concepts.md index 8c72b0922..7f504a0bb 100644 --- a/docs/user/concepts.md +++ b/docs/user/concepts.md @@ -9,4 +9,3 @@ It has 3 internal MLIR dialects to manage different kinds of abstractions: [FHE] It lowers programs (usually from the FHE dialect) to binaries or libraries which can be called via the [... API](). Its cryptographics primitives are provided by the [concrete library](https://github.com/zama-ai/concrete). - diff --git a/docs/user/troubleshooting.md b/docs/user/troubleshooting.md index 29084becb..062b5f2e7 100644 --- a/docs/user/troubleshooting.md +++ b/docs/user/troubleshooting.md @@ -5,4 +5,4 @@ If you have issues, look at [https://github.com/zama-ai/concrete-compiler-internal/issues](https://github.com/zama-ai/concrete-compiler-internal/issues) if there is any similar existing issue. -If not, please create a new issue. \ No newline at end of file +If not, please create a new issue.