[LLVMdev] How to add a new target/toolchain to Clang ?

Tom Stellard tom at stellard.net
Thu Jul 9 09:40:49 PDT 2015


On Thu, Jul 09, 2015 at 03:57:53PM +0200, Frédéric Heitzmann wrote:
> Hi all,
> 
> I have been developping a out-of-tree backend.
> I would like to integrate it with clang.
> Note that my backend is rather simple, generates elf32, and I do not need
> about linux, libary paths, ...
> 
> Can someone give me a pointer to a readme, an article, or maybe a good
> (i.e. simple) example ?
> 
> Note :on a second step, I would like to support inline assembly in C code..
> 

Here is a simple example for adding a new toolchain:
http://reviews.llvm.org/D10700

See R600TargetInfo in lib/Basic/Targets.cpp for an example of a
simple Target that supports inline assembly.

-Tom

> --
> Frederic Heitzmann

> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list