public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/96889] New: Reflection API accessible from the jit C API
@ 2020-09-02 0:52 bouanto at zoho dot com
2020-09-02 0:58 ` [Bug jit/96889] " bouanto at zoho dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bouanto at zoho dot com @ 2020-09-02 0:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96889
Bug ID: 96889
Summary: Reflection API accessible from the jit C API
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: jit
Assignee: dmalcolm at gcc dot gnu.org
Reporter: bouanto at zoho dot com
Target Milestone: ---
Hi.
There are some functions that would be useful to have in the C API of libgccjit
like a function to get the number of parameters of a function or its return
type.
I'll send the patch very soon.
There are probably other reflection functions that would be useful as well:
I'll add them to the patch later.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/96889] Reflection API accessible from the jit C API
2020-09-02 0:52 [Bug jit/96889] New: Reflection API accessible from the jit C API bouanto at zoho dot com
@ 2020-09-02 0:58 ` bouanto at zoho dot com
2021-11-20 1:52 ` cvs-commit at gcc dot gnu.org
2021-11-20 1:53 ` bouanto at zoho dot com
2 siblings, 0 replies; 4+ messages in thread
From: bouanto at zoho dot com @ 2020-09-02 0:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96889
--- Comment #1 from Antoni <bouanto at zoho dot com> ---
Created attachment 49173
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49173&action=edit
Patch with new functions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/96889] Reflection API accessible from the jit C API
2020-09-02 0:52 [Bug jit/96889] New: Reflection API accessible from the jit C API bouanto at zoho dot com
2020-09-02 0:58 ` [Bug jit/96889] " bouanto at zoho dot com
@ 2021-11-20 1:52 ` cvs-commit at gcc dot gnu.org
2021-11-20 1:53 ` bouanto at zoho dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-20 1:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96889
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Antoni Boucher <antoyo@gcc.gnu.org>:
https://gcc.gnu.org/g:cfe8dbd9c08a5bce497646467c9d30942ec3efe0
commit r12-5428-gcfe8dbd9c08a5bce497646467c9d30942ec3efe0
Author: Antoni Boucher <bouanto@zoho.com>
Date: Fri Nov 19 20:44:34 2021 -0500
libgccjit: Add some reflection functions [PR96889]
2021-11-19 Antoni Boucher <bouanto@zoho.com>
gcc/jit/
PR target/96889
* docs/topics/compatibility.rst (LIBGCCJIT_ABI_16): New ABI tag.
* docs/topics/functions.rst: Add documentation for the
functions gcc_jit_function_get_return_type and
gcc_jit_function_get_param_count
* docs/topics/types.rst: Add documentation for the functions
gcc_jit_function_type_get_return_type,
gcc_jit_function_type_get_param_count,
gcc_jit_function_type_get_param_type,
gcc_jit_type_unqualified, gcc_jit_type_dyncast_array,
gcc_jit_type_is_bool,
gcc_jit_type_dyncast_function_ptr_type,
gcc_jit_type_is_integral, gcc_jit_type_is_pointer,
gcc_jit_type_dyncast_vector,
gcc_jit_vector_type_get_element_type,
gcc_jit_vector_type_get_num_units,
gcc_jit_struct_get_field, gcc_jit_type_is_struct,
and gcc_jit_struct_get_field_count
* libgccjit.c:
(gcc_jit_function_get_return_type,
gcc_jit_function_get_param_count,
gcc_jit_function_type_get_return_type,
gcc_jit_function_type_get_param_count,
gcc_jit_function_type_get_param_type, gcc_jit_type_unqualified,
gcc_jit_type_dyncast_array, gcc_jit_type_is_bool,
gcc_jit_type_dyncast_function_ptr_type, gcc_jit_type_is_integral,
gcc_jit_type_is_pointer, gcc_jit_type_dyncast_vector,
gcc_jit_vector_type_get_element_type,
gcc_jit_vector_type_get_num_units, gcc_jit_struct_get_field,
gcc_jit_type_is_struct, gcc_jit_struct_get_field_count): New
functions.
(struct gcc_jit_function_type, struct gcc_jit_vector_type):
New types.
* libgccjit.h:
(gcc_jit_function_get_return_type,
gcc_jit_function_get_param_count,
gcc_jit_function_type_get_return_type,
gcc_jit_function_type_get_param_count,
gcc_jit_function_type_get_param_type, gcc_jit_type_unqualified,
gcc_jit_type_dyncast_array, gcc_jit_type_is_bool,
gcc_jit_type_dyncast_function_ptr_type, gcc_jit_type_is_integral,
gcc_jit_type_is_pointer, gcc_jit_type_dyncast_vector,
gcc_jit_vector_type_get_element_type,
gcc_jit_vector_type_get_num_units, gcc_jit_struct_get_field,
gcc_jit_type_is_struct, gcc_jit_struct_get_field_count): New
function declarations.
(struct gcc_jit_function_type, struct gcc_jit_vector_type):
New types.
* jit-recording.h: New functions (is_struct and is_vector)
* libgccjit.map (LIBGCCJIT_ABI_16): New ABI tag.
gcc/testsuite/
PR target/96889
* jit.dg/all-non-failing-tests.h: Add test-reflection.c.
* jit.dg/test-reflection.c: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug jit/96889] Reflection API accessible from the jit C API
2020-09-02 0:52 [Bug jit/96889] New: Reflection API accessible from the jit C API bouanto at zoho dot com
2020-09-02 0:58 ` [Bug jit/96889] " bouanto at zoho dot com
2021-11-20 1:52 ` cvs-commit at gcc dot gnu.org
@ 2021-11-20 1:53 ` bouanto at zoho dot com
2 siblings, 0 replies; 4+ messages in thread
From: bouanto at zoho dot com @ 2021-11-20 1:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96889
Antoni <bouanto at zoho dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Antoni <bouanto at zoho dot com> ---
Fixed in master.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-20 1:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02 0:52 [Bug jit/96889] New: Reflection API accessible from the jit C API bouanto at zoho dot com
2020-09-02 0:58 ` [Bug jit/96889] " bouanto at zoho dot com
2021-11-20 1:52 ` cvs-commit at gcc dot gnu.org
2021-11-20 1:53 ` bouanto at zoho dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).