File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
include/flang/Optimizer/Transforms Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ std::unique_ptr<mlir::Pass>
4040createArrayValueCopyPass (fir::ArrayValueCopyOptions options = {});
4141std::unique_ptr<mlir::Pass> createMemDataFlowOptPass ();
4242std::unique_ptr<mlir::Pass> createPromoteToAffinePass ();
43- std::unique_ptr<mlir::Pass> createFIRToSCFPass ();
4443std::unique_ptr<mlir::Pass>
4544createAddDebugInfoPass (fir::AddDebugInfoOptions options = {});
4645
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ def FIRToSCFPass : Pass<"fir-to-scf"> {
8181 let description = [{
8282 Convert FIR structured control flow ops to SCF dialect.
8383 }];
84- let constructor = "::fir::createFIRToSCFPass()";
8584 let dependentDialects = [
8685 "fir::FIROpsDialect", "mlir::scf::SCFDialect"
8786 ];
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ namespace fir {
1818
1919namespace {
2020class FIRToSCFPass : public fir ::impl::FIRToSCFPassBase<FIRToSCFPass> {
21+ using FIRToSCFPassBase::FIRToSCFPassBase;
22+
2123public:
2224 void runOnOperation () override ;
2325};
@@ -230,7 +232,3 @@ void FIRToSCFPass::runOnOperation() {
230232 fir::populateFIRToSCFRewrites (patterns, parallelUnordered);
231233 walkAndApplyPatterns (getOperation (), std::move (patterns));
232234}
233-
234- std::unique_ptr<mlir::Pass> fir::createFIRToSCFPass () {
235- return std::make_unique<FIRToSCFPass>();
236- }
You can’t perform that action at this time.
0 commit comments