[flang] Pass the pipeline config to the pass
authorValentin Clement <clementval@gmail.com>
Tue, 9 Aug 2022 14:05:15 +0000 (16:05 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 9 Aug 2022 14:05:34 +0000 (16:05 +0200)
commit4dece4007cc2fb261f29d14287836e28a355810a
tree0153de10e80a1f8911a547ef907231f219dd27f2
parentf5ed0cb217a9988f97b55f2ccb053bca7b41cc0c
[flang] Pass the pipeline config to the pass

The newly added AlgebraicSimplification pass is triggering the
greedy pattern rewriter. Since we define a specific config in the
flang pipeline, this patch adds the ability to pass the config
to the pass directly.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D131474
flang/include/flang/Optimizer/Transforms/Passes.h
flang/include/flang/Tools/CLOptions.inc
flang/lib/Optimizer/Transforms/AlgebraicSimplification.cpp