Beaver.ENIF (beaver v0.4.2)

This module provides functions to work with Erlang's erl_nif APIs in MLIR.

Main usages

Summary

Functions

function call to enif_alloc

function call to enif_alloc_env

function call to enif_clear_env

function call to enif_compare

function call to enif_cond_name

function call to enif_cond_wait

function call to enif_cpu_time

Insert external functions of ENIF into given MLIR block

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_double

function call to enif_get_int64

function call to enif_get_int

function call to enif_get_long

function call to enif_get_string

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_hash

function call to enif_ioq_create

function call to enif_ioq_deq

function call to enif_ioq_enqv

function call to enif_ioq_peek

function call to enif_ioq_size

function call to enif_is_atom

function call to enif_is_binary

function call to enif_is_fun

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_port

function call to enif_is_ref

function call to enif_is_tuple

function call to enif_make_atom

function call to enif_make_copy

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_long

function call to enif_make_ref

function call to enif_make_tuple

function call to enif_make_uint

function call to enif_make_ulong

function call to enif_mutex_lock

function call to enif_mutex_name

function call to enif_now_time

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_realloc

function call to enif_select

function call to enif_self

function call to enif_send

function call to enif_set_option

Query the signature of an ENIF function.

Retrieve the signatures of all available ENIF functions.

function call to enif_snprintf

function call to enif_term_type

function call to enif_tsd_get

function call to enif_tsd_set

function call to enif_vfprintf

function call to enif_vsnprintf

Functions

alloc(ssa)

function call to enif_alloc

alloc_binary(ssa)

function call to enif_alloc_binary

alloc_env(ssa)

function call to enif_alloc_env

alloc_resource(ssa)

function call to enif_alloc_resource

binary_to_term(ssa)

function call to enif_binary_to_term

clear_env(ssa)

function call to enif_clear_env

compare(ssa)

function call to enif_compare

compare_monitors(ssa)

function call to enif_compare_monitors

compare_pids(ssa)

function call to enif_compare_pids

cond_broadcast(ssa)

function call to enif_cond_broadcast

cond_create(ssa)

function call to enif_cond_create

cond_destroy(ssa)

function call to enif_cond_destroy

cond_name(ssa)

function call to enif_cond_name

cond_signal(ssa)

function call to enif_cond_signal

cond_wait(ssa)

function call to enif_cond_wait

consume_timeslice(ssa)

function call to enif_consume_timeslice

convert_time_unit(ssa)

function call to enif_convert_time_unit

cpu_time(ssa)

function call to enif_cpu_time

declare_external_functions(ctx, block)

Insert external functions of ENIF into given MLIR block

demonitor_process(ssa)

function call to enif_demonitor_process

dynamic_resource_call(ssa)

function call to enif_dynamic_resource_call

equal_tids(ssa)

function call to enif_equal_tids

fprintf(ssa)

function call to enif_fprintf

free(ssa)

function call to enif_free

free_env(ssa)

function call to enif_free_env

free_iovec(ssa)

function call to enif_free_iovec

functions()

See Beaver.MLIR.CAPI.beaver_raw_enif_functions/0.

get_atom(ssa)

function call to enif_get_atom

get_atom_length(ssa)

function call to enif_get_atom_length

get_double(ssa)

function call to enif_get_double

get_int64(ssa)

function call to enif_get_int64

get_int(ssa)

function call to enif_get_int

get_list_cell(ssa)

function call to enif_get_list_cell

get_list_length(ssa)

function call to enif_get_list_length

get_local_pid(ssa)

function call to enif_get_local_pid

get_local_port(ssa)

function call to enif_get_local_port

get_long(ssa)

function call to enif_get_long

get_map_size(ssa)

function call to enif_get_map_size

get_map_value(ssa)

function call to enif_get_map_value

get_resource(ssa)

function call to enif_get_resource

get_string(ssa)

function call to enif_get_string

get_string_length(ssa)

function call to enif_get_string_length

get_tuple(ssa)

function call to enif_get_tuple

get_uint64(ssa)

function call to enif_get_uint64

get_uint(ssa)

function call to enif_get_uint

get_ulong(ssa)

function call to enif_get_ulong

getenv(ssa)

function call to enif_getenv

has_pending_exception(ssa)

function call to enif_has_pending_exception

hash(ssa)

function call to enif_hash

init_resource_type(ssa)

function call to enif_init_resource_type

inspect_binary(ssa)

function call to enif_inspect_binary

inspect_iolist_as_binary(ssa)

function call to enif_inspect_iolist_as_binary

inspect_iovec(ssa)

