@@ -182,7 +182,7 @@ def IRDL_OperationOp : IRDL_Op<"operation",
182
182
183
183
irdl.operation @norm {
184
184
%0 = irdl.any
185
- %1 = irdl.parametric @complex<%0>
185
+ %1 = irdl.parametric @cmath::@ complex<%0>
186
186
irdl.results(%0)
187
187
irdl.operands(%1)
188
188
}
@@ -216,7 +216,7 @@ def IRDL_OperandsOp : IRDL_Op<"operands", [HasParent<"OperationOp">]> {
216
216
217
217
irdl.operation @mul {
218
218
%0 = irdl.any
219
- %1 = irdl.parametric @complex<%0>
219
+ %1 = irdl.parametric @cmath::@ complex<%0>
220
220
irdl.results(%1)
221
221
irdl.operands(%1, %1)
222
222
}
@@ -230,7 +230,7 @@ def IRDL_OperandsOp : IRDL_Op<"operands", [HasParent<"OperationOp">]> {
230
230
```mlir
231
231
irdl.operands(%0, single %1, optional %2, variadic %3)
232
232
```
233
-
233
+
234
234
Here, %0 and %1 are required single operands, %2 is an optional operand,
235
235
and %3 is a variadic operand.
236
236
@@ -239,7 +239,7 @@ def IRDL_OperandsOp : IRDL_Op<"operands", [HasParent<"OperationOp">]> {
239
239
operands in each segment.
240
240
}];
241
241
242
- let arguments = (ins Variadic<IRDL_AttributeType>:$args,
242
+ let arguments = (ins Variadic<IRDL_AttributeType>:$args,
243
243
VariadicityArrayAttr:$variadicity);
244
244
let assemblyFormat =
245
245
"`` custom<ValuesWithVariadicity>($args, $variadicity) attr-dict";
@@ -262,7 +262,7 @@ def IRDL_ResultsOp : IRDL_Op<"results", [HasParent<"OperationOp">]> {
262
262
263
263
irdl.operation @get_values {
264
264
%0 = irdl.any
265
- %1 = irdl.parametric @complex<%0>
265
+ %1 = irdl.parametric @cmath::@ complex<%0>
266
266
irdl.results(%0, %0)
267
267
irdl.operands(%1)
268
268
}
@@ -276,7 +276,7 @@ def IRDL_ResultsOp : IRDL_Op<"results", [HasParent<"OperationOp">]> {
276
276
```mlir
277
277
irdl.results(%0, single %1, optional %2, variadic %3)
278
278
```
279
-
279
+
280
280
Here, %0 and %1 are required single results, %2 is an optional result,
281
281
and %3 is a variadic result.
282
282
@@ -285,7 +285,7 @@ def IRDL_ResultsOp : IRDL_Op<"results", [HasParent<"OperationOp">]> {
285
285
results in each segment.
286
286
}];
287
287
288
- let arguments = (ins Variadic<IRDL_AttributeType>:$args,
288
+ let arguments = (ins Variadic<IRDL_AttributeType>:$args,
289
289
VariadicityArrayAttr:$variadicity);
290
290
let assemblyFormat =
291
291
" `` custom<ValuesWithVariadicity>($args, $variadicity) attr-dict";
@@ -296,7 +296,7 @@ def IRDL_AttributesOp : IRDL_Op<"attributes", [HasParent<"OperationOp">]> {
296
296
let summary = "Define the attributes of an operation";
297
297
298
298
let description = [{
299
- `irdl.attributes` defines the attributes of the `irdl.operation` parent
299
+ `irdl.attributes` defines the attributes of the `irdl.operation` parent
300
300
operation definition.
301
301
302
302
In the following example, `irdl.attributes` defines the attributes of the
@@ -320,10 +320,10 @@ def IRDL_AttributesOp : IRDL_Op<"attributes", [HasParent<"OperationOp">]> {
320
320
attribute "attr2" with value `i64`.
321
321
}];
322
322
323
- let arguments = (ins Variadic<IRDL_AttributeType>:$attributeValues,
323
+ let arguments = (ins Variadic<IRDL_AttributeType>:$attributeValues,
324
324
StrArrayAttr:$attributeValueNames);
325
325
let assemblyFormat = [{
326
- custom<AttributesOp>($attributeValues, $attributeValueNames) attr-dict
326
+ custom<AttributesOp>($attributeValues, $attributeValueNames) attr-dict
327
327
}];
328
328
329
329
let hasVerifier = true;
@@ -489,7 +489,7 @@ def IRDL_BaseOp : IRDL_ConstraintOp<"base",
489
489
OptionalAttr<StrAttr>:$base_name);
490
490
let results = (outs IRDL_AttributeType:$output);
491
491
let assemblyFormat = " ($base_ref^)? ($base_name^)? ` ` attr-dict";
492
-
492
+
493
493
let builders = [
494
494
OpBuilder<(ins "SymbolRefAttr":$base_ref), [{
495
495
build($_builder, $_state, base_ref, {});
@@ -521,7 +521,7 @@ def IRDL_ParametricOp : IRDL_ConstraintOp<"parametric",
521
521
522
522
irdl.operation @norm {
523
523
%0 = irdl.any
524
- %1 = irdl.parametric @complex<%0>
524
+ %1 = irdl.parametric @cmath::@ complex<%0>
525
525
irdl.operands(%1)
526
526
irdl.results(%0)
527
527
}
@@ -574,8 +574,8 @@ def IRDL_AnyOfOp : IRDL_ConstraintOp<"any_of",
574
574
Example:
575
575
576
576
```mlir
577
- irdl.dialect cmath {
578
- irdl.type complex {
577
+ irdl.dialect @ cmath {
578
+ irdl.type @ complex {
579
579
%0 = irdl.is i32
580
580
%1 = irdl.is i64
581
581
%2 = irdl.is f32
@@ -607,8 +607,8 @@ def IRDL_AllOfOp : IRDL_ConstraintOp<"all_of",
607
607
Example:
608
608
609
609
```mlir
610
- irdl.dialect cmath {
611
- irdl.type complex_f32 {
610
+ irdl.dialect @ cmath {
611
+ irdl.type @ complex_f32 {
612
612
%0 = irdl.is i32
613
613
%1 = irdl.is f32
614
614
%2 = irdl.any_of(%0, %1) // is 32-bit
0 commit comments