diff options
author | Erlang/OTP <[email protected]> | 2010-06-08 13:40:20 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-06-08 13:40:20 +0000 |
commit | af15e8bd5bdf976b232e6515cf3cca4200b6120b (patch) | |
tree | d3db0e27ddcd2f1e5fd4bdf0c2d5413c819fe5ad /lib/hipe/cerl/erl_types.erl | |
parent | 59b1c9eac599c563610cfe6e7bf8517ed58d54d3 (diff) | |
parent | 3e56a0158b5a4e8b66deab9886fd67131744c701 (diff) | |
download | otp-af15e8bd5bdf976b232e6515cf3cca4200b6120b.tar.gz otp-af15e8bd5bdf976b232e6515cf3cca4200b6120b.tar.bz2 otp-af15e8bd5bdf976b232e6515cf3cca4200b6120b.zip |
Merge branch 'bg/bif-types' into dev
* bg/bif-types:
Add type information for erlang:garbage_collect_message_area/0
Add type information for erts_debug:* BIFs
Add type information for erlang:port_call/2
Add type information for erlang:display* BIFs
Add type information for the BIFs in the binary module
Introduce and use the t_endian() helper
Add type information for erlang:binary_part/2,3
Add type info for erlang:append/2 and erlang:subtract/2
Add type information for the erlang:adler32* BIFs
Add ppc64 return for erlang:system_info(hipe_architecture)
Test that all BIFs have known types
erl_types: Export is_erl_type/1
Diffstat (limited to 'lib/hipe/cerl/erl_types.erl')
-rw-r--r-- | lib/hipe/cerl/erl_types.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hipe/cerl/erl_types.erl b/lib/hipe/cerl/erl_types.erl index 758914ff9e..c1d80740a1 100644 --- a/lib/hipe/cerl/erl_types.erl +++ b/lib/hipe/cerl/erl_types.erl @@ -206,7 +206,8 @@ %% t_assign_variables_to_subtype/2, type_is_defined/3, subst_all_vars_to_any/1, - lift_list_to_pos_empty/1 + lift_list_to_pos_empty/1, + is_erl_type/1 ]). %%-define(DO_ERL_TYPES_TEST, true). @@ -3776,6 +3777,8 @@ any_none_or_unit([?unit|_]) -> true; any_none_or_unit([_|Left]) -> any_none_or_unit(Left); any_none_or_unit([]) -> false. +-spec is_erl_type(any()) -> boolean(). + is_erl_type(?any) -> true; is_erl_type(?none) -> true; is_erl_type(?unit) -> true; |