aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-04 19:20:00 +0000
committerChris Lattner <sabre@nondot.org>2002-04-04 19:20:00 +0000
commit1e10c7c27800ba0ce7bb66f4f75f707e8efec674 (patch)
treedab5faa1339dc3781913c33cf5e602ed1f76249a /include/llvm
parent8937375e4bc10129edf20d2c35e71da750e07baf (diff)
downloadexternal_llvm-1e10c7c27800ba0ce7bb66f4f75f707e8efec674.zip
external_llvm-1e10c7c27800ba0ce7bb66f4f75f707e8efec674.tar.gz
external_llvm-1e10c7c27800ba0ce7bb66f4f75f707e8efec674.tar.bz2
Add method to get # nodes in the graph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/DataStructure.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index 3dce043..335477f 100644
--- a/include/llvm/Analysis/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure.h
@@ -432,6 +432,10 @@ public:
const PointerValSet &getRetNodes() const { return RetNode; }
+ unsigned getGraphSize() const {
+ return ArgNodes.size() + AllocNodes.size() + ShadowNodes.size() +
+ GlobalNodes.size() + CallNodes.size();
+ }
void printFunction(std::ostream &O, const char *Label) const;
};
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h
index 3dce043..335477f 100644
--- a/include/llvm/Analysis/DataStructure/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure/DataStructure.h
@@ -432,6 +432,10 @@ public:
const PointerValSet &getRetNodes() const { return RetNode; }
+ unsigned getGraphSize() const {
+ return ArgNodes.size() + AllocNodes.size() + ShadowNodes.size() +
+ GlobalNodes.size() + CallNodes.size();
+ }
void printFunction(std::ostream &O, const char *Label) const;
};