Skip to content

Commit 70a667e

Browse files
committed
Removes reference to previous UnrollFromElements pattern
1 parent 04431c5 commit 70a667e

File tree

7 files changed

+4
-78
lines changed

7 files changed

+4
-78
lines changed

mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,6 @@ void populateVectorRankReducingFMAPattern(RewritePatternSet &patterns);
303303
void populateVectorToFromElementsToShuffleTreePatterns(
304304
RewritePatternSet &patterns, PatternBenefit benefit = 1);
305305

306-
/// Populate the pattern set with the following patterns:
307-
///
308-
/// [UnrollFromElements]
309-
/// Unrolls 2 or more dimensional `vector.from_elements` ops by unrolling the
310-
/// outermost dimension.
311-
void populateVectorFromElementsLoweringPatterns(RewritePatternSet &patterns,
312-
PatternBenefit benefit = 1);
313-
314306
/// Populate the pattern set with the following patterns:
315307
///
316308
/// [ContractionOpToMatmulOpLowering]

mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ void GpuToLLVMConversionPass::runOnOperation() {
534534
/*maxTransferRank=*/1);
535535
// Transform N-D vector.from_elements to 1-D vector.from_elements before
536536
// conversion.
537-
vector::populateVectorFromElementsLoweringPatterns(patterns);
537+
vector::populateVectorFromElementsUnrollPatterns(patterns);
538538
if (failed(applyPatternsGreedily(getOperation(), std::move(patterns))))
539539
return signalPassFailure();
540540
}

mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ struct LowerGpuOpsToNVVMOpsPass final
372372
populateGpuRewritePatterns(patterns);
373373
// Transform N-D vector.from_elements to 1-D vector.from_elements before
374374
// conversion.
375-
vector::populateVectorFromElementsLoweringPatterns(patterns);
375+
vector::populateVectorFromElementsUnrollPatterns(patterns);
376376
if (failed(applyPatternsGreedily(m, std::move(patterns))))
377377
return signalPassFailure();
378378
}

mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void ConvertVectorToLLVMPass::runOnOperation() {
9494
populateVectorStepLoweringPatterns(patterns);
9595
populateVectorRankReducingFMAPattern(patterns);
9696
populateVectorGatherLoweringPatterns(patterns);
97-
populateVectorFromElementsLoweringPatterns(patterns);
97+
populateVectorFromElementsUnrollPatterns(patterns);
9898
populateVectorToElementsUnrollPatterns(patterns);
9999
if (armI8MM) {
100100
if (armNeon)

mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void transform::ApplyLowerGatherPatternsOp::populatePatterns(
146146

147147
void transform::ApplyUnrollFromElementsPatternsOp::populatePatterns(
148148
RewritePatternSet &patterns) {
149-
vector::populateVectorFromElementsLoweringPatterns(patterns);
149+
vector::populateVectorFromElementsUnrollPatterns(patterns);
150150
}
151151

152152
void transform::ApplyUnrollToElementsPatternsOp::populatePatterns(

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ add_mlir_dialect_library(MLIRVectorTransforms
33
LowerVectorBitCast.cpp
44
LowerVectorBroadcast.cpp
55
LowerVectorContract.cpp
6-
LowerVectorFromElements.cpp
76
LowerVectorGather.cpp
87
LowerVectorInterleave.cpp
98
LowerVectorMask.cpp

mlir/lib/Dialect/Vector/Transforms/LowerVectorFromElements.cpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)