[flang-commits] [flang] [flang] de-duplicate AbstractResult pass (PR #88867)
Markus Böck via flang-commits
flang-commits at lists.llvm.org
Tue Apr 16 08:27:16 PDT 2024
================
@@ -86,6 +87,31 @@ DisableOption(BoxedProcedureRewrite, "boxed-procedure-rewrite",
DisableOption(ExternalNameConversion, "external-name-interop",
"convert names with external convention");
+// TODO: remove once these are used for non-codegen passes
+#if !defined(FLANG_EXCLUDE_CODEGEN)
+using PassConstructor = std::function<std::unique_ptr<mlir::Pass>()>;
----------------
zero9178 wrote:
```suggestion
using PassConstructor = llvm::function_ref<std::unique_ptr<mlir::Pass>()>;
```
https://github.com/llvm/llvm-project/pull/88867
More information about the flang-commits
mailing list