<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Same here: we could benefit from a good cleanup.<div class="">These predicates were designed with a model in mind, and the problem Sanjoy uncovered shows how this model is broken. I suspect that comments like this one: "Using this method outside of the code generators is almost always a mistake" discouraging the use of "isXXXForLinker" are reminiscent of the model.</div><div class="">Ideally we should rethink the set of abstract properties that are relevant, how they map to linkage types, and then re-define the predicates (and revisit their uses).</div><div class=""><br class=""></div><div class="">-- </div><div class="">Mehdi</div><div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 30, 2016, at 6:56 PM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com" class="">chandlerc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I would really like to see fewer predicates here. It is too hard to figure out the right one.<div class=""><br class=""></div><div class="">isStrongDefinitionForLinker doesn't make a lot of sense to me as the spelling of the predicate though because it doesn't tell me, the optimization author, what it means.</div><div class=""><br class=""></div><div class="">Note that I think mayBeOverridden will become irrelevant with this change, and so I would look closely at removing that or re-using it.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Mar 30, 2016 at 6:52 PM Sanjoy Das via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">sanjoy added a comment.<br class="">
<br class="">
So at this point both @joker.eph and @rnk would rather have this path be in terms of `isStrongDefinitionForLinker`; so I'll do that rename tomorrow unless someone objects before then.<br class="">
<br class="">
<br class="">
<a href="http://reviews.llvm.org/D18634" rel="noreferrer" target="_blank" class="">http://reviews.llvm.org/D18634</a><br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
llvm-commits mailing list<br class="">
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="">llvm-commits@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></body></html>