[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wish: gcc_jit_type_get_atomic
On 05/12/2016 10:06 PM, David Malcolm wrote:
On Thu, 2016-05-12 at 07:48 +0200, Basile Starynkevitch wrote:
Hello all,
GCC JIT has gcc_jit_type_get_volatile to support the volatile
qualifier.
But shouldn't it also have a gcc_jit_type_get_atomic to support the
C11
_Atomic qualifier?
http://en.cppreference.com/w/c/atomic
[...]
Client code might be able to implement it without explicit libgccjit support by generating calls to the relevant builtins "by hand".
Then perhaps at least that should be a relevant example in the
documentation about how to
actually use GCC builtins in GCCJIT. Notice that
gcc_jit_context_get_builtin_function is barely document, and it would be
nice to have, in
https://gcc.gnu.org/onlinedocs/jit/topics/functions.html notably, a
small example (which could be some atomic thing).
Cheers.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***