[Mlir-commits] [mlir] [mlir][amx] Simplify intrinsic generation (PR #140559)
Adam Siemieniuk
llvmlistbot at llvm.org
Tue May 20 02:29:52 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,
----------------
adam-smnk wrote:
I'll go with this approach to not overcomplicate changes here.
I feel `Pattern.h` starts growing a bit too large for its own good. These free helpers could be moved to a separate file, I just need to find a better theme than `Utils` 😉
https://github.com/llvm/llvm-project/pull/140559
More information about the Mlir-commits
mailing list