[LLVMdev] Building a backend outside the LLVM source tree

Pedro Ferreria pedro.ferreira at imgtec.com
Wed Nov 17 08:15:51 PST 2010


On 17/11/10 13:28, Torgny Andersson wrote:
> Hi!
> I'm trying to build a backend outside the LLVM source tree. My 
> directory structure is as follows:
>   llvm -- the root of the LLVM source tree
>   llvm/lib/Target -- where the standard backends are stored (Sparc, etc).
>   my_dir/my_backend -- where I store the backend I'm writing.
>
> I've been fiddeling with the variables documented in the 
> llvm/Makefile.common (LEVEL, LLVM_SRC_ROOT, PROJ_SRC_DIR, etc) but 
> without success. Is what I'm trying to do possible with the LLVM 
> buildsystem? If so, how?
>
> Thank you!
>
>   / Torgny
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

You don't need to change the makefiles. Simply update the configure 
script as explained here 
http://llvm.org/docs/WritingAnLLVMBackend.html#Preliminaries

Have your backend's folder live in llvm/lib/Target/ with the others.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101117/03b9f1cb/attachment.html>


More information about the llvm-dev mailing list