<div dir="ltr">Hi Nate,<div><br></div><div>PBQP hasn't received a lot of attention recently, but that's due to the odd combination of (a) it being fairly robust and isolated (and so not much of a maintenance burden) and (b) it having few users. </div><div><br></div><div>I think you should feel free to use it -- I don't think it's going away any time soon. Plus, the more users it has the more interested people may be in improving it further.</div><div><br></div><div>If you do encounter any bugs in it please file a bug on <a href="http://bugs.llvm.org">bugs.llvm.org</a> and CC me. In my experience the algorithm is simple enough that fixes are usually fairly straightforward.</div><div><br></div><div>Cheers,</div><div>Lang.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 9:19 PM, Quentin Colombet via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+Lang<br>
<br>
Hi Nate,<br>
<span class=""><br>
> On Oct 5, 2017, at 2:41 PM, Nate Voorhies via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I was wondering about whether the PBQP register allocator is likely to be maintained in the future.  It's proving to be a nice way to encode some instruction encoding constraints for an out-of-tree backend we have, but there's concern about it being abandoned or bitrotting in the future.<br>
<br>
</span>The PBQP allocator is not going away and in particular Lang actively maintains it when need be.<br>
<span class=""><br>
><br>
> Also, if PBQP is likely to lapse out of regular maintenance in the future, is there a simple way to express constraints on allocated registers (such as sharing an encoding, despite being in different register classes) chosen for a particular instruction in the Greedy allocator?<br>
<br>
</span>You can use the hint mechanism to express your encoding constraints based on what is already allocated. See TargetRegisterInfo::<wbr>getRegAllocationHints.<br>
<br>
Cheers,<br>
-Quentin<br>
<br>
><br>
> Thanks!<br>
> ______________________________<wbr>_________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>