Refactor call graph to share common code for different kinds of applies.

Swift SVN r24764
This commit is contained in:
Mark Lacey
2015-01-28 00:37:38 +00:00
parent 9be5c4aa71
commit f8d9f73777
2 changed files with 43 additions and 41 deletions

View File

@@ -263,6 +263,8 @@ public:
private:
void addCallGraphNode(SILFunction *F, unsigned Ordinal);
void addEdges(SILFunction *F);
bool tryGetCalleeSet(SILValue Callee, CallGraphEdge::CalleeSetType &CalleeSet,
bool &Complete);
void addEdgesForApply(ApplyInst *AI, CallGraphNode *CallerNode);
void computeBottomUpSCCOrder();
void computeBottomUpFunctionOrder();