From: Chris Lattner Date: Sat, 28 Jun 2003 21:56:42 +0000 (+0000) Subject: Add new 'isComplete' method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2769e6ca92332224eef7dcae8bd4d8fe804578ec;p=oota-llvm.git Add new 'isComplete' method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 6d2383025d6..7d91918dba1 100644 --- a/include/llvm/Analysis/DSNode.h +++ b/include/llvm/Analysis/DSNode.h @@ -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; } diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 6d2383025d6..7d91918dba1 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -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; }