summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
authorGuillaume "Vermeille" Sanchez <guillaumesa@google.com>2015-04-24 16:36:52 +0100
committerGuillaume "Vermeille" Sanchez <guillaumesa@google.com>2015-04-27 13:04:35 +0100
commit2967ec6c3dad1c1dc15fc827188bd5ecfa75493b (patch)
treef923c51b3a6aaa2a05e6fcf6fe0c68cbab718cef /compiler/optimizing/nodes.h
parent9f3565a632d12c9cadd7d966da308fd26dbc899c (diff)
downloadart-2967ec6c3dad1c1dc15fc827188bd5ecfa75493b.tar.gz
art-2967ec6c3dad1c1dc15fc827188bd5ecfa75493b.tar.bz2
art-2967ec6c3dad1c1dc15fc827188bd5ecfa75493b.zip
Add InsertInstructionAfter in HBasicBlock.
Change-Id: I56e4e6edb39d1aab747877b7e517e94f0393f296
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index b89487f4f6..cba64c5552 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -567,7 +567,9 @@ class HBasicBlock : public ArenaObject<kArenaAllocMisc> {
void DisconnectFromAll();
void AddInstruction(HInstruction* instruction);
+ // Insert `instruction` before/after an existing instruction `cursor`.
void InsertInstructionBefore(HInstruction* instruction, HInstruction* cursor);
+ void InsertInstructionAfter(HInstruction* instruction, HInstruction* cursor);
// Replace instruction `initial` with `replacement` within this block.
void ReplaceAndRemoveInstructionWith(HInstruction* initial,
HInstruction* replacement);