jit_value_create

Function jit_value_create 

Source
pub unsafe extern "C" fn jit_value_create(
    func: jit_function_t,
    type_: jit_type_t,
) -> jit_value_t
Expand description

Create a new value in the context of a function’s current block. The value initially starts off as a block-specific temporary. It will be converted into a function-wide local variable if it is ever referenced from a different block. Returns NULL if out of memory.

Note: It isn’t possible to refer to global variables directly using values. If you need to access a global variable, then load its address into a temporary and use jit_insn_load_relative or jit_insn_store_relative to manipulate it. It simplifies the JIT if it can assume that all values are local.