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 Le 2 juil. 2012 à 20:48, zhixiang wu a écrit :> 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 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- Jean-Daniel
> 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] http://clang.llvm.org/get_started.html -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Maybe Matching Threads
- [LLVMdev] Creating a new project using LLVM
- [LLVMdev] Benchmarking for automatic parallelization project
- [LLVMdev] Benchmarking for automatic parallelization project
- [LLVMdev] question about llvm C++ standard?
- [LLVMdev] Update PTX section in CodeGenerator.html