Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Keith Walker via Dwarf-discuss
Ben, Comment about DW_AT_variable_vector_width below. Keith > -Original Message- > From: Dwarf-discuss bounces+keith.walker=arm@lists.dwarfstd.org> On Behalf Of Ben > Woodard via Dwarf-discuss > Sent: Thursday, April 6, 2023 3:17 AM > To: dwarf-discuss@lists.dwarfstd.org > Subject:

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Jakub Jelinek via Dwarf-discuss
On Wed, Apr 05, 2023 at 07:16:35PM -0700, Ben Woodard via Dwarf-discuss wrote: > To distinguish these vector types from regular C arrays, GCC's DWARF > describes a vector type as an array with the DW_AT_GNU_vector > attribute.  Clang also supports the GCC vector extensions, and > describes the vect

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Metzger, Markus T via Dwarf-discuss
Hello Ben, >This is version 2 of my vector types submission. > >Differences from V1: >- Made the submission about vector types rather than vector registers. >- Substituted Pedro's much better introduction for my own with minor edits. >- Removed the modifications to the DWARF Stack. The AMD people

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Metzger, Markus T via Dwarf-discuss
Hello Jakub, Ben, >On Wed, Apr 05, 2023 at 07:16:35PM -0700, Ben Woodard via Dwarf-discuss wrote: >> To distinguish these vector types from regular C arrays, GCC's DWARF >> describes a vector type as an array with the DW_AT_GNU_vector >> attribute.  Clang also supports the GCC vector extensions, a

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Jakub Jelinek via Dwarf-discuss
On Thu, Apr 06, 2023 at 10:47:02AM +, Metzger, Markus T wrote: > >I don't think this is a good idea, we should go for > >DW_TAG_vector_type > >instead IMHO. DW_AT_GNU_vector used to be a good idea as an extension, > >as mentioned the (generic) vector types are in many ways similar to arrays, >

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Ron Brender via Dwarf-discuss
Various thoughts... > Not sure if supporting dimensions in the way which is done > for arrays is needed (I believe vector types are always one-dimensional > indexed from 0). "always"? There are many element by element operations on multidimensional arrays that might benefit from use of vector har

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Jakub Jelinek via Dwarf-discuss
On Thu, Apr 06, 2023 at 07:52:32AM -0400, Ron Brender wrote: > Various thoughts... > > > Not sure if supporting dimensions in the way which is done > > for arrays is needed (I believe vector types are always one-dimensional > > indexed from 0). > > "always"? There are many element by element oper

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Ben Woodard via Dwarf-discuss
On 4/6/23 03:16, Jakub Jelinek wrote: On Wed, Apr 05, 2023 at 07:16:35PM -0700, Ben Woodard via Dwarf-discuss wrote: To distinguish these vector types from regular C arrays, GCC's DWARF describes a vector type as an array with the DW_AT_GNU_vector attribute.  Clang also supports the GCC vector

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Ben Woodard via Dwarf-discuss
On 4/6/23 03:47, Metzger, Markus T wrote: Hello Jakub, Ben, On Wed, Apr 05, 2023 at 07:16:35PM -0700, Ben Woodard via Dwarf-discuss wrote: To distinguish these vector types from regular C arrays, GCC's DWARF describes a vector type as an array with the DW_AT_GNU_vector attribute.  Clang also

Re: [Dwarf-discuss] ISSUE: vector types. V2

2023-04-06 Thread Ben Woodard via Dwarf-discuss
I believe that all three points that you bring up here are correct and I will fix them in V3 of my proposal. On 4/6/23 03:44, Metzger, Markus T wrote: Hello Ben, This is version 2 of my vector types submission. Differences from V1: - Made the submission about vector types rather than vecto