2.3.2 Pointers, const, and volatile

C Function: gcc_jit_type *gcc_jit_type_get_pointer (gcc_jit_type *type)

Given type “T”, get type “T*”.

C Function: gcc_jit_type *gcc_jit_type_get_const (gcc_jit_type *type)

Given type “T”, get type “const T”.

C Function: gcc_jit_type *gcc_jit_type_get_volatile (gcc_jit_type *type)

Given type “T”, get type “volatile T”.

C Function: gcc_jit_type * gcc_jit_context_new_array_type (gcc_jit_context *ctxt, gcc_jit_location *loc, gcc_jit_type *element_type, int num_elements)

Given non-void type “T”, get type “T[N]” (for a constant N).

C Function: gcc_jit_type * gcc_jit_type_get_aligned (gcc_jit_type *type, size_t alignment_in_bytes)

Given non-void type “T”, get type:

T __attribute__ ((aligned (ALIGNMENT_IN_BYTES)))

The alignment must be a power of two.

This entrypoint was added in LIBGCCJIT_ABI_7; you can test for its presence using

#ifdef LIBGCCJIT_HAVE_gcc_jit_type_get_aligned