diff options
author | Magnus Lång <[email protected]> | 2017-03-16 14:55:23 +0100 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2017-03-16 20:49:42 +0100 |
commit | dbe626aa7beb0f04403f6782443f3a78d0f1fdb0 (patch) | |
tree | 80624d8951ff6ab6f0dc665d5fa606ae7d3c38ae /HOWTO | |
parent | 040f6e240a80cb8576ddb3e7b2b49fd7f98aa3dc (diff) | |
download | otp-dbe626aa7beb0f04403f6782443f3a78d0f1fdb0.tar.gz otp-dbe626aa7beb0f04403f6782443f3a78d0f1fdb0.tar.bz2 otp-dbe626aa7beb0f04403f6782443f3a78d0f1fdb0.zip |
hipe: Add basic range splitting ra callbacks
In addition to the temporary name rewriting that hipe_regalloc_prepass
does, range splitters also need to be able to insert move instructions,
as well as inserting new basic blocks in the control flow graph. The
following four callbacks are added for that purpose:
* Target:mk_move(Src, Dst, Context)
Returns a move instruction from the temporary (not just register
number) Src to Dst.
* Target:mk_goto(Label, Context)
Returns a unconditional control flow instruction that branches to the
label with name Label.
* Target:redirect_jmp(Instr, ToOld, ToNew, Context)
Modifies the control flow instruction Instr so that any control flow
that would go to a label with name ToOld instead goes to the label
with name ToNew.
* Target:new_label(Context)
Returns a fresh label name that does not belong to any existing block
in the current function, and is to be used to create a new basic
block in the control flow graph by calling Target:update_bb/4 with
this new name.
Diffstat (limited to 'HOWTO')
0 files changed, 0 insertions, 0 deletions