[Mlir-commits] [mlir] dea855d - [mlir][EmitC] Drop unused code (NFC) (#80325)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Feb 4 09:51:51 PST 2024
Author: Marius Brehler
Date: 2024-02-04T18:51:47+01:00
New Revision: dea855de46bd4d3e103646a7f459856d88dd7488
URL: https://github.com/llvm/llvm-project/commit/dea855de46bd4d3e103646a7f459856d88dd7488
DIFF: https://github.com/llvm/llvm-project/commit/dea855de46bd4d3e103646a7f459856d88dd7488.diff
LOG: [mlir][EmitC] Drop unused code (NFC) (#80325)
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.
Added:
Modified:
mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h
mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h b/mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h
index 7ff682293f48b..22df7f1c5dcf2 100644
--- a/mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h
+++ b/mlir/include/mlir/Conversion/SCFToEmitC/SCFToEmitC.h
@@ -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
diff --git a/mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp b/mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
index bf69ba503f4e6..367142a520742 100644
--- a/mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
+++ b/mlir/lib/Conversion/SCFToEmitC/SCFToEmitC.cpp
@@ -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>();
-}
More information about the Mlir-commits
mailing list