[llvm-dev] Manipulate Register allocation in basic block level
Quentin Colombet via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 8 14:09:52 PDT 2017
Hi Nisal,
We didn’t have any use case for this kind of things, so no, we don’t have anything to do that.
What you could do is split the live-ranges you are interested in in the place you care and use TargetRegisterInfo::getRegAllocationHints to bias the allocation the way you want.
Cheers,
-Quentin
> On Sep 5, 2017, at 6:09 AM, Nisal Menuka via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi,
> Is it possible to annotate basic blocks in order to manipulate them in
> LLVM backend with fine granularity?
>
> Eg: I want to reserve registers for some parts of the code, therefore
> need to stop register allocator from using some registers only in
> specific basic blocks.
>
> Thanks
> Nisal
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170908/bda3b0f8/attachment.html>
More information about the llvm-dev
mailing list