<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Nisal,<div class=""><br class=""></div><div class="">We didn’t have any use case for this kind of things, so no, we don’t have anything to do that.</div><div class=""><br class=""></div><div class="">What you could do is split the live-ranges you are interested in in the place you care and use <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">TargetRegisterInfo::getRegAllocationHints </span>to bias the allocation the way you want.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-Quentin<br class=""><div><blockquote type="cite" class=""><div class="">On Sep 5, 2017, at 6:09 AM, Nisal Menuka via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class="">Is it possible to annotate basic blocks in order to manipulate them in<br class="">LLVM backend with fine granularity?<br class=""><br class=""> Eg: I want to reserve registers for some parts of the code, therefore<br class="">need to stop register allocator from using some registers only in<br class="">specific basic blocks.<br class=""><br class="">Thanks<br class="">Nisal<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>