[Mlir-commits] [mlir] 9b21cb2 - [mlir][emitc][nfc] Update ApplyOp example
Marius Brehler
llvmlistbot at llvm.org
Thu May 4 05:40:22 PDT 2023
Author: Marius Brehler
Date: 2023-05-04T12:40:04Z
New Revision: 9b21cb27b15cd9dd77dfea4a67c02c77d9c2ea38
URL: https://github.com/llvm/llvm-project/commit/9b21cb27b15cd9dd77dfea4a67c02c77d9c2ea38
DIFF: https://github.com/llvm/llvm-project/commit/9b21cb27b15cd9dd77dfea4a67c02c77d9c2ea38.diff
LOG: [mlir][emitc][nfc] Update ApplyOp example
Added:
Modified:
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
index 4851d962025c3..a53dea49b8adc 100644
--- a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
+++ b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -37,11 +37,11 @@ def EmitC_ApplyOp : EmitC_Op<"apply", []> {
```mlir
// Custom form of applying the & operator.
- %0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.opaque<"int32_t*">
+ %0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.ptr<i32>
// Generic form of the same operation.
%0 = "emitc.apply"(%arg0) {applicableOperator = "&"}
- : (i32) -> !emitc.opaque<"int32_t*">
+ : (i32) -> !emitc.ptr<i32>
```
}];
More information about the Mlir-commits
mailing list