[LLVMdev] Adding register allocator to LLVM

Bram Adams bram.adams at ugent.be
Sun Aug 20 07:13:27 PDT 2006


Hi,

Op 20-aug-06, om 15:18 heeft Anton Vayvod het volgende geschreven:

> 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.

Did you add your new folder to the (PARALLEL_)DIRS variable within  
CodeGen's Makefile?

>
> llc -load yourregalloc.so -regalloc=yours ...
>
> -Chris
>
> BTW, do you know what the extension cygwin uses instead of ".so"?

I managed to load a pass without any extension (using opt or llvm- 
ld), so maybe the following works: llc -load /path/to/yourregalloc - 
regalloc=...

Kind regards,

Bram Adams
GH-SEL, INTEC, Ghent University



More information about the llvm-dev mailing list