3.2.3.1 Standard types

C++ Function: gccjit::type gccjit::context::get_type (enum gcc_jit_types)

Access a specific type. This is a thin wrapper around gcc_jit_context_get_type(); the parameter has the same meaning.

C++ Function: gccjit::type gccjit::context::get_int_type (size_t num_bytes, int is_signed)

Access the integer type of the given size.

C++ Function: template<>gccjit::type gccjit::context::get_int_type<T> ()

Access the given integer type. For example, you could map the unsigned short type into a gccjit::type via:

gccjit::type t = ctxt.get_int_type <unsigned short> ();