Skip to content

Commit f6cd50a

Browse files
committed
pass added
1 parent fe745c6 commit f6cd50a

File tree

10 files changed

+563
-5
lines changed

10 files changed

+563
-5
lines changed

mlir/include/mlir/Dialect/XeGPU/Transforms/Transforms.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace xegpu {
1616

1717
/// Appends patterns for folding aliasing ops into XeGPU ops into `patterns`.
1818
void populateXeGPUFoldAliasOpsPatterns(RewritePatternSet &patterns);
19+
void populateXeGPUDistributePatterns(RewritePatternSet &patterns);
1920

2021
} // namespace xegpu
2122
} // namespace mlir

mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ LogicalResult LoadNdOp::verify() {
281281
tdescShape.insert(it, array_len);
282282
}
283283

284-
if (tdescShape != valueShape)
285-
return emitOpError() << "Result shape doesn't match TensorDesc shape."
286-
<< "The expected shape is " << makeString(tdescShape)
287-
<< ". But the given shape is "
288-
<< makeString(valueShape) << ".\n";
284+
// if (tdescShape != valueShape)
285+
// return emitOpError() << "Result shape doesn't match TensorDesc shape."
286+
// << "The expected shape is " << makeString(tdescShape)
287+
// << ". But the given shape is "
288+
// << makeString(valueShape) << ".\n";
289289
return success();
290290
}
291291

mlir/lib/Dialect/XeGPU/Transforms/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
add_mlir_dialect_library(MLIRXeGPUTransforms
22
XeGPUFoldAliasOps.cpp
3+
XeGPUDistribute.cpp
34

45
ADDITIONAL_HEADER_DIRS
56
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/XeGPU
@@ -12,6 +13,10 @@ add_mlir_dialect_library(MLIRXeGPUTransforms
1213
MLIRIR
1314
MLIRMemRefDialect
1415
MLIRXeGPUDialect
16+
MLIRVectorDialect
17+
MLIRVectorUtils
18+
MLIRArithDialect
19+
MLIRFuncDialect
1520
MLIRPass
1621
MLIRTransforms
1722
)

0 commit comments

Comments
 (0)