-
Notifications
You must be signed in to change notification settings - Fork 0
libgccjit: Support more target builtin types #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
4ea0377
to
66ac520
Compare
4250712
to
0ab4b82
Compare
0ab4b82
to
7ee7aa7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be gcc_jit_context_set_abort_on_unsupported_target_builtin
and be a property of the context, rather than a global; you can get the gcc::jit::active_playback_ctxt
and from that the corresponding recording ctxt.
This also adds option to abort on unsupported type in order to be able to detect new unsupported types more easily. gcc/jit/ChangeLog: PR jit/117886 * dummy-frontend.cc: Support some missing types. * jit-playback.h (get_abort_on_unsupported_target_builtin): New function. * jit-recording.cc (get_abort_on_unsupported_target_builtin, set_abort_on_unsupported_target_builtin): New functions. * jit-recording.h (get_abort_on_unsupported_target_builtin, set_abort_on_unsupported_target_builtin): New functions. (m_abort_on_unsupported_target_builtin): New field. * libgccjit.cc (gcc_jit_context_set_abort_on_unsupported_target_builtin): New function. * libgccjit.h (gcc_jit_context_set_abort_on_unsupported_target_builtin): New function. * libgccjit.map (LIBGCCJIT_ABI_35): New ABI tag. * docs/topics/compatibility.rst (LIBGCCJIT_ABI_35): New ABI tag. * docs/topics/contexts.rst: Document new function.
I edited the patch to do this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updated patch. Looks good to me. Might require Darwin-specific updates (the .map format doesn't work there, IIRC).
Can this wait until GCC 16, or is this important to rustc_codegen_gcc?
This also adds option to abort on unsupported type in order to be able
to detect new unsupported types more easily.
gcc/jit/ChangeLog:
PR jit/117886
* dummy-frontend.cc (jit_abort_on_unsupported_target_builtin):
New variable
* libgccjit.cc (jit_abort_on_unsupported_target_builtin): New
variable.
(gcc_jit_set_abort_on_unsupported_target_builtin): New function.
* libgccjit.h (gcc_jit_set_abort_on_unsupported_target_builtin):
New function.
* libgccjit.map (LIBGCCJIT_ABI_35): New ABI tag.
* docs/topics/compatibility.rst (LIBGCCJIT_ABI_35): New ABI tag.
* docs/topics/contexts.rst: Document new function.