Skip to content

Commit cc5e22e

Browse files
committed
address review comments
1 parent f141a26 commit cc5e22e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ struct WarpOpTransferWrite : public WarpDistributionPattern {
588588
/// }
589589
/// %0 = arith.addf %r#1, %r#2 : vector<1xf32>
590590
struct WarpOpElementwise : public WarpDistributionPattern {
591-
using WarpDistributionPattern::WarpDistributionPattern;
591+
using Base::Base;
592592
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
593593
PatternRewriter &rewriter) const override {
594594
OpOperand *yieldOperand = getWarpResult(warpOp, [](Operation *op) {
@@ -654,7 +654,7 @@ struct WarpOpElementwise : public WarpDistributionPattern {
654654
/// }
655655
/// %0 = arith.constant dense<2.0> : vector<1xf32>
656656
struct WarpOpConstant : public WarpDistributionPattern {
657-
using WarpDistributionPattern::WarpDistributionPattern;
657+
using Base::Base;
658658
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
659659
PatternRewriter &rewriter) const override {
660660
OpOperand *yieldOperand =
@@ -700,7 +700,7 @@ struct WarpOpConstant : public WarpDistributionPattern {
700700
/// }
701701
/// %0 = vector.transfer_read %src[%c0], %cst : memref<1024xf32>, vector<1xf32>
702702
struct WarpOpTransferRead : public WarpDistributionPattern {
703-
using WarpDistributionPattern::WarpDistributionPattern;
703+
using Base::Base;
704704
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
705705
PatternRewriter &rewriter) const override {
706706
// Try to find a distributable yielded read. Note that this pattern can
@@ -812,7 +812,7 @@ struct WarpOpTransferRead : public WarpDistributionPattern {
812812
/// Remove any result that has no use along with the matching yieldOp operand.
813813
// TODO: Move this in WarpExecuteOnLane0Op canonicalization.
814814
struct WarpOpDeadResult : public WarpDistributionPattern {
815-
using WarpDistributionPattern::WarpDistributionPattern;
815+
using Base::Base;
816816
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
817817
PatternRewriter &rewriter) const override {
818818
SmallVector<Type> newResultTypes;
@@ -873,7 +873,7 @@ struct WarpOpDeadResult : public WarpDistributionPattern {
873873
// If an operand is directly yielded out of the region we can forward it
874874
// directly and it doesn't need to go through the region.
875875
struct WarpOpForwardOperand : public WarpDistributionPattern {
876-
using WarpDistributionPattern::WarpDistributionPattern;
876+
using Base::Base;
877877
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
878878
PatternRewriter &rewriter) const override {
879879
SmallVector<Type> resultTypes;
@@ -917,7 +917,7 @@ struct WarpOpForwardOperand : public WarpDistributionPattern {
917917
};
918918

919919
struct WarpOpBroadcast : public WarpDistributionPattern {
920-
using WarpDistributionPattern::WarpDistributionPattern;
920+
using Base::Base;
921921
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
922922
PatternRewriter &rewriter) const override {
923923
OpOperand *operand =
@@ -954,7 +954,7 @@ struct WarpOpBroadcast : public WarpDistributionPattern {
954954
/// Pattern to move shape cast out of the warp op. shape cast is basically a
955955
/// no-op for warp distribution; we need to handle the shape though.
956956
struct WarpOpShapeCast : public WarpDistributionPattern {
957-
using WarpDistributionPattern::WarpDistributionPattern;
957+
using Base::Base;
958958
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
959959
PatternRewriter &rewriter) const override {
960960
OpOperand *operand =
@@ -1013,7 +1013,7 @@ struct WarpOpShapeCast : public WarpDistributionPattern {
10131013
/// %ub = arith.select %cmp, %c0, %c1
10141014
/// %1 = vector.create_mask %ub : vector<1xi1>
10151015
struct WarpOpCreateMask : public WarpDistributionPattern {
1016-
using WarpDistributionPattern::WarpDistributionPattern;
1016+
using Base::Base;
10171017
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
10181018
PatternRewriter &rewriter) const override {
10191019
OpOperand *yieldOperand =
@@ -1079,7 +1079,7 @@ struct WarpOpCreateMask : public WarpDistributionPattern {
10791079
/// Pattern to move out vector.extract of single element vector. Those don't
10801080
/// need to be distributed and can just be propagated outside of the region.
10811081
struct WarpOpExtract : public WarpDistributionPattern {
1082-
using WarpDistributionPattern::WarpDistributionPattern;
1082+
using Base::Base;
10831083
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
10841084
PatternRewriter &rewriter) const override {
10851085
OpOperand *operand =
@@ -1257,7 +1257,7 @@ struct WarpOpExtractScalar : public WarpDistributionPattern {
12571257

12581258
/// Pattern to convert vector.extractelement to vector.extract.
12591259
struct WarpOpExtractElement : public WarpDistributionPattern {
1260-
using WarpDistributionPattern::WarpDistributionPattern;
1260+
using Base::Base;
12611261
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
12621262
PatternRewriter &rewriter) const override {
12631263
OpOperand *operand =
@@ -1279,7 +1279,7 @@ struct WarpOpExtractElement : public WarpDistributionPattern {
12791279
/// Pattern to move out vector.insert with a scalar input.
12801280
/// Only supports 1-D and 0-D destinations for now.
12811281
struct WarpOpInsertScalar : public WarpDistributionPattern {
1282-
using WarpDistributionPattern::WarpDistributionPattern;
1282+
using Base::Base;
12831283
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
12841284
PatternRewriter &rewriter) const override {
12851285
OpOperand *operand = getWarpResult(warpOp, llvm::IsaPred<vector::InsertOp>);
@@ -1371,7 +1371,7 @@ struct WarpOpInsertScalar : public WarpDistributionPattern {
13711371
};
13721372

13731373
struct WarpOpInsert : public WarpDistributionPattern {
1374-
using WarpDistributionPattern::WarpDistributionPattern;
1374+
using Base::Base;
13751375
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
13761376
PatternRewriter &rewriter) const override {
13771377
OpOperand *operand = getWarpResult(warpOp, llvm::IsaPred<vector::InsertOp>);
@@ -1484,7 +1484,7 @@ struct WarpOpInsert : public WarpDistributionPattern {
14841484
};
14851485

14861486
struct WarpOpInsertElement : public WarpDistributionPattern {
1487-
using WarpDistributionPattern::WarpDistributionPattern;
1487+
using Base::Base;
14881488
LogicalResult matchAndRewrite(WarpExecuteOnLane0Op warpOp,
14891489
PatternRewriter &rewriter) const override {
14901490
OpOperand *operand =

0 commit comments

Comments
 (0)