aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2010-12-16 10:32:28 +0100
committerBjörn Gustavsson <bjorn@erlang.org>2011-01-17 15:23:22 +0100
commit6ce5ab74806d044070768175f48605bab7fa079d (patch)
tree5be617825d4e878c6d5dd4b48dd7b1d2feada2b0 /lib/hipe
parent1d82ce2e4466980e5c360b54722952a30bc3ae50 (diff)
downloadotp-6ce5ab74806d044070768175f48605bab7fa079d.tar.gz
otp-6ce5ab74806d044070768175f48605bab7fa079d.tar.bz2
otp-6ce5ab74806d044070768175f48605bab7fa079d.zip
Add erts_debug:instructions/0 for listing all specific instructions
erts_debug:instructions/0 is useful for finding which specific instructions that are not used at all.
Diffstat (limited to 'lib/hipe')
-rw-r--r--lib/hipe/cerl/erl_bif_types.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hipe/cerl/erl_bif_types.erl b/lib/hipe/cerl/erl_bif_types.erl
index ed5bf03804..af36eed79a 100644
--- a/lib/hipe/cerl/erl_bif_types.erl
+++ b/lib/hipe/cerl/erl_bif_types.erl
@@ -1865,6 +1865,8 @@ type(erts_debug, flat_size, 1, Xs) ->
strict(arg_types(erts_debug, flat_size, 1), Xs, fun (_) -> t_integer() end);
type(erts_debug, get_internal_state, 1, _) ->
t_any();
+type(erts_debug, instructions, 0, _) ->
+ t_list(t_list(t_byte()));
type(erts_debug, lock_counters, 1, Xs) ->
strict(arg_types(erts_debug, lock_counters, 1), Xs,
fun ([Arg]) ->
@@ -4091,6 +4093,8 @@ arg_types(erts_debug, flat_size, 1) ->
[t_any()];
arg_types(erts_debug, get_internal_state, 1) ->
[t_any()];
+arg_types(erts_debug, instructions, 0) ->
+ [];
arg_types(erts_debug, lock_counters, 1) ->
[t_sup([t_atom(enabled),
t_atom(info),