function call to enif_inspect_iovec

invoke(execution_engine, function, arguments, opts \\ [])

ioq_create(ssa)

function call to enif_ioq_create

ioq_deq(ssa)

function call to enif_ioq_deq

ioq_destroy(ssa)

function call to enif_ioq_destroy

ioq_enq_binary(ssa)

function call to enif_ioq_enq_binary

ioq_enqv(ssa)

function call to enif_ioq_enqv

ioq_peek(ssa)

function call to enif_ioq_peek

ioq_peek_head(ssa)

function call to enif_ioq_peek_head

ioq_size(ssa)

function call to enif_ioq_size

is_atom(ssa)

function call to enif_is_atom

is_binary(ssa)

function call to enif_is_binary

is_current_process_alive(ssa)

function call to enif_is_current_process_alive

is_empty_list(ssa)

function call to enif_is_empty_list

is_exception(ssa)

function call to enif_is_exception

is_fun(ssa)

function call to enif_is_fun

is_identical(ssa)

function call to enif_is_identical

is_list(ssa)

function call to enif_is_list

is_map(ssa)

function call to enif_is_map

is_number(ssa)

function call to enif_is_number

is_pid(ssa)

function call to enif_is_pid

is_pid_undefined(ssa)

function call to enif_is_pid_undefined

is_port(ssa)

function call to enif_is_port

is_port_alive(ssa)

function call to enif_is_port_alive

is_process_alive(ssa)

function call to enif_is_process_alive

is_ref(ssa)

function call to enif_is_ref

is_tuple(ssa)

function call to enif_is_tuple

keep_resource(ssa)

function call to enif_keep_resource

make_atom(ssa)

function call to enif_make_atom

make_atom_len(ssa)

function call to enif_make_atom_len

make_badarg(ssa)

function call to enif_make_badarg

make_binary(ssa)

function call to enif_make_binary

make_copy(ssa)

function call to enif_make_copy

make_double(ssa)

function call to enif_make_double

make_existing_atom(ssa)

function call to enif_make_existing_atom

make_existing_atom_len(ssa)

function call to enif_make_existing_atom_len

make_int64(ssa)

function call to enif_make_int64

make_int(ssa)

function call to enif_make_int

make_list1(ssa)

function call to enif_make_list1

make_list2(ssa)

function call to enif_make_list2

make_list3(ssa)

function call to enif_make_list3

make_list4(ssa)

function call to enif_make_list4

make_list5(ssa)

function call to enif_make_list5

make_list6(ssa)

function call to enif_make_list6

make_list7(ssa)

function call to enif_make_list7

make_list8(ssa)

function call to enif_make_list8

make_list9(ssa)

function call to enif_make_list9

make_list(ssa)

function call to enif_make_list

make_list_cell(ssa)

function call to enif_make_list_cell

make_list_from_array(ssa)

function call to enif_make_list_from_array

make_long(ssa)

function call to enif_make_long

make_map_from_arrays(ssa)

function call to enif_make_map_from_arrays

make_map_put(ssa)

function call to enif_make_map_put

make_map_remove(ssa)

function call to enif_make_map_remove

make_map_update(ssa)

function call to enif_make_map_update

make_monitor_term(ssa)

function call to enif_make_monitor_term

make_new_atom(ssa)

function call to enif_make_new_atom

make_new_atom_len(ssa)

function call to enif_make_new_atom_len

make_new_binary(ssa)

function call to enif_make_new_binary

make_new_map(ssa)

function call to enif_make_new_map

make_ref(ssa)

function call to enif_make_ref

make_resource(ssa)

function call to enif_make_resource

make_resource_binary(ssa)

function call to enif_make_resource_binary

make_reverse_list(ssa)

function call to enif_make_reverse_list

make_string(ssa)

function call to enif_make_string

make_string_len(ssa)

function call to enif_make_string_len

make_sub_binary(ssa)

function call to enif_make_sub_binary

make_tuple1(ssa)

function call to enif_make_tuple1

make_tuple2(ssa)

function call to enif_make_tuple2

make_tuple3(ssa)

function call to enif_make_tuple3

make_tuple4(ssa)

function call to enif_make_tuple4

make_tuple5(ssa)

function call to enif_make_tuple5

make_tuple6(ssa)

function call to enif_make_tuple6

make_tuple7(ssa)

function call to enif_make_tuple7

make_tuple8(ssa)

function call to enif_make_tuple8

make_tuple9(ssa)

function call to enif_make_tuple9

make_tuple(ssa)

function call to enif_make_tuple

make_tuple_from_array(ssa)

