Handle arbitrary store registers
This commit is contained in:
parent
e8a54395bf
commit
47ad607dd5
@ -719,7 +719,7 @@ pp_op(I) ->
|
||||
|
||||
pp_arg(?i(I)) -> io_lib:format("~w", [I]);
|
||||
pp_arg({arg, N}) -> io_lib:format("arg~p", [N]);
|
||||
pp_arg(?s) -> "store1";
|
||||
pp_arg({store, N}) -> io_lib:format("store~p", [N]);
|
||||
pp_arg({var, N}) -> io_lib:format("var~p", [N]);
|
||||
pp_arg(?a) -> "a".
|
||||
|
||||
@ -1376,7 +1376,7 @@ desugar_args(I) when is_tuple(I) ->
|
||||
list_to_tuple([Op | lists:map(fun desugar_arg/1, Args)]);
|
||||
desugar_args(I) -> I.
|
||||
|
||||
desugar_arg(?s) -> {var, -1};
|
||||
desugar_arg({store, N}) -> {var, -N};
|
||||
desugar_arg(A) -> A.
|
||||
|
||||
%% -- Phase III --------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user