Skip to content

Commit

Permalink
Update e2e tests for tfhe-rs and tfhe-rs-bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter Legiest committed Mar 12, 2024
1 parent 4af73b2 commit 13d4552
Show file tree
Hide file tree
Showing 53 changed files with 1,032 additions and 2,098 deletions.
36 changes: 0 additions & 36 deletions .vscode/settings.json

This file was deleted.

12 changes: 0 additions & 12 deletions include/Dialect/BGV/IR/BGVAttributes.h

This file was deleted.

17 changes: 0 additions & 17 deletions include/Dialect/BGV/IR/BGVAttributes.td

This file was deleted.

51 changes: 0 additions & 51 deletions include/Dialect/BGV/IR/BGVTraits.h

This file was deleted.

13 changes: 0 additions & 13 deletions include/Dialect/BGV/IR/BGVTypes.h

This file was deleted.

47 changes: 0 additions & 47 deletions include/Dialect/BGV/IR/BGVTypes.td

This file was deleted.

12 changes: 0 additions & 12 deletions include/Dialect/CGGI/Transforms/Passes.td
Expand Up @@ -19,16 +19,4 @@ def SetDefaultParameters : Pass<"cggi-set-default-parameters"> {
let dependentDialects = ["mlir::heir::cggi::CGGIDialect"];
}

<<<<<<< HEAD
def StraightLineVectorizer : Pass<"cggi-straight-line-vectorizer"> {
let summary = "A straight-line vectorizer for CGGI bootstrapping ops.";
let description = [{
This pass vectorizes CGGI ops. It ignores control flow and only vectorizes
straight-line programs within a given region.
}];
let dependentDialects = ["mlir::heir::cggi::CGGIDialect"];
}

=======
>>>>>>> main
#endif // INCLUDE_DIALECT_CGGI_TRANSFORMS_PASSES_TD_
17 changes: 0 additions & 17 deletions include/Dialect/CGGI/Transforms/StraightLineVectorizer.h

This file was deleted.

3 changes: 0 additions & 3 deletions include/Dialect/LWE/IR/LWEAttributes.h
Expand Up @@ -4,12 +4,9 @@
#include "include/Dialect/LWE/IR/LWEDialect.h"
#include "mlir/include/mlir/IR/TensorEncoding.h" // from @llvm-project

<<<<<<< HEAD
=======
// Required to pull in poly's Ring_Attr
#include "include/Dialect/Polynomial/IR/PolynomialAttributes.h"

>>>>>>> main
#define GET_ATTRDEF_CLASSES
#include "include/Dialect/LWE/IR/LWEAttributes.h.inc"

Expand Down
8 changes: 0 additions & 8 deletions include/Dialect/LWE/IR/LWEAttributes.td
Expand Up @@ -309,24 +309,16 @@ def LWE_RLWEParams : AttrDef<LWE_Dialect, "RLWEParams"> {
let description = [{
An attribute describing classical RLWE parameters:

<<<<<<< HEAD
- `cmod`: the coefficient modulus for the polynomials.
=======
>>>>>>> main
- `dimension`: the number of polynomials used in an RLWE sample, analogous
to LWEParams.dimension.
- `polyDegree`: the degree $N$ of the negacyclic polynomial modulus
$x^N + 1$.
}];

<<<<<<< HEAD
let parameters = (ins "IntegerAttr": $cmod, "unsigned":$dimension, "unsigned": $polyDegree);
=======
let parameters = (ins
DefaultValuedParameter<"unsigned", "2">:$dimension,
"::mlir::heir::polynomial::RingAttr":$ring
);
>>>>>>> main

let assemblyFormat = "`<` struct(params) `>`";
}
Expand Down
8 changes: 0 additions & 8 deletions include/Dialect/Openfhe/IR/OpenfheOps.td
Expand Up @@ -30,8 +30,6 @@ class Openfhe_UnaryOp<string mnemonic, list<Trait> traits = []>
let results = (outs RLWECiphertext:$output);
}

<<<<<<< HEAD
=======
class Openfhe_UnaryTypeSwitchOp<string mnemonic, list<Trait> traits = []>
: Openfhe_Op<mnemonic, traits # [
Pure,
Expand All @@ -43,7 +41,6 @@ class Openfhe_UnaryTypeSwitchOp<string mnemonic, list<Trait> traits = []>
let results = (outs RLWECiphertext:$output);
}

>>>>>>> main
class Openfhe_BinaryOp<string mnemonic, list<Trait> traits = []>
: Openfhe_Op<mnemonic, traits # [
Pure,
Expand Down Expand Up @@ -103,13 +100,8 @@ def NegateOp : Openfhe_UnaryOp<"negate"> { let summary = "OpenFHE negate operati
def SquareOp : Openfhe_UnaryOp<"square"> { let summary = "OpenFHE square operation of a ciphertext."; }
def RelinOp : Openfhe_UnaryOp<"relin"> { let summary = "OpenFHE relinearize operation of a ciphertext."; }

<<<<<<< HEAD
def ModReduceOp : Openfhe_UnaryOp<"mod_reduce"> { let summary = "OpenFHE mod_reduce operation of a ciphertext. (used only for BGV/CKKS)"; }
def LevelReduceOp : Openfhe_UnaryOp<"level_reduce"> { let summary = "OpenFHE level_reduce operation of a ciphertext."; }
=======
def ModReduceOp : Openfhe_UnaryTypeSwitchOp<"mod_reduce"> { let summary = "OpenFHE mod_reduce operation of a ciphertext. (used only for BGV/CKKS)"; }
def LevelReduceOp : Openfhe_UnaryTypeSwitchOp<"level_reduce"> { let summary = "OpenFHE level_reduce operation of a ciphertext."; }
>>>>>>> main

def RotOp : Openfhe_Op<"rot",[
Pure,
Expand Down
13 changes: 0 additions & 13 deletions include/Dialect/Polynomial/IR/PolynomialTypes.td
Expand Up @@ -4,18 +4,6 @@
include "include/Dialect/Polynomial/IR/PolynomialDialect.td"
include "include/Dialect/Polynomial/IR/PolynomialAttributes.td"

<<<<<<< HEAD
include "mlir/IR/DialectBase.td"
include "mlir/IR/AttrTypeBase.td"

// A base class for all types in this dialect
class Polynomial_Type<string name, string typeMnemonic>
: TypeDef<Polynomial_Dialect, name> {
let mnemonic = typeMnemonic;
}

def Polynomial : Polynomial_Type<"Polynomial", "polynomial"> {
=======
include "mlir/IR/AttrTypeBase.td"
include "mlir/IR/BuiltinTypes.td"
include "mlir/IR/DialectBase.td"
Expand All @@ -27,7 +15,6 @@ class Polynomial_Type<string name, string typeMnemonic, list<Trait> traits = []>
}

def Polynomial : Polynomial_Type<"Polynomial", "polynomial", [MemRefElementTypeInterface]> {
>>>>>>> main
let summary = "An element of a polynomial quotient ring";

let description = [{
Expand Down
1 change: 0 additions & 1 deletion include/Dialect/TfheRustBool/IR/TfheRustBoolOps.td
Expand Up @@ -68,7 +68,6 @@ def XorPackedOp : TfheRustBool_Op<"xor_packed", [
let results = (outs TensorOf<[TfheRustBool_Encrypted]>:$output);
}


def NotOp : TfheRustBool_Op<"not", [
Pure,
AllTypesMatch<["input", "output"]>
Expand Down

0 comments on commit 13d4552

Please sign in to comment.