mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
d7e3771d59
Summary: copypasta doc of ImportedFunctionsInliningStatistics class \brief Calculate and dump ThinLTO specific inliner stats. The main statistics are: (1) Number of inlined imported functions, (2) Number of imported functions inlined into importing module (indirect), (3) Number of non imported functions inlined into importing module (indirect). The difference between first and the second is that first stat counts all performed inlines on imported functions, but the second one only the functions that have been eventually inlined to a function in the importing module (by a chain of inlines). Because llvm uses bottom-up inliner, it is possible to e.g. import function `A`, `B` and then inline `B` to `A`, and after this `A` might be too big to be inlined into some other function that calls it. It calculates this statistic by building graph, where the nodes are functions, and edges are performed inlines and then by marking the edges starting from not imported function. If `Verbose` is set to true, then it also dumps statistics per each inlined function, sorted by the greatest inlines count like - number of performed inlines - number of performed inlines to importing module Reviewers: eraman, tejohnson, mehdi_amini Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D22491 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277089 91177308-0d34-0410-b5e6-96231b3b80d8
55 lines
1.1 KiB
CMake
55 lines
1.1 KiB
CMake
add_llvm_library(LLVMTransformUtils
|
|
ASanStackFrameLayout.cpp
|
|
AddDiscriminators.cpp
|
|
BasicBlockUtils.cpp
|
|
BreakCriticalEdges.cpp
|
|
BuildLibCalls.cpp
|
|
BypassSlowDivision.cpp
|
|
CloneFunction.cpp
|
|
CloneModule.cpp
|
|
CmpInstAnalysis.cpp
|
|
CodeExtractor.cpp
|
|
CtorUtils.cpp
|
|
DemoteRegToStack.cpp
|
|
Evaluator.cpp
|
|
FlattenCFG.cpp
|
|
FunctionImportUtils.cpp
|
|
GlobalStatus.cpp
|
|
InlineFunction.cpp
|
|
ImportedFunctionsInliningStatistics.cpp
|
|
InstructionNamer.cpp
|
|
IntegerDivision.cpp
|
|
LCSSA.cpp
|
|
Local.cpp
|
|
LoopSimplify.cpp
|
|
LoopUnroll.cpp
|
|
LoopUnrollRuntime.cpp
|
|
LoopUtils.cpp
|
|
LoopVersioning.cpp
|
|
LowerInvoke.cpp
|
|
LowerSwitch.cpp
|
|
Mem2Reg.cpp
|
|
MemorySSA.cpp
|
|
MetaRenamer.cpp
|
|
ModuleUtils.cpp
|
|
NameAnonFunctions.cpp
|
|
PromoteMemoryToRegister.cpp
|
|
SSAUpdater.cpp
|
|
SanitizerStats.cpp
|
|
SimplifyCFG.cpp
|
|
SimplifyIndVar.cpp
|
|
SimplifyInstructions.cpp
|
|
SimplifyLibCalls.cpp
|
|
SplitModule.cpp
|
|
SymbolRewriter.cpp
|
|
UnifyFunctionExitNodes.cpp
|
|
Utils.cpp
|
|
ValueMapper.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Utils
|
|
)
|
|
|
|
add_dependencies(LLVMTransformUtils intrinsics_gen)
|