Re: [PATCH v2] bpf: Add support to eBPF atomic instructions

2021-10-25 Thread Andrew Pinski via Gcc-patches
On Mon, Oct 25, 2021 at 6:29 PM Guillermo E. Martinez via Gcc-patches wrote: > > Hello people, > > This patch v2 to add support for atomics operations in eBPF target > using the gcc built-in functions: > > __atomic__fetch > __atomic_fetch_ > > This new version restrict/enable the use of `add

[PATCH v2] bpf: Add support to eBPF atomic instructions

2021-10-25 Thread Guillermo E. Martinez via Gcc-patches
Hello people, This patch v2 to add support for atomics operations in eBPF target using the gcc built-in functions: __atomic__fetch __atomic_fetch_ This new version restrict/enable the use of `add + fetch' and the rest of atomic instructions using the -m[no-]atomics option to generate code