<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div style="font-family:Arial;">Thanks Paul! This was our conclusion as well so it's encouraging that you feel similarly. The next question is whether these are being cast to int/unsigned somewhere. That will be fun to track down :)<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">On Mon, Jul 16, 2018, at 1:17 PM, <a style="text-decoration: underline; color: blue;" href="mailto:paul.robinson@sony.com">paul.robinson@sony.com</a> wrote:<br></div>
<blockquote type="cite"><div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">DIFlags is internal to the compiler, not directly determined by the DWARF standard.  It mostly happens to be full of data that gets turned into DWARF flags.</span></span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">I suspect it's nailed down to 32 bits mainly because we haven't needed more, so far.  Also MSVC historically failed to handle enum values wider than 32 bits;
 I don't know whether that's still true.</span></span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">--paulr</span></span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><a name="_MailEndCompose"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"> </span></span></span></a></span></span><br></p><div style="border-top-width:initial;border-right-width:initial;border-bottom-width:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-image-source:initial;border-image-slice:initial;border-image-width:initial;border-image-outset:initial;border-image-repeat:initial;border-left-width:1.5pt;border-left-style:solid;border-left-color:blue;padding-top:0in;padding-right:0in;padding-bottom:0in;padding-left:4pt;"><div><div style="border-right-width:initial;border-bottom-width:initial;border-left-width:initial;border-right-style:none;border-bottom-style:none;border-left-style:none;border-right-color:initial;border-bottom-color:initial;border-left-color:initial;border-image-source:initial;border-image-slice:initial;border-image-width:initial;border-image-outset:initial;border-image-repeat:initial;border-top-width:1pt;border-top-style:solid;border-top-color:rgb(181, 196, 223);padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;"><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><b><span class="font" style="font-family:Tahoma, sans-serif"><span class="size" style="font-size:10pt">From:</span></span></b><span class="font" style="font-family:Tahoma, sans-serif"><span class="size" style="font-size:10pt"> llvm-dev [mailto:llvm-dev-bounces@lists.llvm.org] <b>On Behalf Of </b>Sohail Somani (Fizz Buzz Inc.) via llvm-dev<br> <b>Sent:</b> Monday, July 16, 2018 8:57 AM<br> <b>To:</b> llvm-dev@lists.llvm.org<br> <b>Subject:</b> [llvm-dev] sizeof(DIFlags)</span></span></span></span></p></div>
</div>
<p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"> </span></span><br></p><div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">Hi list,</span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">Is there a standards based reason why the DIFlags enum is set to uint32_t[1]? I am sure my DWARF-std-reading-fu is not up to snuff and so I cannot seem to find it.</span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">The reason I ask is that we are running out of space for our own DIFlags and would like to nail this down before deciding on an approach.</span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">Thanks!</span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">Sohail </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif">[1] The code in question: <a style="text-decoration: underline; color: blue;" href="https://github.com/llvm-mirror/llvm/blob/master/include/llvm/IR/DebugInfoMetadata.h#L194">https://github.com/llvm-mirror/llvm/blob/master/include/llvm/IR/DebugInfoMetadata.h#L194</a></span></span></span><br></p></div>
<div><div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"> </span></span><br></p></div>
</div>
<div><p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:"Times New Roman", serif"><span class="size" style="font-size:12pt"><span class="font" style="font-family:Arial, sans-serif"> </span></span></span><br></p></div>
</div>
</div>
</blockquote><div style="font-family:Arial;"><br></div>
</body>
</html>