Creating a new project using LLVM

Chen,

Thank you.

When I replaced gcc by clang, how do I ensure that the clang use the
LLVM backend that is already modified by myself? I am trying to
modified the source code for the register allocator of the llvm and
want to apply this modification to the clang compiler. I see that when
I compile the whole modified llvm project from scratch, it does not
produce a Clang executable. The clang that exists in my computer is
from the package I downloaded from the internet (I downloaded this in
need of compiling the llvm project. ).

Regards,

Z. Wu

It does product a clang executable if you follow instruction at

http://clang.llvm.org/get_started.html

When I replaced gcc by clang, how do I ensure that the clang use the
LLVM backend that is already modified by myself? I am trying to
modified the source code for the register allocator of the llvm and
want to apply this modification to the clang compiler. I see that when
I compile the whole modified llvm project from scratch, it does not
produce a Clang executable. The clang that exists in my computer is
from the package I downloaded from the internet (I downloaded this in
need of compiling the llvm project. ).

  Do you compile LLVM/Clang at the same time? If you modify LLVM and want to use
clang to compile your project, please follow the instuctions on [1].

HTH,
chenwj

[1] Clang - Getting Started