[llvm-commits] CVS: llvm/include/llvm/Analysis/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 20 15:29:01 PDT 2002
Changes in directory llvm/include/llvm/Analysis:
DSGraph.h updated: 1.10 -> 1.11
---
Log message:
Add isArray flag
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.10 llvm/include/llvm/Analysis/DSGraph.h:1.11
--- llvm/include/llvm/Analysis/DSGraph.h:1.10 Sun Oct 20 13:04:43 2002
+++ llvm/include/llvm/Analysis/DSGraph.h Sun Oct 20 15:28:35 2002
@@ -119,13 +119,12 @@
///
std::vector<DSNodeHandle*> Referrers;
- /// TypeEntries - As part of the merging process of this algorithm, nodes of
- /// different types can be represented by this single DSNode. This vector is
- /// kept sorted.
- ///
+ /// TypeRec - This structure is used to represent a single type that is held
+ /// in a DSNode.
struct TypeRec {
- const Type *Ty;
- unsigned Offset;
+ const Type *Ty; // The type itself...
+ unsigned Offset; // The offset in the node
+ bool isArray; // Have we accessed an array of elements?
TypeRec() : Ty(0), Offset(0) {}
TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O) {}
@@ -140,6 +139,10 @@
bool operator!=(const TypeRec &TR) const { return !operator==(TR); }
};
+ /// TypeEntries - As part of the merging process of this algorithm, nodes of
+ /// different types can be represented by this single DSNode. This vector is
+ /// kept sorted.
+ ///
std::vector<TypeRec> TypeEntries;
/// Globals - The list of global values that are merged into this node.
More information about the llvm-commits
mailing list