diff options
author | 2014-10-01 14:12:25 +0100 | |
---|---|---|
committer | 2014-10-14 14:44:16 +0100 | |
commit | 633021e6ff6b9a57a374a994e74cfd69275ce100 (patch) | |
tree | 78755b7e5d90f1374b317cea2193605de9bdd2d9 /compiler/optimizing/nodes.h | |
parent | a8069ce1c3caa4f9b1651988986f3732152c186d (diff) |
Implement default traversals in CFG & SSA graph checkers.
- Check CFG graphs using an insertion order traversal.
- Check SSA form graphs using a reverse post-order traversal.
Change-Id: Ib9062599bdbf3c17b9f213b743274b2d71a9fa90
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index c6eb806904..e60a7e62db 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -1961,8 +1961,12 @@ class HGraphVisitor : public ValueObject { virtual void VisitInstruction(HInstruction* instruction) {} virtual void VisitBasicBlock(HBasicBlock* block); + // Visit the graph following basic block insertion order. void VisitInsertionOrder(); + // Visit the graph following dominator tree reverse post-order. + void VisitReversePostOrder(); + HGraph* GetGraph() const { return graph_; } // Visit functions for instruction classes. |