@@ -106,7 +106,7 @@ def EmitC_ApplyOp : EmitC_Op<"apply", [CExpression]> {
106
106
let hasVerifier = 1;
107
107
}
108
108
109
- def EmitC_BitwiseAndOp : EmitC_BinaryOp<"bitwise_and", []> {
109
+ def EmitC_BitwiseAndOp : EmitC_BinaryOp<"bitwise_and", [CExpression ]> {
110
110
let summary = "Bitwise and operation";
111
111
let description = [{
112
112
With the `bitwise_and` operation the bitwise operator & (and) can
@@ -124,7 +124,8 @@ def EmitC_BitwiseAndOp : EmitC_BinaryOp<"bitwise_and", []> {
124
124
}];
125
125
}
126
126
127
- def EmitC_BitwiseLeftShiftOp : EmitC_BinaryOp<"bitwise_left_shift", []> {
127
+ def EmitC_BitwiseLeftShiftOp : EmitC_BinaryOp<"bitwise_left_shift",
128
+ [CExpression]> {
128
129
let summary = "Bitwise left shift operation";
129
130
let description = [{
130
131
With the `bitwise_left_shift` operation the bitwise operator <<
@@ -142,7 +143,7 @@ def EmitC_BitwiseLeftShiftOp : EmitC_BinaryOp<"bitwise_left_shift", []> {
142
143
}];
143
144
}
144
145
145
- def EmitC_BitwiseNotOp : EmitC_UnaryOp<"bitwise_not", []> {
146
+ def EmitC_BitwiseNotOp : EmitC_UnaryOp<"bitwise_not", [CExpression ]> {
146
147
let summary = "Bitwise not operation";
147
148
let description = [{
148
149
With the `bitwise_not` operation the bitwise operator ~ (not) can
@@ -160,7 +161,7 @@ def EmitC_BitwiseNotOp : EmitC_UnaryOp<"bitwise_not", []> {
160
161
}];
161
162
}
162
163
163
- def EmitC_BitwiseOrOp : EmitC_BinaryOp<"bitwise_or", []> {
164
+ def EmitC_BitwiseOrOp : EmitC_BinaryOp<"bitwise_or", [CExpression ]> {
164
165
let summary = "Bitwise or operation";
165
166
let description = [{
166
167
With the `bitwise_or` operation the bitwise operator | (or)
@@ -178,7 +179,8 @@ def EmitC_BitwiseOrOp : EmitC_BinaryOp<"bitwise_or", []> {
178
179
}];
179
180
}
180
181
181
- def EmitC_BitwiseRightShiftOp : EmitC_BinaryOp<"bitwise_right_shift", []> {
182
+ def EmitC_BitwiseRightShiftOp : EmitC_BinaryOp<"bitwise_right_shift",
183
+ [CExpression]> {
182
184
let summary = "Bitwise right shift operation";
183
185
let description = [{
184
186
With the `bitwise_right_shift` operation the bitwise operator >>
@@ -196,7 +198,7 @@ def EmitC_BitwiseRightShiftOp : EmitC_BinaryOp<"bitwise_right_shift", []> {
196
198
}];
197
199
}
198
200
199
- def EmitC_BitwiseXorOp : EmitC_BinaryOp<"bitwise_xor", []> {
201
+ def EmitC_BitwiseXorOp : EmitC_BinaryOp<"bitwise_xor", [CExpression ]> {
200
202
let summary = "Bitwise xor operation";
201
203
let description = [{
202
204
With the `bitwise_xor` operation the bitwise operator ^ (xor)
@@ -515,7 +517,7 @@ def EmitC_ForOp : EmitC_Op<"for",
515
517
}
516
518
517
519
def EmitC_CallOp : EmitC_Op<"call",
518
- [CallOpInterface,
520
+ [CallOpInterface, CExpression,
519
521
DeclareOpInterfaceMethods<SymbolUserOpInterface>]> {
520
522
let summary = "call operation";
521
523
let description = [{
@@ -771,7 +773,7 @@ def EmitC_LiteralOp : EmitC_Op<"literal", [Pure]> {
771
773
let assemblyFormat = "$value attr-dict `:` type($result)";
772
774
}
773
775
774
- def EmitC_LogicalAndOp : EmitC_BinaryOp<"logical_and", []> {
776
+ def EmitC_LogicalAndOp : EmitC_BinaryOp<"logical_and", [CExpression ]> {
775
777
let summary = "Logical and operation";
776
778
let description = [{
777
779
With the `logical_and` operation the logical operator && (and) can
@@ -792,7 +794,7 @@ def EmitC_LogicalAndOp : EmitC_BinaryOp<"logical_and", []> {
792
794
let assemblyFormat = "operands attr-dict `:` type(operands)";
793
795
}
794
796
795
- def EmitC_LogicalNotOp : EmitC_UnaryOp<"logical_not", []> {
797
+ def EmitC_LogicalNotOp : EmitC_UnaryOp<"logical_not", [CExpression ]> {
796
798
let summary = "Logical not operation";
797
799
let description = [{
798
800
With the `logical_not` operation the logical operator ! (negation) can
@@ -813,7 +815,7 @@ def EmitC_LogicalNotOp : EmitC_UnaryOp<"logical_not", []> {
813
815
let assemblyFormat = "operands attr-dict `:` type(operands)";
814
816
}
815
817
816
- def EmitC_LogicalOrOp : EmitC_BinaryOp<"logical_or", []> {
818
+ def EmitC_LogicalOrOp : EmitC_BinaryOp<"logical_or", [CExpression ]> {
817
819
let summary = "Logical or operation";
818
820
let description = [{
819
821
With the `logical_or` operation the logical operator || (inclusive or)
0 commit comments