I am using LLVM 2.8 on Ubuntu 10.10. (new to both) I change name of instruction on XXXInstrInfo.td ( Sparc, X86 and XCore). I looked into XXXGenAsmWriter.inc and I have seen the new instruction name. But when I run llc for the three targets it prints out the old instruction name. For example for XCore I change “divs” to “sdiv” like>From => def DIVS_l3r : FL3R<"divs", sdiv>;// divsTo => def DIVS_l3r : FL3R<"sdiv", sdiv>;//sdiv But I can see the effect of my change when I run llc test1.bc –march=xcore –o asmXcore.s If this is linkage problem how can I solve it? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110113/5a9ea3a5/attachment.html>
> llc test1.bc –march=xcore –o asmXcore.s > If this is linkage problem how can I solve it?If you see the correct result, what's the problem then? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
On 13 January 2011 14:58, Atse Zeriakob <atsezeriakob at gmail.com> wrote:> But when I run llc for the three targets it prints out the old instruction > name.What is the llc command line when it doesn't work? --renato
On 13 January 2011 19:20, Atse Zeriakob <atsezeriakob at gmail.com> wrote:> For example in XCoreInstrInfo.td I change the name of one of the instruction > let say "divs" to "newdivs", > > like > def DIVS_l3r : FL3R<"newdivs", sdiv>; > > When I run llc with option -march=xcore, after I make the modification, it > still outputs "divs", not "newdivs". I looked into XCoreGenAsmWriter.inc, > and made sure that string AsmStrs includes "newdivs".I don't know if the tablegen gets rebuilt when you re-compile llvm, but it could also be that you are changing the wrong rule... I'll leave the tablegen experts answer that... ;) cheers, --renato