<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks Raghu<br><br>It is working fine now!!!!<br><br>I change the name of the instruction "add" to "newadd" in <br>root/llvm/lib/Target/XCore/XCoreInstrInfo.td. Then I go to objllvm/lib/Target/XCore/<br><br>then I run<br><br>$ make<br>$ cd<br>$ cd objllvm<br>$ sudo make install<br><br>I can see the new name *newadd" in the assembly code now but Is this the shortest way?<br>I mean I change only one file :)<br><br>thanks again!!!!<br><br>--- On <b>Tue, 1/25/11, Raghu Prabhakar <i><raghu@cs.ucla.edu></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Raghu Prabhakar <raghu@cs.ucla.edu><br>Subject: Re: [LLVMdev] install and add backend to llvm.<br>To: "Teklu kebede" <tek_phy@yahoo.com><br>Cc: llvmdev@cs.uiuc.edu<br>Date: Tuesday, January 25, 2011, 2:51 AM<br><br><div
 class="plainMail">Have you added the $LLVM_INSTALL_DIR/bin to your PATH environment variable?<br><br>Regarding changing a particular backend, check the documentation in <br><a href="http://llvm.org/docs/WritingAnLLVMBackend.html" target="_blank">http://llvm.org/docs/WritingAnLLVMBackend.html</a><br><a href="http://llvm.org/docs/CodeGenerator.html" target="_blank">http://llvm.org/docs/CodeGenerator.html</a><br><br>A few LLVMdev meetings have good talks to give you a good enough idea.<br><a href="http://llvm.org/devmtg/" target="_blank">http://llvm.org/devmtg/</a><br><br>Cheers,<br>Raghu.<br><br>----- Original Message -----<br>From: "Teklu kebede" <<a ymailto="mailto:tek_phy@yahoo.com" href="/mc/compose?to=tek_phy@yahoo.com">tek_phy@yahoo.com</a>><br>To: <a ymailto="mailto:llvmdev@cs.uiuc.edu" href="/mc/compose?to=llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><br>Sent: Monday, January 24, 2011 6:13:37 PM<br>Subject: [LLVMdev] install and add backend
 to llvm.<br><br><br>Hi I am new to llvm and Linux (I am using ubuntu 10) <br><br>My aim is to add backend to llvm. <br><br>I install llvm using <br><br>$ sudo apt-get install llvm <br><br>and I am able to understand what I read about Writing an LLVM Compiler Backend. <br><br>I have seen the assembly codes of the targets on llvm using llc. What I need now is to change some of the TableGen files of one of the target like SparcInstrInfo.td. So I uninstall llvm and I try to build it manually as specified in Getting Started with the LLVM System. <a href="http://llvm.org/releases/2.7/docs/GettingStarted.html" target="_blank">http://llvm.org/releases/2.7/docs/GettingStarted.html</a>. <br><br>The building finish with out error (I didn\t include LLVM Test Suite ). <br>I use default for all of the options!! <br><br>But when I use all of tools for example <br>$ lli hello.bc <br><br>I get <br><br>The program 'lli' is currently not installed. You can install it by
 typing: <br>sudo apt-get install llvm-2.7-runtime <br><br>Any help please. <br><br>I just need to see the effect of a changes in TableGen files, when i print the assembly code. <br>like name of register, or name of Instruction. <br><br>thanks <br><br><br><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="/mc/compose?to=LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></td></tr></table><br>