[Mlir-commits] [mlir] [mlir][xegpu] refine basic routines (PR #138701)
Adam Siemieniuk
llvmlistbot at llvm.org
Thu May 8 09:02:18 PDT 2025
================
@@ -190,6 +168,17 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
auto staticShapeAttr = builder.getDenseI64ArrayAttr(staticShape);
auto staticStridesAttr = builder.getDenseI64ArrayAttr(staticStrides);
+ if (memrefTy) {
+ auto memrefShape = memrefTy.getShape();
+ auto [memrefStrides, offset] = memrefTy.getStridesAndOffset();
+
+ // if shape and strides are from Memref, we don't need attributes for them
----------------
adam-smnk wrote:
Does it really make any difference? Could we just pass attributes forward?
https://github.com/llvm/llvm-project/pull/138701
More information about the Mlir-commits
mailing list