FWIW this is part of a much larger work in progress. I'm going to start adding some infrastructure for dumping fission and then actually add fission output and then the tests will end up testing the dumper and the output.<div>
<br></div><div>Just before someone harasses me about testcases.</div><div><br></div><div>-eric</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 3:04 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: echristo<br>
Date: Fri Nov 16 17:04:31 2012<br>
New Revision: 168218<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=168218&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=168218&view=rev</a><br>
Log:<br>
Add constant definitions for fission dwarf attributes, forms, etc.<br>
<br>
Modified:<br>
llvm/trunk/include/llvm/Support/Dwarf.h<br>
<br>
Modified: llvm/trunk/include/llvm/Support/Dwarf.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Dwarf.h?rev=168218&r1=168217&r2=168218&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Dwarf.h?rev=168218&r1=168217&r2=168218&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/Support/Dwarf.h (original)<br>
+++ llvm/trunk/include/llvm/Support/Dwarf.h Fri Nov 16 17:04:31 2012<br>
@@ -231,6 +231,10 @@<br>
DW_AT_const_expr = 0x6c,<br>
DW_AT_enum_class = 0x6d,<br>
DW_AT_linkage_name = 0x6e,<br>
+<br>
+ DW_AT_lo_user = 0x2000,<br>
+ DW_AT_hi_user = 0x3fff,<br>
+<br>
DW_AT_MIPS_loop_begin = 0x2002,<br>
DW_AT_MIPS_tail_loop_begin = 0x2003,<br>
DW_AT_MIPS_epilog_begin = 0x2004,<br>
@@ -246,6 +250,12 @@<br>
DW_AT_MIPS_ptr_dopetype = 0x200e,<br>
DW_AT_MIPS_allocatable_dopetype = 0x200f,<br>
DW_AT_MIPS_assumed_shape_dopetype = 0x2010,<br>
+<br>
+ // This one appears to have only been implemented by Open64 for<br>
+ // fortran and may conflict with other extensions.<br>
+ DW_AT_MIPS_assumed_size = 0x2011,<br>
+<br>
+ // GNU extensions<br>
DW_AT_sf_names = 0x2101,<br>
DW_AT_src_info = 0x2102,<br>
DW_AT_mac_info = 0x2103,<br>
@@ -254,9 +264,14 @@<br>
DW_AT_body_end = 0x2106,<br>
DW_AT_GNU_vector = 0x2107,<br>
DW_AT_GNU_template_name = 0x2110,<br>
- DW_AT_MIPS_assumed_size = 0x2011,<br>
- DW_AT_lo_user = 0x2000,<br>
- DW_AT_hi_user = 0x3fff,<br>
+<br>
+ // Extensions for Fission proposal.<br>
+ DW_AT_GNU_dwo_name = 0x2130,<br>
+ DW_AT_GNU_dwo_id = 0x2131,<br>
+ DW_AT_GNU_ranges_base = 0x2132,<br>
+ DW_AT_GNU_addr_base = 0x2133,<br>
+ DW_AT_GNU_pubnames = 0x2134,<br>
+ DW_AT_GNU_pubtypes = 0x2135,<br>
<br>
// Apple extensions.<br>
DW_AT_APPLE_optimized = 0x3fe1,<br>
@@ -300,6 +315,10 @@<br>
DW_FORM_flag_present = 0x19,<br>
DW_FORM_ref_sig8 = 0x20,<br>
<br>
+ // Extensions for Fission proposal<br>
+ DW_FORM_GNU_addr_index = 0x1f01,<br>
+ DW_FORM_GNU_str_index = 0x1f02,<br>
+<br>
// Operation encodings<br>
DW_OP_addr = 0x03,<br>
DW_OP_deref = 0x06,<br>
@@ -458,6 +477,10 @@<br>
DW_OP_lo_user = 0xe0,<br>
DW_OP_hi_user = 0xff,<br>
<br>
+ // Extensions for Fission proposal.<br>
+ DW_OP_GNU_addr_index = 0xfb,<br>
+ DW_OP_GNU_const_index = 0xfc,<br>
+<br>
// Encoding attribute values<br>
DW_ATE_address = 0x01,<br>
DW_ATE_boolean = 0x02,<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>