Skip to content

Commit 9b21cb2

Browse files
committed
[mlir][emitc][nfc] Update ApplyOp example
1 parent 342a3ce commit 9b21cb2

File tree

1 file changed

+2
-2
lines changed
  • mlir/include/mlir/Dialect/EmitC/IR

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/EmitC/IR/EmitC.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def EmitC_ApplyOp : EmitC_Op<"apply", []> {
3737

3838
```mlir
3939
// Custom form of applying the & operator.
40-
%0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.opaque<"int32_t*">
40+
%0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.ptr<i32>
4141

4242
// Generic form of the same operation.
4343
%0 = "emitc.apply"(%arg0) {applicableOperator = "&"}
44-
: (i32) -> !emitc.opaque<"int32_t*">
44+
: (i32) -> !emitc.ptr<i32>
4545

4646
```
4747
}];

0 commit comments

Comments
 (0)