Re: [PATCH v3] [GCCJIT] support dynamic alloca stub

2024-11-11 Thread Antoni Boucher
Hi and thanks for the patch. I would rather avoid having to hard-code the types of built-in functions, especially since we can already access them via the function gcc_jit_context_get_target_builtin_function that is available in this patch: https://gcc.gnu.org/pipermail/jit/2023q4/001725.html

[PATCH v3] [GCCJIT] support dynamic alloca stub

2024-11-10 Thread Schrodinger ZHU Yifan
This patch adds dynamic alloca stubs support to GCCJIT. DEF_BUILTIN_STUB only defines the enum for builtins instead of providing the type. Therefore, builtins with stub will lead to ICE before this patch. This applies to `alloca_with_align`, `stack_save` and `stack_restore`. This patch adds speci