Re: [Dwarf-discuss] ISSUE: tensor types. V3

2023-04-23 Thread Metzger, Markus T via Dwarf-discuss
Hello Ben,

An array type that refers to a vector or matrix type, shall be
denoted with DW_AT_tensor whose integer constant, will specify the
kind of tensor it is. The default type of tensor shall be the kind
used by the vector registers in the target architecture.

Table 5.4: Tensor attribute values
--
Name  | Meaning
--
DW_TENSOR_default | Default encoding and semantics used by target
  | architecture's vector registers
DW_TENSOR_boolean | Boolean vectors map to vector mask registers.
DW_TENSOR_opencl  | OpenCL vector encoding and semantics
DW_TENSOR_neon| NEON vector encoding and semantics
DW_TENSOR_sve | SVE vector encoding and semantics
--

The width and when applicable the number of rows of the type
shall be specified as array dimensions. The type contained
within the tensor array type must be a DW_TAG_base_type entry.

I don’t think this should refer to h/w registers, at all.  It describes a 
source language type.
Looking at the CLANG table, they may allow different notation, e.g. OpenCL, and 
they seem
to allow different operations.

I’m also not clear what the default encoding and semantics of e.g. YMM 
registers are.

Regards,
Markus.

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de 
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


Re: [Dwarf-discuss] Regarding form x not understand by DWARF 2 code[details]

2023-04-23 Thread David Anderson via Dwarf-discuss

I forgot to mention that

https://www.prevanders.net/dwarf.h

contains #defines for all the
DW_FORM codes known to libdwarf.

David Anderson
--
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


Re: [Dwarf-discuss] Regarding form x not understand by DWARF 2 code

2023-04-23 Thread David Anderson via Dwarf-discuss

On 4/23/23 07:22, Jnanendra Dewan (C) via Dwarf-discuss wrote:

Hi Team,

While running Dwarf 2 code we are getting error “This form X not 
understoodfurther procesing not possible.”


So we have seen that here form is unknown. We have handled it inside the 
code. But we are getting multiple form numbers as not not understood.


Kindly let us know what are the forms we can get as unknown and how to 
handle it in DWRF 2 ?


In DWARF2-DWARF5 if the code reading an object finds a FORM that is 
unknown it's impossible for the reader to ignore this.

The object file DWARF really does become unreadable.

You don't make clear what tool you are using to read DWARF.

Nor what tool created the DWARF information.

Nor does your quoted text above seem to be a copy-paste
of the actual error text.

If you could supply a little more information perhaps
someone could help.

Tools that can help diagnose this are:

readelf  (GNU binutils)

dwarfdump (git clone https://github.com/davea42/libdwarf-code)

David Anderson
(author of dwarfdump and libdwarf)

--
IANAL, but I watch actors play lawyers on high-definition television.

--
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


[Dwarf-discuss] Regarding form x not understand by DWARF 2 code

2023-04-23 Thread Jnanendra Dewan (C) via Dwarf-discuss
Hi Team,

While running Dwarf 2 code we are getting error "This form X not 
understoodfurther procesing not possible."
So we have seen that here form is unknown. We have handled it inside the code. 
But we are getting multiple form numbers as not not understood.
Kindly let us know what are the forms we can get as unknown and how to handle 
it in DWRF 2 ?

Regards
Jnanendra
-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss