@@ -22,12 +22,12 @@ class CKKS_Op<string mnemonic, list<Trait> traits = []> :
2222class CKKS_CiphertextPlaintextOp<string mnemonic, list<Trait> traits = []>
2323 : CKKS_Op<mnemonic, !listconcat(traits, [IsCiphertextPlaintextOp])> {
2424 let arguments = (ins
25- NewLWEPlaintextOrCiphertext :$lhs,
26- NewLWEPlaintextOrCiphertext :$rhs
25+ LWEPlaintextOrCiphertext :$lhs,
26+ LWEPlaintextOrCiphertext :$rhs
2727 );
2828
2929 let results = (outs
30- NewLWECiphertext :$output
30+ LWECiphertext :$output
3131 );
3232}
3333
@@ -36,12 +36,12 @@ def CKKS_AddOp : CKKS_Op<"add", [Commutative, SameOperandsAndResultRings
3636 let summary = "Addition operation between ciphertexts.";
3737
3838 let arguments = (ins
39- NewLWECiphertext :$lhs,
40- NewLWECiphertext :$rhs
39+ LWECiphertext :$lhs,
40+ LWECiphertext :$rhs
4141 );
4242
4343 let results = (outs
44- NewLWECiphertext :$output
44+ LWECiphertext :$output
4545 );
4646}
4747
@@ -56,12 +56,12 @@ def CKKS_SubOp : CKKS_Op<"sub", [SameOperandsAndResultRings,
5656 let summary = "Subtraction operation between ciphertexts.";
5757
5858 let arguments = (ins
59- NewLWECiphertext :$lhs,
60- NewLWECiphertext :$rhs
59+ LWECiphertext :$lhs,
60+ LWECiphertext :$rhs
6161 );
6262
6363 let results = (outs
64- NewLWECiphertext :$output
64+ LWECiphertext :$output
6565 );
6666}
6767
@@ -74,12 +74,12 @@ def CKKS_MulOp : CKKS_Op<"mul", [Commutative, SameOperandsAndResultRings]> {
7474 let summary = "Multiplication operation between ciphertexts.";
7575
7676 let arguments = (ins
77- NewLWECiphertext :$lhs,
78- NewLWECiphertext :$rhs
77+ LWECiphertext :$lhs,
78+ LWECiphertext :$rhs
7979 );
8080
8181 let results = (outs
82- NewLWECiphertext :$output
82+ LWECiphertext :$output
8383 );
8484
8585 // let hasVerifier = 1;
@@ -96,12 +96,12 @@ def CKKS_RotateOp : CKKS_Op<"rotate", [AllTypesMatch<["input", "output"]>]> {
9696 let summary = "Rotate the coefficients of the ciphertext using a Galois automorphism.";
9797
9898 let arguments = (ins
99- NewLWECiphertext :$input,
99+ LWECiphertext :$input,
100100 Builtin_IntegerAttr:$offset
101101 );
102102
103103 let results = (outs
104- NewLWECiphertext :$output
104+ LWECiphertext :$output
105105 );
106106
107107 // let hasVerifier = 1;
@@ -125,12 +125,12 @@ def CKKS_ExtractOp : CKKS_Op<"extract", [SameOperandsAndResultRings]> {
125125 }];
126126
127127 let arguments = (ins
128- NewLWECiphertext :$input,
128+ LWECiphertext :$input,
129129 AnySignlessIntegerOrIndex:$offset
130130 );
131131
132132 let results = (outs
133- NewLWECiphertext :$output
133+ LWECiphertext :$output
134134 );
135135
136136 // let hasVerifier = 1;
@@ -140,11 +140,11 @@ def CKKS_NegateOp : CKKS_Op<"negate", [SameOperandsAndResultType, Involution]> {
140140 let summary = "Negate the coefficients of the ciphertext.";
141141
142142 let arguments = (ins
143- NewLWECiphertext :$input
143+ LWECiphertext :$input
144144 );
145145
146146 let results = (outs
147- NewLWECiphertext :$output
147+ LWECiphertext :$output
148148 );
149149
150150 let assemblyFormat = "operands attr-dict `:` qualified(type($output))" ;
@@ -165,13 +165,13 @@ def CKKS_RelinearizeOp : CKKS_Op<"relinearize", [SameOperandsAndResultRings,
165165 }];
166166
167167 let arguments = (ins
168- NewLWECiphertext :$input,
168+ LWECiphertext :$input,
169169 DenseI32ArrayAttr:$from_basis,
170170 DenseI32ArrayAttr:$to_basis
171171 );
172172
173173 let results = (outs
174- NewLWECiphertext :$output
174+ LWECiphertext :$output
175175 );
176176
177177 // let hasVerifier = 1;
@@ -182,12 +182,12 @@ def CKKS_RescaleOp : CKKS_Op<"rescale"> {
182182 let summary = "Rescales the ciphertext, which is the CKKS version of modulus switching in BGV/BFV.";
183183
184184 let arguments = (ins
185- NewLWECiphertext :$input,
185+ LWECiphertext :$input,
186186 Polynomial_RingAttr:$to_ring
187187 );
188188
189189 let results = (outs
190- NewLWECiphertext :$output
190+ LWECiphertext :$output
191191 );
192192
193193 // let hasVerifier = 1;
@@ -198,12 +198,12 @@ def CKKS_LevelReduceOp : CKKS_Op<"level_reduce", [SameOperandsAndResultPlaintext
198198 let summary = "Lower the modulus level of the ciphertext via dropping RNS limbs.";
199199
200200 let arguments = (ins
201- NewLWECiphertext :$input,
201+ LWECiphertext :$input,
202202 DefaultValuedAttr<I64Attr, "1">:$levelToDrop
203203 );
204204
205205 let results = (outs
206- NewLWECiphertext :$output
206+ LWECiphertext :$output
207207 );
208208
209209 // let hasVerifier = 1;
@@ -219,11 +219,11 @@ def CKKS_BootstrapOp : CKKS_Op<"bootstrap"> {
219219 }];
220220
221221 let arguments = (ins
222- NewLWECiphertext :$input
222+ LWECiphertext :$input
223223 );
224224
225225 let results = (outs
226- NewLWECiphertext :$output
226+ LWECiphertext :$output
227227 );
228228
229229 let assemblyFormat = "operands attr-dict `:` qualified(type($input)) `->` qualified(type($output))" ;
0 commit comments