summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2014-09-25 10:10:38 +0100
committer Roland Levillain <rpl@google.com> 2014-09-25 10:10:38 +0100
commit6b46923ff0197c95f1e7ea0bc730961df6725cc9 (patch)
tree45cf685a23c70f95b1d16b7d3d67369d6148a514 /compiler/optimizing/nodes.h
parentc0d36abb12cdbb9469039c1dc153a586bd984015 (diff)
Optimizing compiler: check inputs & uses definitions in CFG.
Ensure each input and each use of an instruction is defined in a block of the control-flow graph. Change-Id: If4a83b02825230329b0b4fd84255dcb7c3219684
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index be6b355d22..5e2dec1623 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -57,6 +57,9 @@ class HInstructionList {
void AddInstruction(HInstruction* instruction);
void RemoveInstruction(HInstruction* instruction);
+ // Return true if this list contains `instruction`.
+ bool Contains(HInstruction* instruction) const;
+
// Return true if `instruction1` is found before `instruction2` in
// this instruction list and false otherwise. Abort if none
// of these instructions is found.