Skip to content

Commit a267e49

Browse files
committed
start refactoring orion-to-ckks to walk driver
1 parent 2ba78b8 commit a267e49

File tree

5 files changed

+412
-307
lines changed

5 files changed

+412
-307
lines changed

lib/Dialect/CKKS/IR/CKKSOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def CKKS_AddOp : CKKS_Op<"add", [ElementwiseMappable, Commutative, SameOperandsA
4747
}
4848

4949
def CKKS_AddPlainOp : CKKS_CiphertextPlaintextOp<"add_plain", [ElementwiseMappable, AllCiphertextTypesMatch,
50-
SameOperandsAndResultPlaintextTypes, Commutative]> {
50+
SameOperandsAndResultPlaintextTypes, Commutative, InferTypeOpAdaptor]> {
5151
let summary = "Addition operation between ciphertext-plaintext.";
5252
let hasCanonicalizer = 1;
5353
}
@@ -67,7 +67,7 @@ def CKKS_SubOp : CKKS_Op<"sub", [ElementwiseMappable, SameOperandsAndResultRings
6767
}
6868

6969
def CKKS_SubPlainOp : CKKS_CiphertextPlaintextOp<"sub_plain", [ElementwiseMappable, AllCiphertextTypesMatch,
70-
SameOperandsAndResultPlaintextTypes]> {
70+
SameOperandsAndResultPlaintextTypes, InferTypeOpAdaptor]> {
7171
let summary = "Subtraction operation between ciphertext-plaintext.";
7272
}
7373

0 commit comments

Comments
 (0)