Skip to content

Commit

Permalink
[mlir][Linalg] NFC - Drop CodegenStrategy and remaining strategy passes
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D135759
  • Loading branch information
nicolasvasilache committed Oct 12, 2022
1 parent 8446f24 commit 15faa55
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 205 deletions.
14 changes: 0 additions & 14 deletions mlir/include/mlir/Dialect/Linalg/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,6 @@ std::unique_ptr<OperationPass<func::FuncOp>> createLinalgGeneralizationPass();
/// work on primitive types, if possible.
std::unique_ptr<Pass> createLinalgDetensorizePass();

//===----------------------------------------------------------------------===//
/// Linalg strategy passes.
//===----------------------------------------------------------------------===//
/// Create a LinalgStrategyTilePass.
std::unique_ptr<OperationPass<func::FuncOp>> createLinalgStrategyTilePass(
StringRef opName = "",
const linalg::LinalgTilingOptions &opt = linalg::LinalgTilingOptions(),
const linalg::LinalgTransformationFilter &filter =
linalg::LinalgTransformationFilter());

/// Create a LinalgStrategyRemoveMarkersPass.
std::unique_ptr<OperationPass<func::FuncOp>>
createLinalgStrategyRemoveMarkersPass();

//===----------------------------------------------------------------------===//
// Registration
//===----------------------------------------------------------------------===//
Expand Down
11 changes: 0 additions & 11 deletions mlir/include/mlir/Dialect/Linalg/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,4 @@ def LinalgDetensorize : Pass<"linalg-detensorize", ""> {
];
}

def LinalgStrategyRemoveMarkersPass
: Pass<"linalg-strategy-remove-markers-pass", "func::FuncOp"> {
let summary = "Cleanup pass that drops markers.";
let constructor = "mlir::createLinalgStrategyRemoveMarkersPass()";
let dependentDialects = ["linalg::LinalgDialect"];
let options = [
Option<"anchorFuncName", "anchor-func", "std::string", /*default=*/"",
"Which func op is the anchor to latch on.">,
];
}

#endif // MLIR_DIALECT_LINALG_PASSES
57 changes: 0 additions & 57 deletions mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h

This file was deleted.

2 changes: 0 additions & 2 deletions mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ add_mlir_dialect_library(MLIRLinalgTransforms
BubbleUpExtractSlice.cpp
BufferizableOpInterfaceImpl.cpp
Bufferize.cpp
CodegenStrategy.cpp
ConstantFold.cpp
DecomposeLinalgOps.cpp
Detensorize.cpp
Expand All @@ -18,7 +17,6 @@ add_mlir_dialect_library(MLIRLinalgTransforms
InlineScalarOperands.cpp
Interchange.cpp
Loops.cpp
LinalgStrategyPasses.cpp
NamedOpConversions.cpp
Promotion.cpp
Split.cpp
Expand Down
47 changes: 0 additions & 47 deletions mlir/lib/Dialect/Linalg/Transforms/CodegenStrategy.cpp

This file was deleted.

74 changes: 0 additions & 74 deletions mlir/lib/Dialect/Linalg/Transforms/LinalgStrategyPasses.cpp

This file was deleted.

0 comments on commit 15faa55

Please sign in to comment.