Add new 'isComplete' method
authorChris Lattner <sabre@nondot.org>
Sat, 28 Jun 2003 21:56:42 +0000 (21:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Jun 2003 21:56:42 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6943 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 6d2383025d66e0d5f68712aada60c2dd81120dd0..7d91918dba11d392c83b8b095308f7eb99645720 100644 (file)
@@ -248,6 +248,7 @@ public:
   bool isRead() const       { return NodeType & Read; }
 
   bool isIncomplete() const { return NodeType & Incomplete; }
+  bool isComplete() const   { return !isIncomplete(); }
   bool isDeadNode() const   { return NodeType & DEAD; }
 
   DSNode *setAllocaNodeMarker()  { NodeType |= AllocaNode;  return this; }
index 6d2383025d66e0d5f68712aada60c2dd81120dd0..7d91918dba11d392c83b8b095308f7eb99645720 100644 (file)
@@ -248,6 +248,7 @@ public:
   bool isRead() const       { return NodeType & Read; }
 
   bool isIncomplete() const { return NodeType & Incomplete; }
+  bool isComplete() const   { return !isIncomplete(); }
   bool isDeadNode() const   { return NodeType & DEAD; }
 
   DSNode *setAllocaNodeMarker()  { NodeType |= AllocaNode;  return this; }