function call to enif_make_tuple_from_array

make_uint64(ssa)

function call to enif_make_uint64

make_uint(ssa)

function call to enif_make_uint

make_ulong(ssa)

function call to enif_make_ulong

make_unique_integer(ssa)

function call to enif_make_unique_integer

map_iterator_create(ssa)

function call to enif_map_iterator_create

map_iterator_destroy(ssa)

function call to enif_map_iterator_destroy

map_iterator_get_pair(ssa)

function call to enif_map_iterator_get_pair

map_iterator_is_head(ssa)

function call to enif_map_iterator_is_head

map_iterator_is_tail(ssa)

function call to enif_map_iterator_is_tail

map_iterator_next(ssa)

function call to enif_map_iterator_next

map_iterator_prev(ssa)

function call to enif_map_iterator_prev

monitor_process(ssa)

function call to enif_monitor_process

monotonic_time(ssa)

function call to enif_monotonic_time

mutex_create(ssa)

function call to enif_mutex_create

mutex_destroy(ssa)

function call to enif_mutex_destroy

mutex_lock(ssa)

function call to enif_mutex_lock

mutex_name(ssa)

function call to enif_mutex_name

mutex_trylock(ssa)

function call to enif_mutex_trylock

mutex_unlock(ssa)

function call to enif_mutex_unlock

now_time(ssa)

function call to enif_now_time

open_resource_type(ssa)

function call to enif_open_resource_type

open_resource_type_x(ssa)

function call to enif_open_resource_type_x

port_command(ssa)

function call to enif_port_command

priv_data(ssa)

function call to enif_priv_data

ptr_to_memref(ssa)

Convert a pointer to a memref

ptr_to_memref(ptr(), size()) :: memref<?xi8>

raise_exception(ssa)

function call to enif_raise_exception

realloc(ssa)

function call to enif_realloc

realloc_binary(ssa)

function call to enif_realloc_binary

register_symbols(e)

release_binary(ssa)

function call to enif_release_binary

release_resource(ssa)

function call to enif_release_resource

rwlock_create(ssa)

function call to enif_rwlock_create

rwlock_destroy(ssa)

function call to enif_rwlock_destroy

rwlock_name(ssa)

function call to enif_rwlock_name

rwlock_rlock(ssa)

function call to enif_rwlock_rlock

rwlock_runlock(ssa)

function call to enif_rwlock_runlock

rwlock_rwlock(ssa)

function call to enif_rwlock_rwlock

rwlock_rwunlock(ssa)

function call to enif_rwlock_rwunlock

rwlock_tryrlock(ssa)

function call to enif_rwlock_tryrlock

rwlock_tryrwlock(ssa)

function call to enif_rwlock_tryrwlock

schedule_nif(ssa)

function call to enif_schedule_nif

select(ssa)

function call to enif_select

self(ssa)

function call to enif_self

send(ssa)

function call to enif_send

set_option(ssa)

function call to enif_set_option

set_pid_undefined(ssa)

function call to enif_set_pid_undefined

signature(ctx, name)

@spec signature(Beaver.MLIR.Context.t(), atom()) :: nil | Beaver.ENIF.Type.signature()

Query the signature of an ENIF function.

signatures(context)

Retrieve the signatures of all available ENIF functions.

sizeof_resource(ssa)

function call to enif_sizeof_resource

snprintf(ssa)

function call to enif_snprintf

system_info(ssa)

function call to enif_system_info

term_to_binary(ssa)

function call to enif_term_to_binary

term_type(ssa)

function call to enif_term_type

thread_create(ssa)

function call to enif_thread_create

thread_exit(ssa)

function call to enif_thread_exit

thread_join(ssa)

function call to enif_thread_join

thread_name(ssa)

function call to enif_thread_name

thread_opts_create(ssa)

function call to enif_thread_opts_create

thread_opts_destroy(ssa)

function call to enif_thread_opts_destroy

thread_self(ssa)

function call to enif_thread_self

thread_type(ssa)

function call to enif_thread_type

time_offset(ssa)

function call to enif_time_offset

tsd_get(ssa)

function call to enif_tsd_get

tsd_key_create(ssa)

function call to enif_tsd_key_create

tsd_key_destroy(ssa)

function call to enif_tsd_key_destroy

tsd_set(ssa)

function call to enif_tsd_set

vfprintf(ssa)

function call to enif_vfprintf

vsnprintf(ssa)

function call to enif_vsnprintf

whereis_pid(ssa)

function call to enif_whereis_pid

whereis_port(ssa)

function call to enif_whereis_port