[LLVMdev] Adding register allocator to LLVM
Chris Lattner
sabre at nondot.org
Thu Aug 3 08:36:53 PDT 2006
On Thu, 3 Aug 2006, Jim Laskey wrote:
> To force the load/linking of your register allocator into the llc/lli tools,
> add your create function's global declaration to "Passes.h" and add a
> "pseudo" call line to "llvm/Codegen/LinkAllCodegenComponents.h" .
Another note: with this new functionality you should be able to
dynamically load register allocators. Build your register allocator into
a dynamic library, like this:
http://llvm.org/docs/WritingAnLLVMPass.html#makefile
They you should be able to use:
llc -load yourregalloc.so -regalloc=yours ...
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list