[Mlir-commits] [mlir] [mlir][amx] Simplify intrinsic generation (PR #140559)

Tobias Gysi llvmlistbot at llvm.org
Mon May 19 11:53:45 PDT 2025


================
@@ -60,24 +64,168 @@ static LogicalResult verifyMultShape(Operation *op, amx::TileType atp,
   return success();
 }
 
+/// Get pointer to a memref descriptor.
+/// Optionally, the base pointer can be offset using linearized index computed
+/// from the given indices.
+static Value getBufferPtr(Location loc, MemRefType type, Value buffer,
----------------
gysit wrote:

This seems to be a duplicate of `getStridedElementPtr`? Could it make sense to factor out a shared helper function? 

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


More information about the Mlir-commits mailing list