Beaver.ENIF (beaver v0.4.2)
This module provides functions to work with Erlang's erl_nif APIs in MLIR.
Main usages
- call
declare_external_functions/2
to insert external function declarations into aBeaver.MLIR.Block
- call
register_symbols/1
to register symbols of ENIF functions in aBeaver.MLIR.ExecutionEngine
Summary
Functions
function call to enif_alloc
function call to enif_alloc_binary
function call to enif_alloc_env
function call to enif_alloc_resource
function call to enif_binary_to_term
function call to enif_clear_env
function call to enif_compare
function call to enif_compare_monitors
function call to enif_compare_pids
function call to enif_cond_broadcast
function call to enif_cond_create
function call to enif_cond_destroy
function call to enif_cond_name
function call to enif_cond_signal
function call to enif_cond_wait
function call to enif_consume_timeslice
function call to enif_convert_time_unit
function call to enif_cpu_time
Insert external functions of ENIF into given MLIR block
function call to enif_demonitor_process
function call to enif_dynamic_resource_call
function call to enif_equal_tids
function call to enif_fprintf
function call to enif_free_env
function call to enif_free_iovec
function call to enif_get_atom
function call to enif_get_atom_length
function call to enif_get_double
function call to enif_get_int64
function call to enif_get_int
function call to enif_get_list_cell
function call to enif_get_list_length
function call to enif_get_local_pid
function call to enif_get_local_port
function call to enif_get_long
function call to enif_get_map_size
function call to enif_get_map_value
function call to enif_get_resource
function call to enif_get_string
function call to enif_get_string_length
function call to enif_get_tuple
function call to enif_get_uint64
function call to enif_get_uint
function call to enif_get_ulong
function call to enif_getenv
function call to enif_has_pending_exception
function call to enif_init_resource_type
function call to enif_inspect_binary
function call to enif_inspect_iolist_as_binary
function call to enif_inspect_iovec
function call to enif_ioq_create
function call to enif_ioq_deq
function call to enif_ioq_destroy
function call to enif_ioq_enq_binary
function call to enif_ioq_enqv
function call to enif_ioq_peek
function call to enif_ioq_peek_head
function call to enif_ioq_size
function call to enif_is_atom
function call to enif_is_binary
function call to enif_is_current_process_alive
function call to enif_is_empty_list
function call to enif_is_exception
function call to enif_is_fun
function call to enif_is_identical
function call to enif_is_list
function call to enif_is_map
function call to enif_is_number
function call to enif_is_pid
function call to enif_is_pid_undefined
function call to enif_is_port
function call to enif_is_port_alive
function call to enif_is_process_alive
function call to enif_is_ref
function call to enif_is_tuple
function call to enif_keep_resource
function call to enif_make_atom
function call to enif_make_atom_len
function call to enif_make_badarg
function call to enif_make_binary
function call to enif_make_copy
function call to enif_make_double
function call to enif_make_existing_atom
function call to enif_make_existing_atom_len
function call to enif_make_int64
function call to enif_make_int
function call to enif_make_list1
function call to enif_make_list2
function call to enif_make_list3
function call to enif_make_list4
function call to enif_make_list5
function call to enif_make_list6
function call to enif_make_list7
function call to enif_make_list8
function call to enif_make_list9
function call to enif_make_list
function call to enif_make_list_cell
function call to enif_make_list_from_array
function call to enif_make_long
function call to enif_make_map_from_arrays
function call to enif_make_map_put
function call to enif_make_map_remove
function call to enif_make_map_update
function call to enif_make_monitor_term
function call to enif_make_new_atom
function call to enif_make_new_atom_len
function call to enif_make_new_binary
function call to enif_make_new_map
function call to enif_make_ref
function call to enif_make_resource
function call to enif_make_resource_binary
function call to enif_make_reverse_list
function call to enif_make_string
function call to enif_make_string_len
function call to enif_make_sub_binary
function call to enif_make_tuple1
function call to enif_make_tuple2
function call to enif_make_tuple3
function call to enif_make_tuple4
function call to enif_make_tuple5
function call to enif_make_tuple6
function call to enif_make_tuple7
function call to enif_make_tuple8
function call to enif_make_tuple9
function call to enif_make_tuple
function call to enif_make_tuple_from_array
function call to enif_make_uint64
function call to enif_make_uint
function call to enif_make_ulong
function call to enif_make_unique_integer
function call to enif_map_iterator_create
function call to enif_map_iterator_destroy
function call to enif_map_iterator_get_pair
function call to enif_map_iterator_is_head
function call to enif_map_iterator_is_tail
function call to enif_map_iterator_next
function call to enif_map_iterator_prev
function call to enif_monitor_process
function call to enif_monotonic_time
function call to enif_mutex_create
function call to enif_mutex_destroy
function call to enif_mutex_lock
function call to enif_mutex_name
function call to enif_mutex_trylock
function call to enif_mutex_unlock
function call to enif_now_time
function call to enif_open_resource_type
function call to enif_open_resource_type_x
function call to enif_port_command
function call to print_close
function call to print_comma
function call to print_f32
function call to print_f64
function call to print_i32
function call to print_i64
function call to print_newline
function call to print_open
function call to print_u32
function call to print_u64
function call to enif_priv_data
Convert a pointer to a memref
function call to enif_raise_exception
function call to enif_realloc
function call to enif_realloc_binary
function call to enif_release_binary
function call to enif_release_resource
function call to enif_rwlock_create
function call to enif_rwlock_destroy
function call to enif_rwlock_name
function call to enif_rwlock_rlock
function call to enif_rwlock_runlock
function call to enif_rwlock_rwlock
function call to enif_rwlock_rwunlock
function call to enif_rwlock_tryrlock
function call to enif_rwlock_tryrwlock
function call to enif_schedule_nif
function call to enif_select
function call to enif_set_option
function call to enif_set_pid_undefined
Query the signature of an ENIF function.
Retrieve the signatures of all available ENIF functions.
function call to enif_sizeof_resource
function call to enif_snprintf
function call to enif_system_info
function call to enif_term_to_binary
function call to enif_term_type
function call to enif_thread_create
function call to enif_thread_exit
function call to enif_thread_join
function call to enif_thread_name
function call to enif_thread_opts_create
function call to enif_thread_opts_destroy
function call to enif_thread_self
function call to enif_thread_type
function call to enif_time_offset
function call to enif_tsd_get
function call to enif_tsd_key_create
function call to enif_tsd_key_destroy
function call to enif_tsd_set
function call to enif_vfprintf
function call to enif_vsnprintf
function call to enif_whereis_pid
function call to enif_whereis_port
Functions
function call to enif_alloc
function call to enif_alloc_binary
function call to enif_alloc_env
function call to enif_alloc_resource
function call to enif_binary_to_term
function call to enif_clear_env
function call to enif_compare
function call to enif_compare_monitors
function call to enif_compare_pids
function call to enif_cond_broadcast
function call to enif_cond_create
function call to enif_cond_destroy
function call to enif_cond_name
function call to enif_cond_signal
function call to enif_cond_wait
function call to enif_consume_timeslice
function call to enif_convert_time_unit
function call to enif_cpu_time
Insert external functions of ENIF into given MLIR block
function call to enif_demonitor_process
function call to enif_dynamic_resource_call
function call to enif_equal_tids
function call to enif_fprintf
function call to enif_free
function call to enif_free_env
function call to enif_free_iovec
function call to enif_get_atom
function call to enif_get_atom_length
function call to enif_get_double
function call to enif_get_int64
function call to enif_get_int
function call to enif_get_list_cell
function call to enif_get_list_length
function call to enif_get_local_pid
function call to enif_get_local_port
function call to enif_get_long
function call to enif_get_map_size
function call to enif_get_map_value
function call to enif_get_resource
function call to enif_get_string
function call to enif_get_string_length
function call to enif_get_tuple
function call to enif_get_uint64
function call to enif_get_uint
function call to enif_get_ulong
function call to enif_getenv
function call to enif_has_pending_exception
function call to enif_hash
function call to enif_init_resource_type
function call to enif_inspect_binary
function call to enif_inspect_iolist_as_binary
function call to enif_inspect_iovec
@spec invoke( Beaver.MLIR.ExecutionEngine.t(), String.t(), list(), Beaver.MLIR.ExecutionEngine.invoke_opts() ) :: term()
function call to enif_ioq_create
function call to enif_ioq_deq
function call to enif_ioq_destroy
function call to enif_ioq_enq_binary
function call to enif_ioq_enqv
function call to enif_ioq_peek
function call to enif_ioq_peek_head
function call to enif_ioq_size
function call to enif_is_atom
function call to enif_is_binary
function call to enif_is_current_process_alive
function call to enif_is_empty_list
function call to enif_is_exception
function call to enif_is_fun
function call to enif_is_identical
function call to enif_is_list
function call to enif_is_map
function call to enif_is_number
function call to enif_is_pid
function call to enif_is_pid_undefined
function call to enif_is_port
function call to enif_is_port_alive
function call to enif_is_process_alive
function call to enif_is_ref
function call to enif_is_tuple
function call to enif_keep_resource
function call to enif_make_atom
function call to enif_make_atom_len
function call to enif_make_badarg
function call to enif_make_binary
function call to enif_make_copy
function call to enif_make_double
function call to enif_make_existing_atom
function call to enif_make_existing_atom_len
function call to enif_make_int64
function call to enif_make_int
function call to enif_make_list1
function call to enif_make_list2
function call to enif_make_list3
function call to enif_make_list4
function call to enif_make_list5
function call to enif_make_list6
function call to enif_make_list7
function call to enif_make_list8
function call to enif_make_list9
function call to enif_make_list
function call to enif_make_list_cell
function call to enif_make_list_from_array
function call to enif_make_long
function call to enif_make_map_from_arrays
function call to enif_make_map_put
function call to enif_make_map_remove
function call to enif_make_map_update
function call to enif_make_monitor_term
function call to enif_make_new_atom
function call to enif_make_new_atom_len
function call to enif_make_new_binary
function call to enif_make_new_map
function call to enif_make_ref
function call to enif_make_resource
function call to enif_make_resource_binary
function call to enif_make_reverse_list
function call to enif_make_string
function call to enif_make_string_len
function call to enif_make_sub_binary
function call to enif_make_tuple1
function call to enif_make_tuple2
function call to enif_make_tuple3
function call to enif_make_tuple4
function call to enif_make_tuple5
function call to enif_make_tuple6
function call to enif_make_tuple7
function call to enif_make_tuple8
function call to enif_make_tuple9
function call to enif_make_tuple
function call to enif_make_tuple_from_array
function call to enif_make_uint64
function call to enif_make_uint
function call to enif_make_ulong
function call to enif_make_unique_integer
function call to enif_map_iterator_create
function call to enif_map_iterator_destroy
function call to enif_map_iterator_get_pair
function call to enif_map_iterator_is_head
function call to enif_map_iterator_is_tail
function call to enif_map_iterator_next
function call to enif_map_iterator_prev
function call to enif_monitor_process
function call to enif_monotonic_time
function call to enif_mutex_create
function call to enif_mutex_destroy
function call to enif_mutex_lock
function call to enif_mutex_name
function call to enif_mutex_trylock
function call to enif_mutex_unlock
function call to enif_now_time
function call to enif_open_resource_type
function call to enif_open_resource_type_x
function call to enif_port_command
function call to print_close
function call to print_comma
function call to print_f32
function call to print_f64
function call to print_i32
function call to print_i64
function call to print_newline
function call to print_open
function call to print_u32
function call to print_u64
function call to enif_priv_data
Convert a pointer to a memref
ptr_to_memref(ptr(), size()) :: memref<?xi8>
function call to enif_raise_exception
function call to enif_realloc
function call to enif_realloc_binary
function call to enif_release_binary
function call to enif_release_resource
function call to enif_rwlock_create
function call to enif_rwlock_destroy
function call to enif_rwlock_name
function call to enif_rwlock_rlock
function call to enif_rwlock_runlock
function call to enif_rwlock_rwlock
function call to enif_rwlock_rwunlock
function call to enif_rwlock_tryrlock
function call to enif_rwlock_tryrwlock
function call to enif_schedule_nif
function call to enif_select
function call to enif_self
function call to enif_send
function call to enif_set_option
function call to enif_set_pid_undefined
@spec signature(Beaver.MLIR.Context.t(), atom()) :: nil | Beaver.ENIF.Type.signature()
Query the signature of an ENIF function.
@spec signatures(Beaver.MLIR.Context.t()) :: [Beaver.ENIF.Type.signature()]
Retrieve the signatures of all available ENIF functions.
function call to enif_sizeof_resource
function call to enif_snprintf
function call to enif_system_info
function call to enif_term_to_binary
function call to enif_term_type
function call to enif_thread_create
function call to enif_thread_exit
function call to enif_thread_join
function call to enif_thread_name
function call to enif_thread_opts_create
function call to enif_thread_opts_destroy
function call to enif_thread_self
function call to enif_thread_type
function call to enif_time_offset
function call to enif_tsd_get
function call to enif_tsd_key_create
function call to enif_tsd_key_destroy
function call to enif_tsd_set
function call to enif_vfprintf
function call to enif_vsnprintf
function call to enif_whereis_pid
function call to enif_whereis_port