[Mlir-commits] [mlir] [mlir][core|ptr] Add `PtrLikeTypeInterface` and casting ops to the `ptr` dialect (PR #137469)

Fabian Mora llvmlistbot at llvm.org
Sun Apr 27 05:07:10 PDT 2025


================
@@ -13,3 +13,61 @@ func.func @zero_offset(%ptr: !ptr.ptr<#ptr.generic_space>) -> !ptr.ptr<#ptr.gene
   %res0 = ptr.ptr_add %ptr, %off : !ptr.ptr<#ptr.generic_space>, index
   return %res0 : !ptr.ptr<#ptr.generic_space>
 }
+
----------------
fabianmcg wrote:

AFAIK that's only needed if there are multiple modules separated by a `// -----`, and currently there's only one module in the test.

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


More information about the Mlir-commits mailing list