Skip to content

Commit

Permalink
[mlir][EmitC] Drop unused code (NFC) (llvm#80325)
Browse files Browse the repository at this point in the history
To register the conversion the autogenerated function
`registerSCFToEmitC()` calls `createSCFToEmitC()`, which itself is also
autogenerated. The removed function, however, isn't used in the upstream
codebase.
  • Loading branch information
marbre committed Feb 4, 2024
1 parent 114a33b commit dea855d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ class RewritePatternSet;

/// Collect a set of patterns to convert SCF operations to the EmitC dialect.
void populateSCFToEmitCConversionPatterns(RewritePatternSet &patterns);

/// Creates a pass to convert SCF operations to the EmitC dialect.
std::unique_ptr<Pass> createConvertSCFToEmitCPass();

} // namespace mlir

#endif // MLIR_CONVERSION_SCFTOEMITC_SCFTOEMITC_H
4 changes: 0 additions & 4 deletions mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,3 @@ void SCFToEmitCPass::runOnOperation() {
applyPartialConversion(getOperation(), target, std::move(patterns))))
signalPassFailure();
}

std::unique_ptr<Pass> mlir::createConvertSCFToEmitCPass() {
return std::make_unique<SCFToEmitCPass>();
}

0 comments on commit dea855d

Please sign in to comment.