On 13/12/24 11:24 +0100, Basile Starynkevitch wrote:
On Fri, 2024-12-13 at 11:03 +0100, Basile Starynkevitch wrote:
Hello all,
On GNU Linux/Ubuntu/x86_64 I am using libgccjit++ (in
https://github.com/RefPerSys/RefPerSys/ - a GPLv3+ inference engine
project) but I cannot understand how to create in C++ a union type.
Today (Dec 13, 2024) the file
https://gcc.gnu.org/onlinedocs/jit/cp/topics/types.html
don't explain how to create a GCCJIT union type.
Is there a simple C++ example creating a union for libgccjit 14?
Thanks
It seems that gcc_jit_context_new_union_type exists as a C callable
function in /usr/lib/gcc/x86_64-linux-gnu/14/include/libgccjit.h but
has not yet a C++ wrapping function?
Or did I misunderstood the libgccjit API?
You sent this to the gcc-bugs list, I assume it was meant for a
different list.