<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;"><br><div><div>On Apr 29, 2013, at 10:08 PM, kavitha <<a href="mailto:kavitha.madhu27@gmail.com">kavitha.madhu27@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hi,<br>I wanted to write a new register allocation algorithm. I wrote it the same way RegAllocFast has been written and registered it. I added it to ForceCodegenLinking struct as well. But after build, it is not listed in llc --help. I tried to change the registered name of greedy algorithm to something else and that doesnt seem to be reflecting in llc help either.<br><br>Am i supposed to build llvm completely again? Or am i missing something?<br></div></blockquote><div><br></div><div>RegisterRegAlloc's static initiailizer should  add the command line option...</div><div><br></div><div>static RegisterRegAlloc greedyRegAlloc("greedy", "greedy register allocator",</div><div>                                       createGreedyRegisterAllocator);</div><div><br></div><div>make clean is often your friend.</div><div><br></div><div>-Andy</div></div></body></html>