Start using tablegenerated instruction descriptions
[oota-llvm.git] / lib / Target / X86 / Makefile
1 LEVEL = ../../..
2 LIBRARYNAME = x86
3 include $(LEVEL)/Makefile.common
4
5 # Make sure that tblgen is run, first thing.
6 $(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
7                  X86GenRegisterInfo.inc X86GenInstrNames.inc \
8                  X86GenInstrInfo.inc
9
10 X86GenRegisterNames.inc:  X86.td X86RegisterInfo.td $(TBLGEN)
11         $(TBLGEN) X86.td -gen-register-enums -o $@
12
13 X86GenRegisterInfo.h.inc: X86.td X86RegisterInfo.td $(TBLGEN)
14         $(TBLGEN) X86.td -gen-register-desc-header -o $@
15
16 X86GenRegisterInfo.inc: X86.td X86RegisterInfo.td $(TBLGEN)
17         $(TBLGEN) X86.td -gen-register-desc -o $@
18
19 X86GenInstrNames.inc: X86.td X86InstrInfo.td $(TBLGEN)
20         $(TBLGEN) X86.td -gen-instr-enums -o $@
21
22 X86GenInstrInfo.inc: X86.td X86InstrInfo.td $(TBLGEN)
23         $(TBLGEN) X86.td -gen-instr-desc -o $@
24
25 clean::
26         $(VERB) rm -f *.inc
27