<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="">Hi Avinash,<div class=""><br class=""></div><div class="">Could you give more details on what you are trying to achieve?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-Quentin<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 12, 2015, at 11:52 PM, Avinash Bole <<a href="mailto:boleavinash@gmail.com" class="">boleavinash@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>Im trying to allocate registers for given code..,and my requirement is to allocate a specific register to a given variable( ex:  int a ; // I want to allocate register R1 to a). <br class=""><br class=""></div>I think one way to do this is by writing an llvm pass as described <a href="http://llvm.org/docs/WritingAnLLVMPass.html#the-machinefunctionpass-class" class="">here</a>. But im not sure it will work..,Another way i thought of is to change Allocation order in "AltOrder" in "xxxRegisterInfo.td". This worked for 1 variable..,but if i have two or more variables and more registers.,i cant get the exact register i want for the exact variable. <br class=""><br class=""></div>Please suggest me a way to do this.<br class=""></div><div class="">Also..,Is there a way to check contents of each "bit" in a register?<br class=""></div><div class=""><br class=""></div>Thanks,<br class=""></div>Avinash<br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:LLVMdev@cs.uiuc.edu" class="">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" class="">http://llvm.cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br class=""></div></blockquote></div><br class=""></div></body></html>