<div dir="ltr"><div><div><div>To date, I have not received any responses on this. I'm forwarding this message again to see if I can get some responses regarding this __float128 patch. I don't want to break anyone with this commit so I hope to discuss this with target maintainers before I commit.<br></div>I am sending the message to the target maintainers listed in CODE_OWNERS.TXT, so if I've sent it to you erroneously, I apologize.<br><br></div>Sincerely,<br></div>Nemanja Ivanovic<br><div><div><div><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Nemanja Ivanovic</b> <span dir="ltr"><<a href="mailto:nemanja.i.ibm@gmail.com">nemanja.i.ibm@gmail.com</a>></span><br>Date: Fri, Mar 25, 2016 at 5:09 PM<br>Subject: Target support for __float128 in the front end<br>To: <a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br><br><br><div dir="ltr"><div><div><div><div><div><div><div><div>Hi everyone,<br><br></div>I plan to commit the changeset listed in the Phabricator review 15120 (<a href="http://reviews.llvm.org/D15120" target="_blank">http://reviews.llvm.org/D15120</a>) which will impact the way Clang treats the <span style="font-family:monospace,monospace">__float128</span> type, keyword, etc.<br><br></div>Namely, we currently have a workaround that allows Clang to parse some C++ headers (such as type_traits) since they contain template specializations for <span style="font-family:monospace,monospace">__float128</span>. However, this patch establishes that type as a builtin type, enables the keyword and allows for literals of the type. Since not all targets have support for what that type is supposed to represent (i.e. a 128-bit floating point type with IEEE quad-precision semantics), the default behaviour for all targets is to not enable the type.<br><br></div><div><b>The problem:</b><br></div>This puts targets on which gcc has <span style="font-family:monospace,monospace">__float128</span> support in a situation where they may not be able to compile programs that include the aforementioned headers. Namely, if the configuration defines <span style="font-family:monospace,monospace">_GLIBCXX_USE_FLOAT128</span> and the <span style="font-family:monospace,monospace">__float128</span> type is not enabled in Clang, anything that includes the header will not compile.<br><br></div><b>The solution:</b><br></div>Any target that needs to enable support for this type can do so by overriding <span style="font-family:monospace,monospace">TargetInfo::hasFloat128Type()</span>. When doing so, there may be a small number of test cases that needs to change if they rely on this support not being enabled.<br><br></div>I would appreciate it if you would let me know if your target needs to have this support enabled and if you would be OK with me committing this patch. As much as I would like to take on as much of this work as possible, please understand that I do not have access to hardware to allow me to test any impact to your target if I were to make the change myself (of course, I'm referring to things that can't be caught by the Clang test cases).<br><br></div>Thank you,<br><br></div>Nemanja<br></div>
</div><br></div></div></div></div></div>