<div>[I meant to reply-all, sorry]</div><div><br></div><div>> >> Index: lib/CodeGen/CGDebugInfo.cpp</div><div>> >> ===================================================================</div><div>> >> --- lib/CodeGen/CGDebugInfo.cpp       (revision 141016)</div>
<div>> >> +++ lib/CodeGen/CGDebugInfo.cpp       (working copy)</div><div>> >> @@ -1418,6 +1418,13 @@</div><div>> >>                                     0, 0, Elements);</div><div>> >>  }</div>
<div>> >></div><div>> >> +llvm::DIType CGDebugInfo::CreateType(const AtomicType *Ty,</div><div>> >> +                                     llvm::DIFile U) {</div><div>> >> +  // Ignore the atomic wrapping</div>
<div>> >> +  // FIXME: What is the correct representation?</div><div>> ></div><div>> > Cary Coutant suggests adding a DW_TAG_atomic_type node with a child</div><div>> > node pointing at the value type, similar to DW_TAG_const_type, etc.</div>
<div>> > Then extra alignment, size, etc. information can be attached to the</div><div>> > DW_TAG_atomic_type node. He's going to bring this up with the Dwarf</div><div>> > committee and let us know what they say.</div>
<div>></div><div>> Okay; please keep me up-to-date.</div><div><br></div><div>I've started a discussion in the DWARF workgroup; so far it seems that</div><div>no one else has started to address this issue. My tentative proposal</div>
<div>to add DW_TAG_atomic_type, similar to DW_TAG_volatile, DW_TAG_const,</div><div>et al., seems to the most natural approach. I'll wait a bit for more</div><div>discussion, and then write up a real proposal and see if we can</div>
<div>reserve a TAG value that you can use. (For now, if you want, the next</div><div>available DW_TAG value is 0x44, so that's the most likely value.) If</div><div>the atomic type has different size from the base type that it</div>
<div>modifies, I'm going to suggest that DW_AT_byte_size attribute on the</div><div>DW_TAG_atomic_type would be appropriate.</div><div><br></div><div>If you have any other questions about the DWARF representation, please</div>
<div>let me know so I can make sure they're all covered in the DWARF</div><div>proposal.</div><div><br></div><div>-cary</div><div><br></div>