[Mlir-commits] [mlir] [mlir][EmitC] Add rank-0 MemRef conversion (PR #205774)

Gil Rapaport llvmlistbot at llvm.org
Fri Jul 3 06:09:20 PDT 2026


================
@@ -142,9 +154,12 @@ createPointerFromEmitcArray(Location loc, OpBuilder &builder,
   return ptr;
 }
 
-// If `v` is defined through an unrealized cast and the source of that cast
-// is `emitc.ptr`, return the pointer.
-static Value stripPointerUnrealizedCast(Value v) {
+static Value getPointerOrStripUnrealizedCast(Value v) {
----------------
aniragil wrote:

Not sure I follow: won't it return a pointer in any case a pointer to the memref can be retrieved (except when it fails, then it returns null)?

https://github.com/llvm/llvm-project/pull/205774


More information about the Mlir-commits mailing list