@@ -103,7 +103,8 @@ def LLZK_MulFeltOp : FeltDialectBinaryOp<"mul", LLZK_FeltType, [Commutative]> {
103103 let description = [{}];
104104}
105105
106- def LLZK_PowFeltOp : FeltDialectBinaryOp<"pow", LLZK_FeltType, [WitnessGen]> {
106+ def LLZK_PowFeltOp
107+ : FeltDialectBinaryOp<"pow", LLZK_FeltType, [NotFieldNative]> {
107108 let summary = "exponentiation operator for field elements";
108109 let description = [{
109110
@@ -122,7 +123,7 @@ def LLZK_DivFeltOp : FeltDialectBinaryOp<"div", LLZK_FeltType> {
122123}
123124
124125def LLZK_UnsignedIntDivFeltOp
125- : FeltDialectBinaryOp<"uintdiv", LLZK_FeltType, [WitnessGen ]> {
126+ : FeltDialectBinaryOp<"uintdiv", LLZK_FeltType, [NotFieldNative ]> {
126127 let summary = "unsigned integer division operator for field elements";
127128 let description = [{
128129 Treats the operands as if they were unsigned integers with bitwidth
@@ -131,7 +132,7 @@ def LLZK_UnsignedIntDivFeltOp
131132}
132133
133134def LLZK_SignedIntDivFeltOp
134- : FeltDialectBinaryOp<"sintdiv", LLZK_FeltType, [WitnessGen ]> {
135+ : FeltDialectBinaryOp<"sintdiv", LLZK_FeltType, [NotFieldNative ]> {
135136 let summary = "signed integer division operator for field elements";
136137 let description = [{
137138 Treats the operands as if they were signed integers with bitwidth
@@ -148,7 +149,7 @@ def LLZK_SignedIntDivFeltOp
148149}
149150
150151def LLZK_UnsignedModFeltOp
151- : FeltDialectBinaryOp<"umod", LLZK_FeltType, [WitnessGen ]> {
152+ : FeltDialectBinaryOp<"umod", LLZK_FeltType, [NotFieldNative ]> {
152153 let summary =
153154 "unsigned integer modulus/remainder operator for field elements";
154155 let description = [{
@@ -158,7 +159,7 @@ def LLZK_UnsignedModFeltOp
158159}
159160
160161def LLZK_SignedModFeltOp
161- : FeltDialectBinaryOp<"smod", LLZK_FeltType, [WitnessGen ]> {
162+ : FeltDialectBinaryOp<"smod", LLZK_FeltType, [NotFieldNative ]> {
162163 let summary = "signed integer modulus/remainder operator for field elements";
163164 let description = [{
164165 Computes the remainder that would result from the division operation performed
@@ -171,31 +172,35 @@ def LLZK_NegFeltOp : FeltDialectUnaryOp<"neg", LLZK_FeltType> {
171172 let description = [{}];
172173}
173174
174- def LLZK_InvFeltOp : FeltDialectUnaryOp<"inv", LLZK_FeltType, [WitnessGen]> {
175+ def LLZK_InvFeltOp
176+ : FeltDialectUnaryOp<"inv", LLZK_FeltType, [NotFieldNative]> {
175177 let summary = "inverse operator for field elements";
176178 let description = [{}];
177179}
178180
179181def LLZK_AndFeltOp
180- : FeltDialectBinaryOp<"bit_and", LLZK_FeltType, [WitnessGen, Commutative]> {
182+ : FeltDialectBinaryOp<"bit_and",
183+ LLZK_FeltType, [NotFieldNative, Commutative]> {
181184 let summary = "bitwise AND operator for field elements";
182185 let description = [{}];
183186}
184187
185188def LLZK_OrFeltOp
186- : FeltDialectBinaryOp<"bit_or", LLZK_FeltType, [WitnessGen, Commutative]> {
189+ : FeltDialectBinaryOp<"bit_or",
190+ LLZK_FeltType, [NotFieldNative, Commutative]> {
187191 let summary = "bitwise OR operator for field elements";
188192 let description = [{}];
189193}
190194
191195def LLZK_XorFeltOp
192- : FeltDialectBinaryOp<"bit_xor", LLZK_FeltType, [WitnessGen, Commutative]> {
196+ : FeltDialectBinaryOp<"bit_xor",
197+ LLZK_FeltType, [NotFieldNative, Commutative]> {
193198 let summary = "bitwise XOR operator for field elements";
194199 let description = [{}];
195200}
196201
197202def LLZK_NotFeltOp
198- : FeltDialectUnaryOp<"bit_not", LLZK_FeltType, [WitnessGen ]> {
203+ : FeltDialectUnaryOp<"bit_not", LLZK_FeltType, [NotFieldNative ]> {
199204 let summary = "integer complement (bitwise-not) operator for field elements";
200205 let description = [{
201206 Treats the operand as an integer with a bitwidth equal to the bitwidth
@@ -204,12 +209,14 @@ def LLZK_NotFeltOp
204209 }];
205210}
206211
207- def LLZK_ShlFeltOp : FeltDialectBinaryOp<"shl", LLZK_FeltType, [WitnessGen]> {
212+ def LLZK_ShlFeltOp
213+ : FeltDialectBinaryOp<"shl", LLZK_FeltType, [NotFieldNative]> {
208214 let summary = "left shift operator for field elements";
209215 let description = [{}];
210216}
211217
212- def LLZK_ShrFeltOp : FeltDialectBinaryOp<"shr", LLZK_FeltType, [WitnessGen]> {
218+ def LLZK_ShrFeltOp
219+ : FeltDialectBinaryOp<"shr", LLZK_FeltType, [NotFieldNative]> {
213220 let summary = "right shift operator for field elements";
214221 let description = [{}];
215222}
0 commit comments