jit_blocks 0.1.0
Loading...
Searching...
No Matches
Typedefs | Functions
Build a series of function calls

APIs for building a simple function that calls call specified functions in order. More...

Typedefs

typedef void(* jit_blocks_funccalls_func_ptr_t) (void *)
 
typedef void(* jit_blocks_funccalls_output_func_t) (void *arg)
 

Functions

JIT_BLOCKS_EXPORT jit_blocks_funccalls_output_func_t jit_blocks_funccalls_build (const jit_blocks_funccalls_func_ptr_t *records, int num_records, gcc_jit_result **out_res)
 
JIT_BLOCKS_EXPORT jit_blocks_funccalls_output_func_t jit_blocks_funccalls_build_aux (const jit_blocks_funccalls_func_ptr_t *records, int num_records, gcc_jit_context *custom_context, gcc_jit_result **out_res)
 

Detailed Description

APIs for building a simple function that calls call specified functions in order.

Called functions should accept a single argument of (void*) and return void.

Given the following constructor call:

record[0] = &func1;
record[1] = &func2;
void(* jit_blocks_funccalls_func_ptr_t)(void *)
Definition jit_blocks.h:84
JIT_BLOCKS_EXPORT jit_blocks_funccalls_output_func_t jit_blocks_funccalls_build(const jit_blocks_funccalls_func_ptr_t *records, int num_records, gcc_jit_result **out_res)

It will build a function like below:

void output_func(void* arg) {
func1(arg);
func2(arg);
// ...
}

Typedef Documentation

◆ jit_blocks_funccalls_func_ptr_t

typedef void(* jit_blocks_funccalls_func_ptr_t) (void *)

◆ jit_blocks_funccalls_output_func_t

typedef void(* jit_blocks_funccalls_output_func_t) (void *arg)

Function Documentation

◆ jit_blocks_funccalls_build()

JIT_BLOCKS_EXPORT jit_blocks_funccalls_output_func_t jit_blocks_funccalls_build ( const jit_blocks_funccalls_func_ptr_t records,
int  num_records,
gcc_jit_result **  out_res 
)

◆ jit_blocks_funccalls_build_aux()

JIT_BLOCKS_EXPORT jit_blocks_funccalls_output_func_t jit_blocks_funccalls_build_aux ( const jit_blocks_funccalls_func_ptr_t records,
int  num_records,
gcc_jit_context *  custom_context,
gcc_jit_result **  out_res 
)