[llvm-commits] CVS: reopt/lib/LightWtProfiling/Trace.h
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 13 13:00:04 PDT 2003
Changes in directory reopt/lib/LightWtProfiling:
Trace.h updated: 1.5 -> 1.6
---
Log message:
give Trace::dominates() a comment.
---
Diffs of the changes: (+4 -0)
Index: reopt/lib/LightWtProfiling/Trace.h
diff -u reopt/lib/LightWtProfiling/Trace.h:1.5 reopt/lib/LightWtProfiling/Trace.h:1.6
--- reopt/lib/LightWtProfiling/Trace.h:1.5 Mon Oct 13 12:56:25 2003
+++ reopt/lib/LightWtProfiling/Trace.h Mon Oct 13 12:59:09 2003
@@ -78,6 +78,10 @@
BasicBlock *operator[] (unsigned i) const { return BasicBlocks[i]; }
BasicBlock *getBlock (unsigned i) const { return BasicBlocks[i]; }
+ /// Returns true if B1 and B2 appear on a path from START to an exit
+ /// block => B1 appears before B2. If START is not provided, defaults
+ /// to 0, which means use getEntryBasicBlock().
+ ///
bool dominates (const BasicBlock *B1, const BasicBlock *B2,
const BasicBlock *start = 0);
};
More information about the llvm-commits
mailing list