Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
newling committed Aug 26, 2024
1 parent 652d648 commit c4f4afe
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "iree-amd-aie/IR/AMDAIEOps.h"
#include "iree-amd-aie/Transforms/AMDAIEUtils.h"
#include "iree-amd-aie/Transforms/Passes.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/Iterators.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
Expand Down Expand Up @@ -61,7 +60,6 @@ void eraseOp(IRRewriter &rewriter, IRMapping &mapper, Operation *op) {

namespace {


/// Utility to convert vectors of `size` and `stride` into an
/// `AIE::BDDimLayoutArrayAttr`.
AIE::BDDimLayoutArrayAttr convertSizeStrideToBDDimLayoutArrayAttr(
Expand Down Expand Up @@ -265,17 +263,6 @@ LogicalResult acquireOpToAIE(IRRewriter &rewriter,
return success();
}

LogicalResult coreLinalgOpToAIE(IRRewriter &rewriter, linalg::LinalgOp linalgOp,
IRMapping &mapper,
SmallVector<Operation *> &toBeErased) {
LLVM_DEBUG(llvm::dbgs() << "Convert [linalg.LinalgOp]\n");
OpBuilder::InsertionGuard guard(rewriter);
rewriter.setInsertionPoint(linalgOp);
rewriter.clone(*(linalgOp.getOperation()), mapper);
eraseOp(rewriter, mapper, linalgOp);
return success();
}

LogicalResult coreMemrefExtractStridedMetadataToAIE(
IRRewriter &rewriter,
memref::ExtractStridedMetadataOp extractStridedMetadataOp,
Expand Down Expand Up @@ -409,9 +396,6 @@ LogicalResult coreToAIE(IRRewriter &rewriter, AMDAIE::CoreOp coreOp,
return coreReleaseOpToAIE(rewriter, releaseOp, mapper,
toBeErased);
})
.Case<linalg::LinalgOp>([&](auto linalgOp) {
return coreLinalgOpToAIE(rewriter, linalgOp, mapper, toBeErased);
})
.Case<memref::ExtractStridedMetadataOp>(
[&](auto extractStridedMetadataOp) {
return coreMemrefExtractStridedMetadataToAIE(
Expand Down Expand Up @@ -1008,7 +992,7 @@ class AMDAIELowerToAIEPass
}

AMDAIELowerToAIEPass() = default;
AMDAIELowerToAIEPass(const AMDAIELowerToAIEPass &pass) {};
AMDAIELowerToAIEPass(const AMDAIELowerToAIEPass &pass){};
void runOnOperation() override;
};

Expand Down

0 comments on commit c4f4afe

Please sign in to comment.