add a new map
authorChris Lattner <sabre@nondot.org>
Mon, 21 Mar 2005 20:29:56 +0000 (20:29 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Mar 2005 20:29:56 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20742 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/DataStructure.h

index 15ae2dc9452e332f17fbd74a23511c0605667c74..a12467eb99b87a883e49964f7771ca6cf530565b 100644 (file)
@@ -201,6 +201,14 @@ class TDDataStructures : public ModulePass {
 
   std::map<DSGraph*, std::vector<CallerCallEdge> > CallerEdges;
 
+
+  // IndCallMap - We memoize the results of indirect call inlining operations
+  // that have multiple targets here to avoid N*M inlining.  The key to the map
+  // is a sorted set of callee functions, the value is the DSGraph that holds
+  // all of the caller graphs merged together, and the DSCallSite to merge with
+  // the arguments for each function.
+  std::map<std::vector<Function*>, DSGraph*> IndCallMap;
+
 public:
   ~TDDataStructures() { releaseMyMemory(); }