12 #ifndef LLVM_TRANSFORMS_UTILS_IMPORTEDFUNCTIONSINLININGSTATISTICS_H 13 #define LLVM_TRANSFORMS_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;
75 void dump(
bool Verbose);
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;
106 #endif // LLVM_TRANSFORMS_UTILS_IMPORTEDFUNCTIONSINLININGSTATISTICS_H void setModuleInfo(const Module &M)
Set information like AllFunctions, ImportedFunctions, ModuleName.
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
void recordInline(const Function &Caller, const Function &Callee)
Record inline of.
Calculate and dump ThinLTO specific inliner stats.
ImportedFunctionsInliningStatistics()=default
void dump(bool Verbose)
Dump stats computed with InlinerStatistics class.
amdgpu Simplify well known AMD library false FunctionCallee Callee
StringRef - Represent a constant reference to a string, i.e.