aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-27 00:52:57 +0000
committerChris Lattner <sabre@nondot.org>2002-03-27 00:52:57 +0000
commit26f8a40b510cd68b7bd8aa1e596f37d52fecc008 (patch)
tree7481a8f456bd6b4ae640dc604df75378f8c17ee9 /include
parentbc132d62d374978cd0bdd8d1531a991444f97d2a (diff)
downloadexternal_llvm-26f8a40b510cd68b7bd8aa1e596f37d52fecc008.zip
external_llvm-26f8a40b510cd68b7bd8aa1e596f37d52fecc008.tar.gz
external_llvm-26f8a40b510cd68b7bd8aa1e596f37d52fecc008.tar.bz2
Allow isa<DSNode>(..)
Simplification routines return true on change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DataStructure.h5
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index d845303..55029b2 100644
--- a/include/llvm/Analysis/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure.h
@@ -153,6 +153,7 @@ public:
FieldLinks.clear();
}
+ static bool classof(const DSNode *N) { return true; }
protected:
virtual DSNode *cloneImpl() const = 0;
virtual void mapNode(std::map<const DSNode*, DSNode*> &NodeMap,
@@ -303,8 +304,8 @@ class FunctionDSGraph {
// as the data structure graph itself.
//
PointerValSet cloneFunctionIntoSelf(const FunctionDSGraph &G, bool ValueMap);
- void RemoveUnreachableShadowNodes();
- void UnlinkUndistinguishableShadowNodes();
+ bool RemoveUnreachableShadowNodes();
+ bool UnlinkUndistinguishableShadowNodes();
public:
FunctionDSGraph(Function *F);
FunctionDSGraph(const FunctionDSGraph &DSG);
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h
index d845303..55029b2 100644
--- a/include/llvm/Analysis/DataStructure/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure/DataStructure.h
@@ -153,6 +153,7 @@ public:
FieldLinks.clear();
}
+ static bool classof(const DSNode *N) { return true; }
protected:
virtual DSNode *cloneImpl() const = 0;
virtual void mapNode(std::map<const DSNode*, DSNode*> &NodeMap,
@@ -303,8 +304,8 @@ class FunctionDSGraph {
// as the data structure graph itself.
//
PointerValSet cloneFunctionIntoSelf(const FunctionDSGraph &G, bool ValueMap);
- void RemoveUnreachableShadowNodes();
- void UnlinkUndistinguishableShadowNodes();
+ bool RemoveUnreachableShadowNodes();
+ bool UnlinkUndistinguishableShadowNodes();
public:
FunctionDSGraph(Function *F);
FunctionDSGraph(const FunctionDSGraph &DSG);