@@ -58,7 +58,7 @@ def FloatIntegerIndexOrOpaqueType : AnyTypeOf<[EmitCFloatType, IntegerIndexOrOpa
58
58
def EmitC_AddOp : EmitC_BinaryOp<"add", [CExpression]> {
59
59
let summary = "Addition operation";
60
60
let description = [{
61
- With the `add` operation the arithmetic operator + (addition) can
61
+ With the `emitc. add` operation the arithmetic operator + (addition) can
62
62
be applied.
63
63
64
64
Example:
@@ -81,7 +81,7 @@ def EmitC_AddOp : EmitC_BinaryOp<"add", [CExpression]> {
81
81
def EmitC_ApplyOp : EmitC_Op<"apply", [CExpression]> {
82
82
let summary = "Apply operation";
83
83
let description = [{
84
- With the `apply` operation the operators & (address of) and * (contents of)
84
+ With the `emitc. apply` operation the operators & (address of) and * (contents of)
85
85
can be applied to a single operand.
86
86
87
87
Example:
@@ -110,7 +110,7 @@ def EmitC_ApplyOp : EmitC_Op<"apply", [CExpression]> {
110
110
def EmitC_BitwiseAndOp : EmitC_BinaryOp<"bitwise_and", [CExpression]> {
111
111
let summary = "Bitwise and operation";
112
112
let description = [{
113
- With the `bitwise_and` operation the bitwise operator & (and) can
113
+ With the `emitc. bitwise_and` operation the bitwise operator & (and) can
114
114
be applied.
115
115
116
116
Example:
@@ -129,7 +129,7 @@ def EmitC_BitwiseLeftShiftOp : EmitC_BinaryOp<"bitwise_left_shift",
129
129
[CExpression]> {
130
130
let summary = "Bitwise left shift operation";
131
131
let description = [{
132
- With the `bitwise_left_shift` operation the bitwise operator <<
132
+ With the `emitc. bitwise_left_shift` operation the bitwise operator <<
133
133
(left shift) can be applied.
134
134
135
135
Example:
@@ -147,7 +147,7 @@ def EmitC_BitwiseLeftShiftOp : EmitC_BinaryOp<"bitwise_left_shift",
147
147
def EmitC_BitwiseNotOp : EmitC_UnaryOp<"bitwise_not", [CExpression]> {
148
148
let summary = "Bitwise not operation";
149
149
let description = [{
150
- With the `bitwise_not` operation the bitwise operator ~ (not) can
150
+ With the `emitc. bitwise_not` operation the bitwise operator ~ (not) can
151
151
be applied.
152
152
153
153
Example:
@@ -165,7 +165,7 @@ def EmitC_BitwiseNotOp : EmitC_UnaryOp<"bitwise_not", [CExpression]> {
165
165
def EmitC_BitwiseOrOp : EmitC_BinaryOp<"bitwise_or", [CExpression]> {
166
166
let summary = "Bitwise or operation";
167
167
let description = [{
168
- With the `bitwise_or` operation the bitwise operator | (or)
168
+ With the `emitc. bitwise_or` operation the bitwise operator | (or)
169
169
can be applied.
170
170
171
171
Example:
@@ -184,7 +184,7 @@ def EmitC_BitwiseRightShiftOp : EmitC_BinaryOp<"bitwise_right_shift",
184
184
[CExpression]> {
185
185
let summary = "Bitwise right shift operation";
186
186
let description = [{
187
- With the `bitwise_right_shift` operation the bitwise operator >>
187
+ With the `emitc. bitwise_right_shift` operation the bitwise operator >>
188
188
(right shift) can be applied.
189
189
190
190
Example:
@@ -202,7 +202,7 @@ def EmitC_BitwiseRightShiftOp : EmitC_BinaryOp<"bitwise_right_shift",
202
202
def EmitC_BitwiseXorOp : EmitC_BinaryOp<"bitwise_xor", [CExpression]> {
203
203
let summary = "Bitwise xor operation";
204
204
let description = [{
205
- With the `bitwise_xor` operation the bitwise operator ^ (xor)
205
+ With the `emitc. bitwise_xor` operation the bitwise operator ^ (xor)
206
206
can be applied.
207
207
208
208
Example:
@@ -220,7 +220,7 @@ def EmitC_BitwiseXorOp : EmitC_BinaryOp<"bitwise_xor", [CExpression]> {
220
220
def EmitC_CallOpaqueOp : EmitC_Op<"call_opaque", [CExpression]> {
221
221
let summary = "Opaque call operation";
222
222
let description = [{
223
- The `call_opaque` operation represents a C++ function call. The callee
223
+ The `emitc. call_opaque` operation represents a C++ function call. The callee
224
224
can be an arbitrary non-empty string. The call allows specifying order
225
225
of operands and attributes in the call as follows:
226
226
@@ -269,7 +269,7 @@ def EmitC_CastOp : EmitC_Op<"cast",
269
269
SameOperandsAndResultShape]> {
270
270
let summary = "Cast operation";
271
271
let description = [{
272
- The `cast` operation performs an explicit type conversion and is emitted
272
+ The `emitc. cast` operation performs an explicit type conversion and is emitted
273
273
as a C-style cast expression. It can be applied to integer, float, index
274
274
and EmitC types.
275
275
@@ -293,7 +293,7 @@ def EmitC_CastOp : EmitC_Op<"cast",
293
293
def EmitC_CmpOp : EmitC_BinaryOp<"cmp", [CExpression]> {
294
294
let summary = "Comparison operation";
295
295
let description = [{
296
- With the `cmp` operation the comparison operators ==, !=, <, <=, >, >=, <=>
296
+ With the `emitc. cmp` operation the comparison operators ==, !=, <, <=, >, >=, <=>
297
297
can be applied.
298
298
299
299
Its first argument is an attribute that defines the comparison operator:
@@ -334,10 +334,10 @@ def EmitC_CmpOp : EmitC_BinaryOp<"cmp", [CExpression]> {
334
334
def EmitC_ConstantOp : EmitC_Op<"constant", [ConstantLike]> {
335
335
let summary = "Constant operation";
336
336
let description = [{
337
- The `constant` operation produces an SSA value equal to some constant
337
+ The `emitc. constant` operation produces an SSA value equal to some constant
338
338
specified by an attribute. This can be used to form simple integer and
339
339
floating point constants, as well as more exotic things like tensor
340
- constants. The `constant` operation also supports the EmitC opaque
340
+ constants. The `emitc. constant` operation also supports the EmitC opaque
341
341
attribute and the EmitC opaque type. Since folding is supported,
342
342
it should not be used with pointers.
343
343
@@ -363,7 +363,7 @@ def EmitC_ConstantOp : EmitC_Op<"constant", [ConstantLike]> {
363
363
def EmitC_DivOp : EmitC_BinaryOp<"div", [CExpression]> {
364
364
let summary = "Division operation";
365
365
let description = [{
366
- With the `div` operation the arithmetic operator / (division) can
366
+ With the `emitc. div` operation the arithmetic operator / (division) can
367
367
be applied.
368
368
369
369
Example:
@@ -389,7 +389,7 @@ def EmitC_ExpressionOp : EmitC_Op<"expression",
389
389
NoRegionArguments]> {
390
390
let summary = "Expression operation";
391
391
let description = [{
392
- The `expression` operation returns a single SSA value which is yielded by
392
+ The `emitc. expression` operation returns a single SSA value which is yielded by
393
393
its single-basic-block region. The operation doesn't take any arguments.
394
394
395
395
As the operation is to be emitted as a C expression, the operations within
@@ -593,8 +593,8 @@ def EmitC_DeclareFuncOp : EmitC_Op<"declare_func", [
593
593
]> {
594
594
let summary = "An operation to declare a function";
595
595
let description = [{
596
- The `declare_func` operation allows to insert a function declaration for an
597
- `emitc.func` at a specific position. The operation only requires the ` callee`
596
+ The `emitc. declare_func` operation allows to insert a function declaration for an
597
+ `emitc.func` at a specific position. The operation only requires the " callee"
598
598
of the `emitc.func` to be specified as an attribute.
599
599
600
600
Example:
@@ -733,7 +733,7 @@ def EmitC_IncludeOp
733
733
: EmitC_Op<"include", [HasParent<"ModuleOp">]> {
734
734
let summary = "Include operation";
735
735
let description = [{
736
- The `include` operation allows to define a source file inclusion via the
736
+ The `emitc. include` operation allows to define a source file inclusion via the
737
737
`#include` directive.
738
738
739
739
Example:
@@ -762,7 +762,7 @@ def EmitC_IncludeOp
762
762
def EmitC_LiteralOp : EmitC_Op<"literal", [Pure]> {
763
763
let summary = "Literal operation";
764
764
let description = [{
765
- The `literal` operation produces an SSA value equal to some constant
765
+ The `emitc. literal` operation produces an SSA value equal to some constant
766
766
specified by an attribute.
767
767
}];
768
768
@@ -776,7 +776,7 @@ def EmitC_LiteralOp : EmitC_Op<"literal", [Pure]> {
776
776
def EmitC_LogicalAndOp : EmitC_BinaryOp<"logical_and", [CExpression]> {
777
777
let summary = "Logical and operation";
778
778
let description = [{
779
- With the `logical_and` operation the logical operator && (and) can
779
+ With the `emitc. logical_and` operation the logical operator && (and) can
780
780
be applied.
781
781
782
782
Example:
@@ -797,7 +797,7 @@ def EmitC_LogicalAndOp : EmitC_BinaryOp<"logical_and", [CExpression]> {
797
797
def EmitC_LogicalNotOp : EmitC_UnaryOp<"logical_not", [CExpression]> {
798
798
let summary = "Logical not operation";
799
799
let description = [{
800
- With the `logical_not` operation the logical operator ! (negation) can
800
+ With the `emitc. logical_not` operation the logical operator ! (negation) can
801
801
be applied.
802
802
803
803
Example:
@@ -818,7 +818,7 @@ def EmitC_LogicalNotOp : EmitC_UnaryOp<"logical_not", [CExpression]> {
818
818
def EmitC_LogicalOrOp : EmitC_BinaryOp<"logical_or", [CExpression]> {
819
819
let summary = "Logical or operation";
820
820
let description = [{
821
- With the `logical_or` operation the logical operator || (inclusive or)
821
+ With the `emitc. logical_or` operation the logical operator || (inclusive or)
822
822
can be applied.
823
823
824
824
Example:
@@ -839,7 +839,7 @@ def EmitC_LogicalOrOp : EmitC_BinaryOp<"logical_or", [CExpression]> {
839
839
def EmitC_MulOp : EmitC_BinaryOp<"mul", [CExpression]> {
840
840
let summary = "Multiplication operation";
841
841
let description = [{
842
- With the `mul` operation the arithmetic operator * (multiplication) can
842
+ With the `emitc. mul` operation the arithmetic operator * (multiplication) can
843
843
be applied.
844
844
845
845
Example:
@@ -863,7 +863,7 @@ def EmitC_MulOp : EmitC_BinaryOp<"mul", [CExpression]> {
863
863
def EmitC_RemOp : EmitC_BinaryOp<"rem", [CExpression]> {
864
864
let summary = "Remainder operation";
865
865
let description = [{
866
- With the `rem` operation the arithmetic operator % (remainder) can
866
+ With the `emitc. rem` operation the arithmetic operator % (remainder) can
867
867
be applied.
868
868
869
869
Example:
@@ -885,7 +885,7 @@ def EmitC_RemOp : EmitC_BinaryOp<"rem", [CExpression]> {
885
885
def EmitC_SubOp : EmitC_BinaryOp<"sub", [CExpression]> {
886
886
let summary = "Subtraction operation";
887
887
let description = [{
888
- With the `sub` operation the arithmetic operator - (subtraction) can
888
+ With the `emitc. sub` operation the arithmetic operator - (subtraction) can
889
889
be applied.
890
890
891
891
Example:
@@ -911,7 +911,7 @@ def EmitC_SubOp : EmitC_BinaryOp<"sub", [CExpression]> {
911
911
def EmitC_MemberOp : EmitC_Op<"member"> {
912
912
let summary = "Member operation";
913
913
let description = [{
914
- With the `member` operation the member access operator `.` can be
914
+ With the `emitc. member` operation the member access operator `.` can be
915
915
applied.
916
916
917
917
Example:
@@ -932,7 +932,7 @@ def EmitC_MemberOp : EmitC_Op<"member"> {
932
932
def EmitC_MemberOfPtrOp : EmitC_Op<"member_of_ptr"> {
933
933
let summary = "Member of pointer operation";
934
934
let description = [{
935
- With the `member_of_ptr` operation the member access operator `->`
935
+ With the `emitc. member_of_ptr` operation the member access operator `->`
936
936
can be applied.
937
937
938
938
Example:
@@ -954,7 +954,7 @@ def EmitC_ConditionalOp : EmitC_Op<"conditional",
954
954
[AllTypesMatch<["true_value", "false_value", "result"]>, CExpression]> {
955
955
let summary = "Conditional (ternary) operation";
956
956
let description = [{
957
- With the `conditional` operation the ternary conditional operator can
957
+ With the `emitc. conditional` operation the ternary conditional operator can
958
958
be applied.
959
959
960
960
Example:
@@ -983,7 +983,7 @@ def EmitC_ConditionalOp : EmitC_Op<"conditional",
983
983
def EmitC_UnaryMinusOp : EmitC_UnaryOp<"unary_minus", [CExpression]> {
984
984
let summary = "Unary minus operation";
985
985
let description = [{
986
- With the `unary_minus` operation the unary operator - (minus) can be
986
+ With the `emitc. unary_minus` operation the unary operator - (minus) can be
987
987
applied.
988
988
989
989
Example:
@@ -1001,7 +1001,7 @@ def EmitC_UnaryMinusOp : EmitC_UnaryOp<"unary_minus", [CExpression]> {
1001
1001
def EmitC_UnaryPlusOp : EmitC_UnaryOp<"unary_plus", [CExpression]> {
1002
1002
let summary = "Unary plus operation";
1003
1003
let description = [{
1004
- With the `unary_plus` operation the unary operator + (plus) can be
1004
+ With the `emitc. unary_plus` operation the unary operator + (plus) can be
1005
1005
applied.
1006
1006
1007
1007
Example:
@@ -1019,13 +1019,13 @@ def EmitC_UnaryPlusOp : EmitC_UnaryOp<"unary_plus", [CExpression]> {
1019
1019
def EmitC_VariableOp : EmitC_Op<"variable", []> {
1020
1020
let summary = "Variable operation";
1021
1021
let description = [{
1022
- The `variable` operation produces an SSA value equal to some value
1022
+ The `emitc. variable` operation produces an SSA value equal to some value
1023
1023
specified by an attribute. This can be used to form simple integer and
1024
1024
floating point variables, as well as more exotic things like tensor
1025
- variables. The `variable` operation also supports the EmitC opaque
1025
+ variables. The `emitc. variable` operation also supports the EmitC opaque
1026
1026
attribute and the EmitC opaque type. If further supports the EmitC
1027
1027
pointer type, whereas folding is not supported.
1028
- The `variable` is emitted as a C/C++ local variable.
1028
+ The `emitc. variable` is emitted as a C/C++ local variable.
1029
1029
1030
1030
Example:
1031
1031
@@ -1129,7 +1129,7 @@ def EmitC_GetGlobalOp : EmitC_Op<"get_global",
1129
1129
def EmitC_VerbatimOp : EmitC_Op<"verbatim"> {
1130
1130
let summary = "Verbatim operation";
1131
1131
let description = [{
1132
- The `verbatim` operation produces no results and the value is emitted as is
1132
+ The `emitc. verbatim` operation produces no results and the value is emitted as is
1133
1133
followed by a line break ('\n' character) during translation.
1134
1134
1135
1135
Note: Use with caution. This operation can have arbitrary effects on the
@@ -1163,7 +1163,7 @@ def EmitC_VerbatimOp : EmitC_Op<"verbatim"> {
1163
1163
def EmitC_AssignOp : EmitC_Op<"assign", []> {
1164
1164
let summary = "Assign operation";
1165
1165
let description = [{
1166
- The `assign` operation stores an SSA value to the location designated by an
1166
+ The `emitc. assign` operation stores an SSA value to the location designated by an
1167
1167
EmitC variable. This operation doesn't return any value. The assigned value
1168
1168
must be of the same type as the variable being assigned. The operation is
1169
1169
emitted as a C/C++ '=' operator.
@@ -1191,11 +1191,11 @@ def EmitC_YieldOp : EmitC_Op<"yield",
1191
1191
[Pure, Terminator, ParentOneOf<["ExpressionOp", "IfOp", "ForOp"]>]> {
1192
1192
let summary = "block termination operation";
1193
1193
let description = [{
1194
- " yield" terminates its parent EmitC op's region, optionally yielding
1194
+ The `emitc. yield` terminates its parent EmitC op's region, optionally yielding
1195
1195
an SSA value. The semantics of how the values are yielded is defined by the
1196
1196
parent operation.
1197
- If " yield" has an operand, the operand must match the parent operation's
1198
- result. If the parent operation defines no values, then the " emitc.yield"
1197
+ If `emitc. yield` has an operand, the operand must match the parent operation's
1198
+ result. If the parent operation defines no values, then the ` emitc.yield`
1199
1199
may be left out in the custom syntax and the builders will insert one
1200
1200
implicitly. Otherwise, it has to be present in the syntax to indicate which
1201
1201
value is yielded.
@@ -1216,7 +1216,7 @@ def EmitC_IfOp : EmitC_Op<"if",
1216
1216
RecursiveMemoryEffects, NoRegionArguments]> {
1217
1217
let summary = "if-then-else operation";
1218
1218
let description = [{
1219
- The `if` operation represents an if-then-else construct for
1219
+ The `emitc. if` operation represents an if-then-else construct for
1220
1220
conditionally executing two regions of code. The operand to an if operation
1221
1221
is a boolean value. For example:
1222
1222
@@ -1268,7 +1268,7 @@ def EmitC_IfOp : EmitC_Op<"if",
1268
1268
def EmitC_SubscriptOp : EmitC_Op<"subscript", []> {
1269
1269
let summary = "Subscript operation";
1270
1270
let description = [{
1271
- With the `subscript` operation the subscript operator `[]` can be applied
1271
+ With the `emitc. subscript` operation the subscript operator `[]` can be applied
1272
1272
to variables or arguments of array, pointer and opaque type.
1273
1273
1274
1274
Example:
0 commit comments