[NewPM][Pipeline] Add PipelineTuningOption to set inliner threshold
authorArthur Eubanks <aeubanks@google.com>
Sun, 30 Oct 2022 16:52:20 +0000 (09:52 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 2 Nov 2022 17:47:51 +0000 (10:47 -0700)
commit4fa328074efd7eefdbb314b8f6e9f855e443ca20
treeb195e05a3193b335fe3a1a3658e2b5f272094faa
parent76b04c2beb7e2a067ff41db65eca5d332d579833
[NewPM][Pipeline] Add PipelineTuningOption to set inliner threshold

The legacy PM allowed you to set a custom inliner threshold via
  builder.Inliner = llvm::createFunctionInliningPass(inline_threshold);

This allows the same thing to be done with the new PM optimization pipelines.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D137038
llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/Passes/PassBuilderPipelines.cpp