[Mlir-commits] [mlir] 50d648b - [mlir][emitc] Replace !emitc.opaque pointers
Marius Brehler
llvmlistbot at llvm.org
Thu Apr 28 08:21:02 PDT 2022
Author: Marius Brehler
Date: 2022-04-28T15:20:39Z
New Revision: 50d648b40ecdb0bedc0676ed96aad59ebf257d7e
URL: https://github.com/llvm/llvm-project/commit/50d648b40ecdb0bedc0676ed96aad59ebf257d7e
DIFF: https://github.com/llvm/llvm-project/commit/50d648b40ecdb0bedc0676ed96aad59ebf257d7e.diff
LOG: [mlir][emitc] Replace !emitc.opaque pointers
Replaces using !emitc.opaque pointers which using !emitc.ptr types.
Added:
Modified:
mlir/test/Target/Cpp/common-cpp.mlir
Removed:
################################################################################
diff --git a/mlir/test/Target/Cpp/common-cpp.mlir b/mlir/test/Target/Cpp/common-cpp.mlir
index 16e47f6039cf0..252f5e214840d 100644
--- a/mlir/test/Target/Cpp/common-cpp.mlir
+++ b/mlir/test/Target/Cpp/common-cpp.mlir
@@ -82,10 +82,10 @@ func.func @opaque_types(%arg0: !emitc.opaque<"bool">, %arg1: !emitc.opaque<"char
return %2 : !emitc.opaque<"status_t">
}
-func.func @apply(%arg0: i32) -> !emitc.opaque<"int32_t*"> {
+func.func @apply(%arg0: i32) -> !emitc.ptr<i32> {
// CHECK: int32_t* [[V2]] = &[[V1]];
- %0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.opaque<"int32_t*">
+ %0 = emitc.apply "&"(%arg0) : (i32) -> !emitc.ptr<i32>
// CHECK: int32_t [[V3]] = *[[V2]];
- %1 = emitc.apply "*"(%0) : (!emitc.opaque<"int32_t*">) -> (i32)
- return %0 : !emitc.opaque<"int32_t*">
+ %1 = emitc.apply "*"(%0) : (!emitc.ptr<i32>) -> (i32)
+ return %0 : !emitc.ptr<i32>
}
More information about the Mlir-commits
mailing list