Skip to content

Commit

Permalink
[MLIR][XeGPU] Add distribution patterns for load_nd, store_nd, and cr…
Browse files Browse the repository at this point in the history
…eate_nd_tdesc
  • Loading branch information
kurapov-peter committed Oct 18, 2024
1 parent 7627cf7 commit de3ae89
Show file tree
Hide file tree
Showing 9 changed files with 559 additions and 0 deletions.
1 change: 1 addition & 0 deletions mlir/include/mlir/Dialect/XeGPU/Transforms/Transforms.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace xegpu {

/// Appends patterns for folding aliasing ops into XeGPU ops into `patterns`.
void populateXeGPUFoldAliasOpsPatterns(RewritePatternSet &patterns);
void populateXeGPUDistributePatterns(RewritePatternSet &patterns);

} // namespace xegpu
} // namespace mlir
Expand Down
5 changes: 5 additions & 0 deletions mlir/lib/Dialect/XeGPU/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
add_mlir_dialect_library(MLIRXeGPUTransforms
XeGPUFoldAliasOps.cpp
XeGPUDistribute.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/XeGPU
Expand All @@ -12,6 +13,10 @@ add_mlir_dialect_library(MLIRXeGPUTransforms
MLIRIR
MLIRMemRefDialect
MLIRXeGPUDialect
MLIRVectorDialect
MLIRVectorUtils
MLIRArithDialect
MLIRFuncDialect
MLIRPass
MLIRTransforms
)
Loading

0 comments on commit de3ae89

Please sign in to comment.