Skip to content

Commit

Permalink
Hook GridwiseGemmRewrite up, prepare to ditch GridwiseGemmEx.
Browse files Browse the repository at this point in the history
  • Loading branch information
whchung committed Jun 6, 2020
1 parent 54287ab commit 47917d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mlir/include/mlir/Dialect/MIOpenOps/LowerMIOpenOps.h
Expand Up @@ -852,10 +852,10 @@ template struct Conv2DRewritePattern<miopen::Conv2DBwdDataOp>;
// GridwiseGemm lowering.
//===----------------------------------------------------------------------===//

struct GridwiseGemmRewritePattern : public OpRewritePattern<miopen::GridwiseGemmExOp> {
using OpRewritePattern<miopen::GridwiseGemmExOp>::OpRewritePattern;
struct GridwiseGemmRewritePattern : public OpRewritePattern<miopen::GridwiseGemmOp> {
using OpRewritePattern<miopen::GridwiseGemmOp>::OpRewritePattern;

PatternMatchResult matchAndRewrite(miopen::GridwiseGemmExOp op, PatternRewriter &b) const override {
PatternMatchResult matchAndRewrite(miopen::GridwiseGemmOp op, PatternRewriter &b) const override {
// Prepare some useful constants.
auto zeroConstantIndexOp = b.create<ConstantIndexOp>(op.getLoc(), 0);
auto oneConstantIndexOp = b.create<ConstantIndexOp>(op.getLoc(), 1);
Expand Down

0 comments on commit 47917d6

Please sign in to comment.