Go to the documentation of this file.
12 #ifndef LLVM_ANALYSIS_UTILS_IMPORTEDFUNCTIONSINLININGSTATISTICS_H
13 #define LLVM_ANALYSIS_UTILS_IMPORTEDFUNCTIONSINLININGSTATISTICS_H
47 struct InlineGraphNode {
49 InlineGraphNode() =
default;
50 InlineGraphNode(InlineGraphNode &&) =
default;
51 InlineGraphNode &operator=(InlineGraphNode &&) =
default;
55 int32_t NumberOfInlines = 0;
58 int32_t NumberOfRealInlines = 0;
59 bool Imported =
false;
79 InlineGraphNode &createInlineGraphNode(
const Function &);
80 void calculateRealInlines();
81 void dfs(InlineGraphNode &GraphNode);
86 std::vector<const NodesMapTy::MapEntryTy*>;
89 SortedNodesTy getSortedNodes();
98 std::vector<StringRef> NonImportedCallers;
100 int ImportedFunctions = 0;
112 #endif // LLVM_ANALYSIS_UTILS_IMPORTEDFUNCTIONSINLININGSTATISTICS_H
This is an optimization pass for GlobalISel generic memory operations.
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
Calculate and dump ThinLTO specific inliner stats.
void setModuleInfo(const Module &M)
Set information like AllFunctions, ImportedFunctions, ModuleName.
InlinerFunctionImportStatsOpts
A Module instance is used to store all the information related to an LLVM module.
StringRef - Represent a constant reference to a string, i.e.
Machine Check Debug Module
amdgpu Simplify well known AMD library false FunctionCallee Callee
void recordInline(const Function &Caller, const Function &Callee)
Record inline of.
ImportedFunctionsInliningStatistics()=default
void dump(bool Verbose)
Dump stats computed with InlinerStatistics class.