1
%%% -*- erlang-indent-level: 2 -*-
8
%% hipe_ppc_pp:pp(Defun0),
9
{Defun1, Coloring_fp, SpillIndex}
10
= case proplists:get_bool(inline_fp, Options) of
12
hipe_regalloc_loop:ra_fp(Defun0, Options,
13
hipe_coalescing_regalloc,
14
hipe_ppc_specific_fp);
18
%% hipe_ppc_pp:pp(Defun1),
20
= case proplists:get_value(regalloc, Options, coalescing) of
22
ra(Defun1, SpillIndex, Options, hipe_coalescing_regalloc);
24
ra(Defun1, SpillIndex, Options, hipe_optimistic_regalloc);
26
ra(Defun1, SpillIndex, Options, hipe_graph_coloring_regalloc);
28
hipe_ppc_ra_ls:ra(Defun1, SpillIndex, Options);
30
hipe_ppc_ra_naive:ra(Defun1, Coloring_fp, Options);
32
exit({unknown_regalloc_compiler_option,
33
proplists:get_value(regalloc,Options)})
35
%% hipe_ppc_pp:pp(Defun2),
36
hipe_ppc_ra_finalise:finalise(Defun2, Coloring, Coloring_fp).
38
ra(Defun, SpillIndex, Options, RegAllocMod) ->
39
hipe_regalloc_loop:ra(Defun, SpillIndex, Options, RegAllocMod, hipe_ppc_specific).