From 3ec9a0a5cff423cab774cdbf28f0e68b6ca1ea17 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Oct 2002 15:58:23 +0000 Subject: [PATCH] We need to know the call sites each function hosts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4258 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure.h | 10 +++++++++- include/llvm/Analysis/DataStructure/DataStructure.h | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index d44732a4863..ab140bac874 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -65,7 +65,6 @@ public: // only performs a "Bottom Up" propogation (hence the name). // class BUDataStructures : public Pass { -private: // DSInfo, one graph for each function std::map DSInfo; std::map > CallSites; @@ -118,6 +117,15 @@ class TDDataStructures : public Pass { // typedef std::map BUNodeMapTy; std::map BUMaps; + + // CallSitesForFunction - This is a temporary map that is only kept around + // when building the top-down closures for a program. It traverses all of the + // call sites in the BU graph and holds all of the call sites that each + // function is the "resolving caller" for. + // + std::map > CallSitesForFunction; + public: ~TDDataStructures() { releaseMemory(); } diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index d44732a4863..ab140bac874 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -65,7 +65,6 @@ public: // only performs a "Bottom Up" propogation (hence the name). // class BUDataStructures : public Pass { -private: // DSInfo, one graph for each function std::map DSInfo; std::map > CallSites; @@ -118,6 +117,15 @@ class TDDataStructures : public Pass { // typedef std::map BUNodeMapTy; std::map BUMaps; + + // CallSitesForFunction - This is a temporary map that is only kept around + // when building the top-down closures for a program. It traverses all of the + // call sites in the BU graph and holds all of the call sites that each + // function is the "resolving caller" for. + // + std::map > CallSitesForFunction; + public: ~TDDataStructures() { releaseMemory(); }