RE: MinGW Tablegen

Hi

As requested from Paolo, I've sent him the tablegen tool. The tool is able to compile the td files (given in the makefile) on windows without any complaints.

Henrik

Some problems... (or I'm missing something...)

1) asmwriternum seems to be not supported...

scons: Building targets ...
d:/home/arathorn/sandbox/llvm/tblgen.exe -gen-asm-writer -asmwriternum=1 -I llvm\lib\Target\X86 -o tablegen_includes\X86GenIntelAsmWriter.inc llvm\lib\Target\X86\X86.td llvm\lib\Target\X86\X86InstrInfo.td llvm\lib\Target\X86\X86RegisterInfo.td llvm\lib\Target\Target.td
d:/home/arathorn/sandbox/llvm/tblgen.exe: Unknown command line argument '-asmwriternum=1'. Try: 'd:/home/arathorn/sandbox/llvm/tblgen.exe --help'

2) related to previous problem?

scons: Building targets ...
d:/home/arathorn/sandbox/llvm/tblgen.exe -gen-asm-writer -I llvm\lib\Target\X86 -o tablegen_includes\X86GenATTAsmWriter.
inc llvm\lib\Target\X86\X86.td llvm\lib\Target\X86\X86InstrInfo.td llvm\lib\Target\X86\X86RegisterInfo.td llvm\lib\Targe
t\Target.td
d:/home/arathorn/sandbox/llvm/tblgen.exe: Record 'X86' does not have a field named 'AssemblyWriter!

d:/home/arathorn/sandbox/llvm/tblgen.exe -gen-instr-enums -I llvm\lib\Target\X86 -o tablegen_includes\X86GenInstrNames.i
nc llvm\lib\Target\X86\X86.td llvm\lib\Target\X86\X86InstrInfo.td llvm\lib\Target\X86\X86RegisterInfo.td llvm\lib\Target
\Target.td
d:/home/arathorn/sandbox/llvm/tblgen.exe: Record 'X86' does not have a field named 'AssemblyWriter!

Yes, you are missing recent CVS commits. Henrik supplied you with the
binary, which is a bit out of date, but you are probably updating
Makefiles and *.td files from current CVS.

If you are using bleeding-edge CVS code, then you should be building it
yourself. TableGen, in particular, has been changed recently to handle
variants of assembly printers, in the case of X86, Intel and AT&T syntax
are now supported directly via TableGen.

Naturally, the .td files changed, and a new option for specifying
variants has been added.