<div>Hi!</div>
<div> </div>
<div>I've did what Jim Laskey wrote but llc didn't reckognize my regalloc option.</div>
<div> </div>
<div>So I moved my allocator implementation into seperate folder within CodeGen and wrote separate makefile for it (like in "Writing an LLVM pass" tutorial). But when I run "make" from LLVMOBJDIR it doesn't enter the RegAlloc directory and when linking llc an error like "createGraphColoringRegAlloc not defined" occurs.
</div>
<div> </div>
<div>What am I doing wrong? :)<br> </div>
<div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Chris Lattner</b> <<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, 3 Aug 2006, Jim Laskey wrote:<br>> To force the load/linking of your register allocator into the llc/lli tools,
<br>> add your create function's global declaration to "Passes.h" and add a<br>> "pseudo" call line to "llvm/Codegen/LinkAllCodegenComponents.h" .<br><br>Another note: with this new functionality you should be able to
<br>dynamically load register allocators.  Build your register allocator into<br>a dynamic library, like this:<br><a href="http://llvm.org/docs/WritingAnLLVMPass.html#makefile">http://llvm.org/docs/WritingAnLLVMPass.html#makefile
</a><br><br>They you should be able to use:<br><br>llc -load yourregalloc.so -regalloc=yours ...<br><br>-Chris</blockquote>
<div> </div>
<div>BTW, do you know what the extension cygwin uses instead of ".so"?</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Tony.</div>
<p>-- <br>Nae king! Nae quin! Nae laird! Nae master! We willnae be fooled again! </p>