[llvm][NFC] Factor out inlining pipeline as a module pipeline.
authorMircea Trofin <mtrofin@google.com>
Mon, 20 Apr 2020 18:05:29 +0000 (11:05 -0700)
committerMircea Trofin <mtrofin@google.com>
Fri, 24 Apr 2020 16:24:12 +0000 (09:24 -0700)
commitc3770c5d6d374af4dcdc9f7f1c4565bed94373dc
tree6735c71e4646f990e1caee1fbd64e5ff2501ee2c
parent44ce588670d093ba4385403d007ffbf4a195d9a7
[llvm][NFC] Factor out inlining pipeline as a module pipeline.

Summary:
This simplifies testing in scenarios where we want to set up module-wide
analyses for inlining. The patch enables treating inlining and its
function cleanups, as a module pass. The alternative would be for tests
to describe the pipeline, which is tedious and adds maintenance
overhead.

Reviewers: davidxl, dblaikie, jdoerfert, sstefan1

Subscribers: hiraditya, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78512
llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/new-pm-thinlto-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
llvm/test/Transforms/Inline/module-inlining.ll [new file with mode: 0644]