<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Feb 26, 2015 at 11:49 PM David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 26, 2015 at 11:45 PM, Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
> On 2015 Feb 26, at 12:32, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Wed, Feb 25, 2015 at 5:38 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>> wrote:<br>
><br>
> > On 2015 Feb 25, at 16:00, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:<br>
> ><br>
> > Author: echristo<br>
> > Date: Wed Feb 25 18:00:35 2015<br>
> > New Revision: 230585<br>
> ><br>
> > URL: <a href="http://llvm.org/viewvc/llvm-project?rev=230585&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=230585&view=rev</a><br>
> > Log:<br>
> > Remove a FIXME.<br>
> ><br>
> > Explanation: This function is in TargetLowering because it uses<br>
> > RegClassForVT which would need to be moved to TargetRegisterInfo<br>
> > and would necessitate moving isTypeLegal over as well - a massive<br>
> > change that would just require TargetLowering having a TargetRegisterInfo<br>
> > class member that it would use.<br>
><br>
> Should this be in a doxygen comment in the header?<br>
><br>
><br>
> Possibly not doxygen, but I can put it above the actual function?<br>
><br>
> Thoughts?<br>
<br>
</span>Either way seems fine to me -- maybe the comment isn't even useful.<br>
It just occurred to me that someone might ask the same question in<br>
the future, and `git blame` doesn't help much on missing lines ;).<br></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br>*nod* I had the same thought<br><br>(& I'd just go with a non-doxy comment wherever the FIXME was, since that's where it occurred to someone to wonder why it was the way it was)<br> </div></div></div></div></blockquote><div><br></div><div>I added it over the definition in TargetLoweringBase so that people on other targets that have the same question can find the answer too without looking at the X86 backend :)</div><div><br></div><div>r231111</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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><div><br>
><br>
> -eric<br>
><br>
> ><br>
> > Modified:<br>
> >    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp<br>
> ><br>
> > Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp<br>
> > URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=230585&r1=230584&r2=230585&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=230585&r1=230584&r2=230585&view=diff</a><br>
> > ==============================================================================<br>
> > --- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)<br>
> > +++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Feb 25 18:00:35 2015<br>
> > @@ -1930,7 +1930,6 @@ getPICJumpTableRelocBaseExpr(const Machi<br>
> >   return MCSymbolRefExpr::Create(MF->getPICBaseSymbol(), Ctx);<br>
> > }<br>
> ><br>
> > -// FIXME: Why this routine is here? Move to RegInfo!<br>
> > std::pair<const TargetRegisterClass *, uint8_t><br>
> > X86TargetLowering::findRepresentativeClass(const TargetRegisterInfo *TRI,<br>
> >                                            MVT VT) const {<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > llvm-commits mailing list<br>
> > <a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
> > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div></div></div></blockquote></div></div>