Allow isa<DSNode>(..)
authorChris Lattner <sabre@nondot.org>
Wed, 27 Mar 2002 00:52:57 +0000 (00:52 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Mar 2002 00:52:57 +0000 (00:52 +0000)
Simplification routines return true on change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1996 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure.h
include/llvm/Analysis/DataStructure/DataStructure.h

index d84530313e81d1f85e056c0b30a0dfe26f7f8784..55029b26945e9317d36a2c0aa49e2e8051a0f492 100644 (file)
@@ -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);
index d84530313e81d1f85e056c0b30a0dfe26f7f8784..55029b26945e9317d36a2c0aa49e2e8051a0f492 100644 (file)
@@ -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);