<div dir="ltr">On 9 November 2013 21:57, edA-qa mort-ora-y <span dir="ltr"><<a href="mailto:eda-qa@disemia.com" target="_blank">eda-qa@disemia.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">How many such messages would be generated? If there are only a few,</span><br>
</div>
perhaps it isn't worth it, but if there could be hundreds of them, then<br>
perhaps it is worth it.<br></blockquote><div><br></div><div>You can already use the debug messages via opt if you want a lot of messages, but I'm thinking about something that is condensed into a fixed-format, so that front-ends don't need changing when the debug messages change (content, order, etc).</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Could a front-end reasonably transform these warnings into something<br>
meaningful to the programmer?</blockquote><div><br></div><div>This is my main idea, yes.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Thinking of my own languages, or even C++,<br>
it seems like it might be impossible to translate a lower-level warning.<br>
Quite often the warnings are about things the programmer can't even<br>
control in the high-level language.<br></blockquote><div></div></div><br></div><div class="gmail_extra">This is not my experience. At least in the loop vectorizer, some debug messages hint into adding specific keywords, moving loop invariant code out, changing the induction ranges, etc, which can all be done in C. On a higher level language, I agree, it won't help the user much, but it could help the language/compiler developer to make a better job at lowering to IR.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>