@@ -699,6 +699,20 @@ gcc_jit_vector_type_get_num_units (gcc_jit_vector_type *vector_type)
699699 return vector_type->get_num_units ();
700700}
701701
702+ /* Public entrypoint. See description in libgccjit.h.
703+
704+ After error-checking, this calls the trivial
705+ gcc::jit::recording::memento::as_object method (a type is a
706+ memento), in jit-recording.h. */
707+
708+ gcc_jit_object *
709+ gcc_jit_vector_type_as_object (gcc_jit_vector_type *vector_type)
710+ {
711+ RETURN_NULL_IF_FAIL (vector_type, NULL , NULL , " NULL vector_type" );
712+
713+ return static_cast <gcc_jit_object *> (vector_type->as_object ());
714+ }
715+
702716/* Public entrypoint. See description in libgccjit.h.
703717
704718 After error-checking, the real work is done by the
@@ -824,6 +838,20 @@ gcc_jit_function_type_get_param_type (gcc_jit_function_type *function_type,
824838 return (gcc_jit_type *)function_type->get_param_types ()[index];
825839}
826840
841+ /* Public entrypoint. See description in libgccjit.h.
842+
843+ After error-checking, this calls the trivial
844+ gcc::jit::recording::memento::as_object method (a type is a
845+ memento), in jit-recording.h. */
846+
847+ gcc_jit_object *
848+ gcc_jit_function_type_as_object (gcc_jit_function_type *function_type)
849+ {
850+ RETURN_NULL_IF_FAIL (function_type, NULL , NULL , " NULL function_type" );
851+
852+ return static_cast <gcc_jit_object *> (function_type->as_object ());
853+ }
854+
827855/* Public entrypoint. See description in libgccjit.h.
828856
829857 After error-checking, the real work is done by the
@@ -3229,6 +3257,20 @@ gcc_jit_region_add_block (gcc_jit_region *region, gcc_jit_block *block)
32293257 region->add_block (block);
32303258}
32313259
3260+ /* Public entrypoint. See description in libgccjit.h.
3261+
3262+ After error-checking, this calls the trivial
3263+ gcc::jit::recording::memento::as_object method (a region is a
3264+ memento), in jit-recording.h. */
3265+
3266+ gcc_jit_object *
3267+ gcc_jit_region_as_object (gcc_jit_region *region)
3268+ {
3269+ RETURN_NULL_IF_FAIL (region, NULL , NULL , " NULL region" );
3270+
3271+ return static_cast <gcc_jit_object *> (region->as_object ());
3272+ }
3273+
32323274/* Public entrypoint. See description in libgccjit.h.
32333275
32343276 After error-checking, the real work is done by the
0 commit comments