Skip to content

Commit 84580a0

Browse files
authored
[mlir][irdl] update documentation (#103394)
fixes #103300
1 parent 8aa8c05 commit 84580a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def IRDL_BaseOp : IRDL_ConstraintOp<"base",
472472
}
473473

474474
irdl.type @complex_wrapper {
475-
%0 = irdl.base @complex
475+
%0 = irdl.base @cmath::@complex
476476
irdl.parameters(%0)
477477
}
478478
}
@@ -588,7 +588,7 @@ def IRDL_AnyOfOp : IRDL_ConstraintOp<"any_of",
588588

589589
The above program defines a type `complex` inside the dialect `cmath` that
590590
can have a single type parameter that can be either `i32`, `i64`, `f32` or
591-
`f32`.
591+
`f64`.
592592
}];
593593

594594
let arguments = (ins Variadic<IRDL_AttributeType>:$args);

mlir/include/mlir/Dialect/IRDL/IR/IRDLTypes.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ def IRDL_AttributeType : IRDL_Type<"Attribute", "attribute"> {
3232
Example:
3333

3434
```mlir
35-
irdl.dialect cmath {
35+
irdl.dialect @cmath {
3636

3737
irdl.type @complex { /* ... */ }
3838

3939
irdl.operation @norm {
4040
%0 = irdl.any
41-
%1 = irdl.parametric @complex<%0>
41+
%1 = irdl.parametric @cmath::@complex<%0>
4242
irdl.operands(%1)
4343
irdl.results(%0)
4444
}

0 commit comments

Comments
 (0)