llc linkage problem

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>;// divs

To => 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?

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?

What is the llc command line when it doesn't work?

--renato

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... :wink:

cheers,
--renato