@@ -74,13 +74,13 @@ struct TestLinalgTransforms
74
74
*this , " test-generalize-pad-tensor" ,
75
75
llvm::cl::desc (" Test transform pad tensor by copying with generic ops" ),
76
76
llvm::cl::init (false )};
77
- Option<bool > testGeneralizeTensorPackOp {
78
- *this , " test-generalize -tensor-pack" ,
77
+ Option<bool > testDecomposeTensorPackOp {
78
+ *this , " test-decompose -tensor-pack" ,
79
79
llvm::cl::desc (" Test transform that generalizes pack ops into a sequence "
80
80
" of tensor and Linalg ops" ),
81
81
llvm::cl::init (false )};
82
- Option<bool > testGeneralizeTensorUnPackOp {
83
- *this , " test-generalize -tensor-unpack" ,
82
+ Option<bool > testDecomposeTensorUnPackOp {
83
+ *this , " test-decompose -tensor-unpack" ,
84
84
llvm::cl::desc (
85
85
" Test transform that generalizes unpack ops into a sequence "
86
86
" of tensor and Linalg ops" ),
@@ -172,15 +172,15 @@ static void applyGeneralizePadTensorPatterns(func::FuncOp funcOp) {
172
172
(void )applyPatternsAndFoldGreedily (funcOp, std::move (patterns));
173
173
}
174
174
175
- static void applyGeneralizeTensorPackPatterns (func::FuncOp funcOp) {
175
+ static void applyDecomposeTensorPackPatterns (func::FuncOp funcOp) {
176
176
RewritePatternSet patterns (funcOp.getContext ());
177
- patterns.add <GeneralizeOuterUnitDimsPackOpPattern >(funcOp.getContext ());
177
+ patterns.add <DecomposeOuterUnitDimsPackOpPattern >(funcOp.getContext ());
178
178
(void )applyPatternsAndFoldGreedily (funcOp, std::move (patterns));
179
179
}
180
180
181
- static void applyGeneralizeTensorUnPackPatterns (func::FuncOp funcOp) {
181
+ static void applyDecomposeTensorUnPackPatterns (func::FuncOp funcOp) {
182
182
RewritePatternSet patterns (funcOp.getContext ());
183
- patterns.add <GeneralizeOuterUnitDimsUnPackOpPattern >(funcOp.getContext ());
183
+ patterns.add <DecomposeOuterUnitDimsUnPackOpPattern >(funcOp.getContext ());
184
184
(void )applyPatternsAndFoldGreedily (funcOp, std::move (patterns));
185
185
}
186
186
@@ -237,10 +237,10 @@ void TestLinalgTransforms::runOnOperation() {
237
237
return applyLinalgToVectorPatterns (getOperation ());
238
238
if (testGeneralizePadTensor)
239
239
return applyGeneralizePadTensorPatterns (getOperation ());
240
- if (testGeneralizeTensorPackOp )
241
- return applyGeneralizeTensorPackPatterns (getOperation ());
242
- if (testGeneralizeTensorUnPackOp )
243
- return applyGeneralizeTensorUnPackPatterns (getOperation ());
240
+ if (testDecomposeTensorPackOp )
241
+ return applyDecomposeTensorPackPatterns (getOperation ());
242
+ if (testDecomposeTensorUnPackOp )
243
+ return applyDecomposeTensorUnPackPatterns (getOperation ());
244
244
if (testSwapSubTensorPadTensor)
245
245
return applyExtractSliceOfPadTensorSwapPattern (getOperation ());
246
246
if (testBubbleUpExtractSliceOpPattern)
0 commit comments