Skip to content

Commit

Permalink
Remove npcomp-iree-backend-lower-linkage pass.
Browse files Browse the repository at this point in the history
This is no longer needed by IREE.
  • Loading branch information
silvasean committed Aug 9, 2021
1 parent 902c2e5 commit a3bfd11
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 65 deletions.
2 changes: 0 additions & 2 deletions include/npcomp/Backend/IREE/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ void registerIREEBackendPasses();
/// contract to IREE's frontend contract.
void createNpcompBackendToIreeFrontendPipeline(OpPassManager &pm);

std::unique_ptr<OperationPass<ModuleOp>> createLowerLinkagePass();

} // namespace IREEBackend
} // namespace NPCOMP
} // namespace mlir
Expand Down
10 changes: 0 additions & 10 deletions include/npcomp/Backend/IREE/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,4 @@

include "mlir/Pass/PassBase.td"

def LowerLinkage : Pass<"npcomp-iree-backend-lower-linkage", "ModuleOp"> {
let summary = "Lower linkage of symbols to IREE's interfaces";
let description = [{
IREE has a specific input modeling for linkage, which differs from
MLIR's native modeling. This pass lowers MLIR's native linkage constructs
(which are otherwise used by npcomp) into the form IREE requires.
}];
let constructor = "mlir::NPCOMP::IREEBackend::createLowerLinkagePass()";
}

#endif // NPCOMP_BACKEND_IREE_PASSES
1 change: 0 additions & 1 deletion lib/Backend/IREE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_npcomp_library(NPCOMPIREEBackend
LowerLinkage.cpp
Passes.cpp

ADDITIONAL_HEADER_DIRS
Expand Down
35 changes: 0 additions & 35 deletions lib/Backend/IREE/LowerLinkage.cpp

This file was deleted.

4 changes: 1 addition & 3 deletions lib/Backend/IREE/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ namespace {
} // end namespace

void mlir::NPCOMP::IREEBackend::createNpcompBackendToIreeFrontendPipeline(
OpPassManager &pm) {
pm.addPass(createLowerLinkagePass());
}
OpPassManager &pm) {}

void mlir::NPCOMP::IREEBackend::registerIREEBackendPasses() {
::registerPasses();
Expand Down
14 changes: 0 additions & 14 deletions test/Backend/Iree/lower-linkage.mlir

This file was deleted.

0 comments on commit a3bfd11

Please sign in to comment.