[PATCH v4] btf: Add support to BTF_KIND_ENUM64 type

2022-10-19 Thread Guillermo E. Martinez via Gcc-patches
Hello, The following is patch v4 to update BTF/CTF backend supporting BTF_KIND_ENUM64 type. Changes from v3: + Remove `ctf_enum_binfo' structure. + Remove -m{little,big}-endian from dg-options in testcase. Comments will be welcomed and appreciated!, Kind regards, guillermo -- BTF supports

Re: [PATCH v3] btf: Add support to BTF_KIND_ENUM64 type

2022-10-18 Thread Guillermo E. Martinez via Gcc-patches
On 10/18/22 16:40, Indu Bhagat wrote: Hi Guillermo, Hi Indu, On 10/14/22 8:55 PM, Guillermo E. Martinez wrote: Hello, The following is patch v3 to update BTF/CTF backend supporting BTF_KIND_ENUM64 type. Changes from v2:    + Add a new `dtd_enum_unsigned' field in `ctf_dtdef' to indicat

[PATCH v3] btf: Add support to BTF_KIND_ENUM64 type

2022-10-14 Thread Guillermo E. Martinez via Gcc-patches
Hello, The following is patch v3 to update BTF/CTF backend supporting BTF_KIND_ENUM64 type. Changes from v2: + Add a new `dtd_enum_unsigned' field in `ctf_dtdef' to indicate signedness of the enum type. + Fix endianness for representing BTF enum 64-bits enumerators. + Add {little,big}-e

Re: [PATCH v2] btf: Add support to BTF_KIND_ENUM64 type

2022-10-14 Thread Guillermo E. Martinez via Gcc-patches
On 10/11/22 13:55, Indu Bhagat wrote: Hi Guillermo, Hi Indu, On 10/3/22 7:39 AM, Guillermo E. Martinez via Gcc-patches wrote: diff --git a/gcc/ctfc.cc b/gcc/ctfc.cc index 9773358a475..253c36b6a0a 100644 --- a/gcc/ctfc.cc +++ b/gcc/ctfc.cc @@ -604,6 +604,7 @@ ctf_add_enum

Re: [PATCH v2] btf: Add support to BTF_KIND_ENUM64 type

2022-10-03 Thread Guillermo E. Martinez via Gcc-patches
On 9/29/22 17:35, Indu Bhagat wrote: On 9/28/22 2:15 PM, Guillermo E. Martinez via Gcc-patches wrote: Hello GCC team, The following is patch v2 to update BTF/CTF backend supporting BTF_KIND_ENUM64 type. Changes from v1:    + Fix typo in commit message.    + Fix changelog entries. Comments

[PATCH v2] btf: Add support to BTF_KIND_ENUM64 type

2022-09-28 Thread Guillermo E. Martinez via Gcc-patches
Hello GCC team, The following is patch v2 to update BTF/CTF backend supporting BTF_KIND_ENUM64 type. Changes from v1: + Fix typo in commit message. + Fix changelog entries. Comments will be welcomed and appreciated!, Kind regards, guillermo -- BTF supports 64-bits enumerators with followin

Re: [PATCH] btf: Add support to BTF_KIND_ENUM64 type

2022-09-28 Thread Guillermo E. Martinez via Gcc-patches
ctfc/dwarf2ctf. OK. Thanks for your comments!. Thanks! David On 8/29/22 14:11, Guillermo E. Martinez via Gcc-patches wrote: Hello GCC team, The following patch update BTF/CTF backend to support BTF_KIND_ENUM64 type. Comments will be welcomed and appreciated!, Kind regards, guillermo -- BTF

Re: [PATCH] btf: Add support to BTF_KIND_ENUM64 type

2022-09-20 Thread Guillermo E. Martinez via Gcc-patches
ping On 8/29/22 16:11, Guillermo E. Martinez wrote: Hello GCC team, The following patch update BTF/CTF backend to support BTF_KIND_ENUM64 type. Comments will be welcomed and appreciated!, Kind regards, guillermo -- BTF supports 64-bits enumerators with following encoding: struct btf_typ

[PATCH] btf: Add support to BTF_KIND_ENUM64 type

2022-08-29 Thread Guillermo E. Martinez via Gcc-patches
Hello GCC team, The following patch update BTF/CTF backend to support BTF_KIND_ENUM64 type. Comments will be welcomed and appreciated!, Kind regards, guillermo -- BTF supports 64-bits enumerators with following encoding: struct btf_type: name_off: 0 or offset to a valid C identifier

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

2021-10-26 Thread Guillermo E. Martinez via Gcc-patches
Apologies, I forgot update the ChangeLog(s) Kind Regards, Guillermo eBPF add support for atomic instructions, the following gcc built-in functions are implemented for bpf target using both: 32 and 64 bits data types: __atomic_fetch_add __atomic_fetch_sub __atomic_fetc

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

2021-10-26 Thread Guillermo E. Martinez via Gcc-patches
Hello people, This patch v3 to add support for atomics instructions in eBPF target, the rtl for eBPF atomics was splitted in a new file: atomic.md, Thanks Andrew for the comments, Kind Regards, Guillermo eBPF add support for atomic instructions, the following gcc built-in functions are

[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 ru

[PATCH] bpf: Add support to eBPF atomic operations

2021-09-09 Thread Guillermo E. Martinez via Gcc-patches
Hello people, This patch add support for atomics operations in eBPF target using the gcc built-in functions: __atomic__fetch __atomic_fetch_ Please if you have comments, don't hesitate to let me know. Kinds Regards, Guillermo eBPF add support for basic atomic operations, the following gcc