[PATCH 2/2] jit: function pointers: bring the C++ API more on par with C

2022-01-31 Thread Marc Nieper-Wisskirchen
This patch adds yet missing support for creating function pointer types and to call functions through functions pointers in the C++ API of libgccjit. The method gccjit::context::new_call is overloaded so that it accepts an rvalue instead of a function argument. Instead of creating ad-hoc speciali

[PATCH 1/2] jit: structs/unions: bring the C++ API more on par with C

2022-01-31 Thread Marc Nieper-Wisskirchen
This patch adds yet missing C++ API entry points to create union types and to set the fields of structs previously defined as opaque. A missing convenience method returning NULL pointer values is also added and used in one of the two provided tests. gcc/jit/ChangeLog: * docs/cp/topics/ex

[PATCH] libgccjit: structs/unions: bring the C++ API more on par with C

2022-01-31 Thread Marc Nieper-Wisskirchen
This patch adds yet missing C++ API entry points to create union types and to set the fields of structs previously defined as opaque. A missing convenience method returning NULL pointer values is also added and used in one of the two provided tests. gcc/jit * docs/cp/topics/expressions.r