[Mlir-commits] [mlir] [mlir][xegpu] refine basic routines (PR #138701)
Chao Chen
llvmlistbot at llvm.org
Thu May 8 11:59:46 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
----------------
chencha3 wrote:
Not many differences, just want to make the IR print as clean as possible.
https://github.com/llvm/llvm-project/pull/138701
More information about the Mlir-commits
mailing list