@@ -43,7 +43,7 @@ def Lattigo_CKKSNewEncoderOp : Lattigo_CKKSOp<"new_encoder"> {
4343 let results = (outs Lattigo_CKKSEncoder:$encoder);
4444}
4545
46- def Lattigo_CKKSEncodeOp : Lattigo_CKKSOp<"encode", [InplaceOpInterface ]> {
46+ def Lattigo_CKKSEncodeOp : Lattigo_CKKSOp<"encode", [InPlaceOpInterface ]> {
4747 let summary = "Encode a plaintext value in the Lattigo CKKS dialect";
4848 let description = [{
4949 This operation encodes a plaintext value using the specified encoder in the Lattigo CKKS dialect.
@@ -60,7 +60,7 @@ def Lattigo_CKKSEncodeOp : Lattigo_CKKSOp<"encode", [InplaceOpInterface]> {
6060 );
6161 let results = (outs Lattigo_RLWEPlaintext:$encoded);
6262
63- let extraClassDeclaration = "int getInplaceOperandIndex () { return 2; }";
63+ let extraClassDeclaration = "int getInPlaceOperandIndex () { return 2; }";
6464}
6565
6666def Lattigo_CKKSDecodeOp : Lattigo_CKKSOp<"decode", [AllTypesMatch<["value", "decoded"]>]> {
@@ -131,8 +131,8 @@ def Lattigo_CKKSMulNewOp : Lattigo_CKKSBinaryOp<"mul_new", [IncreasesMulDepthOpI
131131 }];
132132}
133133
134- class Lattigo_CKKSBinaryInplaceOp <string mnemonic, list<Trait> traits = []> :
135- Lattigo_CKKSOp<mnemonic, traits # [InplaceOpInterface ]> {
134+ class Lattigo_CKKSBinaryInPlaceOp <string mnemonic, list<Trait> traits = []> :
135+ Lattigo_CKKSOp<mnemonic, traits # [InPlaceOpInterface ]> {
136136 let arguments = (ins
137137 Lattigo_CKKSEvaluator:$evaluator,
138138 Lattigo_RLWECiphertext:$lhs,
@@ -143,10 +143,10 @@ class Lattigo_CKKSBinaryInplaceOp<string mnemonic, list<Trait> traits = []> :
143143 );
144144 let results = (outs Lattigo_RLWECiphertext:$output);
145145
146- let extraClassDeclaration = "int getInplaceOperandIndex () { return 3; }";
146+ let extraClassDeclaration = "int getInPlaceOperandIndex () { return 3; }";
147147}
148148
149- def Lattigo_CKKSAddOp : Lattigo_CKKSBinaryInplaceOp <"add"> {
149+ def Lattigo_CKKSAddOp : Lattigo_CKKSBinaryInPlaceOp <"add"> {
150150 let summary = "Add two ciphertexts in the Lattigo CKKS dialect";
151151 let description = [{
152152 This operation adds two ciphertext values in the Lattigo CKKS dialect.
@@ -156,7 +156,7 @@ def Lattigo_CKKSAddOp : Lattigo_CKKSBinaryInplaceOp<"add"> {
156156 }];
157157}
158158
159- def Lattigo_CKKSSubOp : Lattigo_CKKSBinaryInplaceOp <"sub"> {
159+ def Lattigo_CKKSSubOp : Lattigo_CKKSBinaryInPlaceOp <"sub"> {
160160 let summary = "Subtract two ciphertexts in the Lattigo CKKS dialect";
161161 let description = [{
162162 This operation subtracts one ciphertext value from another in the Lattigo CKKS dialect.
@@ -166,7 +166,7 @@ def Lattigo_CKKSSubOp : Lattigo_CKKSBinaryInplaceOp<"sub"> {
166166 }];
167167}
168168
169- def Lattigo_CKKSMulOp : Lattigo_CKKSBinaryInplaceOp <"mul", [IncreasesMulDepthOpInterface]> {
169+ def Lattigo_CKKSMulOp : Lattigo_CKKSBinaryInPlaceOp <"mul", [IncreasesMulDepthOpInterface]> {
170170 let summary = "Multiply two ciphertexts in the Lattigo CKKS dialect";
171171 let description = [{
172172 This operation multiplies two ciphertext values in the Lattigo CKKS dialect.
@@ -218,20 +218,20 @@ def Lattigo_CKKSRotateNewOp : Lattigo_CKKSOp<"rotate_new"> {
218218 let results = (outs Lattigo_RLWECiphertext:$output);
219219}
220220
221- class Lattigo_CKKSUnaryInplaceOp <string mnemonic> :
222- Lattigo_CKKSOp<mnemonic, [InplaceOpInterface ]> {
221+ class Lattigo_CKKSUnaryInPlaceOp <string mnemonic> :
222+ Lattigo_CKKSOp<mnemonic, [InPlaceOpInterface ]> {
223223 let arguments = (ins
224224 Lattigo_CKKSEvaluator:$evaluator,
225225 Lattigo_RLWECiphertext:$input,
226- // see BinaryInplaceOp above
226+ // see BinaryInPlaceOp above
227227 Lattigo_RLWECiphertext:$inplace
228228 );
229229 let results = (outs Lattigo_RLWECiphertext:$output);
230230
231- let extraClassDeclaration = "int getInplaceOperandIndex () { return 2; }";
231+ let extraClassDeclaration = "int getInPlaceOperandIndex () { return 2; }";
232232}
233233
234- def Lattigo_CKKSRelinearizeOp : Lattigo_CKKSUnaryInplaceOp <"relinearize"> {
234+ def Lattigo_CKKSRelinearizeOp : Lattigo_CKKSUnaryInPlaceOp <"relinearize"> {
235235 let summary = "Relinearize a ciphertext in the Lattigo CKKS dialect";
236236 let description = [{
237237 This operation relinearizes a ciphertext value in the Lattigo CKKS dialect.
@@ -241,7 +241,7 @@ def Lattigo_CKKSRelinearizeOp : Lattigo_CKKSUnaryInplaceOp<"relinearize"> {
241241 }];
242242}
243243
244- def Lattigo_CKKSRescaleOp : Lattigo_CKKSUnaryInplaceOp <"rescale"> {
244+ def Lattigo_CKKSRescaleOp : Lattigo_CKKSUnaryInPlaceOp <"rescale"> {
245245 let summary = "Rescale a ciphertext in the Lattigo CKKS dialect";
246246 let description = [{
247247 This operation rescales a ciphertext value in the Lattigo CKKS dialect.
@@ -251,7 +251,7 @@ def Lattigo_CKKSRescaleOp : Lattigo_CKKSUnaryInplaceOp<"rescale"> {
251251 }];
252252}
253253
254- def Lattigo_CKKSRotateOp : Lattigo_CKKSUnaryInplaceOp <"rotate"> {
254+ def Lattigo_CKKSRotateOp : Lattigo_CKKSUnaryInPlaceOp <"rotate"> {
255255 let summary = "Rotate slots of a ciphertext in the Lattigo CKKS dialect";
256256 let description = [{
257257 This operation rotates slots of a ciphertext value in the Lattigo CKKS dialect.
@@ -268,7 +268,7 @@ def Lattigo_CKKSRotateOp : Lattigo_CKKSUnaryInplaceOp<"rotate"> {
268268 let arguments = (ins
269269 Lattigo_CKKSEvaluator:$evaluator,
270270 Lattigo_RLWECiphertext:$input,
271- // see BinaryInplaceOp above
271+ // see BinaryInPlaceOp above
272272 Lattigo_RLWECiphertext:$inplace,
273273 Builtin_IntegerAttr:$offset
274274 );
0 commit comments