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; }