gccjit::type represents a type within the library. It is a subclass of gccjit;;object.
Types can be created in several ways:
gccjit::type int_type = ctxt.get_type (GCC_JIT_TYPE_INT);
or using the gccjit::context::get_int_type
template:
gccjit::type t = ctxt.get_int_type <unsigned short> ();
See gcc_jit_context_get_type() for the available types.
gccjit::type const_int_star = int_type.get_const ().get_pointer (); gccjit::type int_const_star = int_type.get_pointer ().get_const ();