[llvm-commits] CVS: llvm/include/llvm/Analysis/DSNode.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 8 17:23:01 PST 2002
Changes in directory llvm/include/llvm/Analysis:
DSNode.h updated: 1.11 -> 1.12
---
Log message:
Add new methods
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.11 llvm/include/llvm/Analysis/DSNode.h:1.12
--- llvm/include/llvm/Analysis/DSNode.h:1.11 Fri Nov 8 15:24:51 2002
+++ llvm/include/llvm/Analysis/DSNode.h Fri Nov 8 17:22:48 2002
@@ -120,6 +120,8 @@
assert(Index < Links.size() && "Link index is out of range!");
return Links[Index].getNode();
}
+
+ /// getLink - Return the link at the specified offset.
DSNodeHandle &getLink(unsigned Offset) {
assert((Offset & ((1 << DS::PointerShift)-1)) == 0 &&
"Pointer offset not aligned correctly!");
@@ -135,6 +137,10 @@
return Links[Index];
}
+ /// getNumLinks - Return the number of links in a node...
+ ///
+ unsigned getNumLinks() const { return Links.size(); }
+
/// mergeTypeInfo - This method merges the specified type into the current
/// node at the specified offset. This may update the current node's type
/// record if this gives more information to the node, it may do nothing to
@@ -171,6 +177,10 @@
assert(Index < Links.size() && "Link index is out of range!");
Links[Index] = NH;
}
+
+ /// getPointerSize - Return the size of a pointer for the current target.
+ ///
+ unsigned getPointerSize() const { return DS::PointerSize; }
/// addEdgeTo - Add an edge from the current node to the specified node. This
/// can cause merging of nodes in the graph.
More information about the llvm-commits
mailing list