llvm-6502/utils/TableGen
Chris Lattner a14b1ded69 add a new TGError class and use it to propagate location info with
errors when thrown.  This gets us nice errors like this from tblgen:

CMOVL32rr: 	(set GR32:i32:$dst, (X86cmov GR32:$src1, GR32:$src2))
/Users/sabre/llvm/Debug/bin/tblgen: error:
Included from X86.td:116:
Parsing X86InstrInfo.td:922: In CMOVL32rr: X86cmov node requires exactly 4 operands!
def CMOVL32rr : I<0x4C, MRMSrcReg,       // if <s, GR32 = GR32
^

instead of just:

CMOVL32rr: 	(set GR32:i32:$dst, (X86cmov GR32:$src1, GR32:$src2))
/Users/sabre/llvm/Debug/bin/tblgen: In CMOVL32rr: X86cmov node requires exactly 4 operands!

This is all I plan to do with this, but it should be easy enough to improve if anyone 
cares (e.g. keeping more loc info in "dag" expr records in tblgen.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66898 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13 16:25:21 +00:00
..
AsmWriterEmitter.cpp Overhaul my earlier submission due to feedback. It's a large patch, but most of 2009-02-24 08:30:20 +00:00
AsmWriterEmitter.h
CallingConvEmitter.cpp Rename getABITypeSize to getTypePaddedSize, as 2009-01-12 20:38:59 +00:00
CallingConvEmitter.h
CMakeLists.txt
CodeEmitterGen.cpp
CodeEmitterGen.h
CodeGenDAGPatterns.cpp add a new TGError class and use it to propagate location info with 2009-03-13 16:25:21 +00:00
CodeGenDAGPatterns.h Eliminate a 'control reaches end of non-void function' warning. 2009-02-09 03:07:24 +00:00
CodeGenInstruction.cpp Rename isSimpleLoad to canFoldAsLoad, to better reflect its meaning. 2008-12-03 18:15:48 +00:00
CodeGenInstruction.h Rename isSimpleLoad to canFoldAsLoad, to better reflect its meaning. 2008-12-03 18:15:48 +00:00
CodeGenIntrinsics.h Reapply 63765. Patches for clang and llvm-gcc to follow. 2009-02-05 01:49:45 +00:00
CodeGenRegisters.h
CodeGenTarget.cpp Reapply 63765. Patches for clang and llvm-gcc to follow. 2009-02-05 01:49:45 +00:00
CodeGenTarget.h
DAGISelEmitter.cpp Get rid of one more non-DebugLoc getNode and 2009-02-06 01:31:28 +00:00
DAGISelEmitter.h Add explicit keywords. 2009-02-18 16:37:45 +00:00
FastISelEmitter.cpp Eliminate a couple of fields from TargetRegisterClass: SubRegClasses and SuperRegClasses. These are not necessary. Also eliminate getSubRegisterRegClass and getSuperRegisterRegClass. These are slow and their results can change if register file names change. Just use TargetLowering::getRegClassFor() to get the right TargetRegisterClass instead. 2009-01-22 09:10:11 +00:00
FastISelEmitter.h
InstrEnumEmitter.cpp
InstrEnumEmitter.h
InstrInfoEmitter.cpp Rename isSimpleLoad to canFoldAsLoad, to better reflect its meaning. 2008-12-03 18:15:48 +00:00
InstrInfoEmitter.h
IntrinsicEmitter.cpp Added support to have TableGen provide information if an intrinsic (core 2009-02-24 23:17:49 +00:00
IntrinsicEmitter.h Added support to have TableGen provide information if an intrinsic (core 2009-02-24 23:17:49 +00:00
LLVMCConfigurationEmitter.cpp 'append_cmd' should split its argument. 2009-02-27 06:46:55 +00:00
LLVMCConfigurationEmitter.h
Makefile these utils don't need exports. 2009-02-26 19:02:23 +00:00
Record.cpp
Record.h add a new TGError class and use it to propagate location info with 2009-03-13 16:25:21 +00:00
RegisterInfoEmitter.cpp Eliminate a couple of fields from TargetRegisterClass: SubRegClasses and SuperRegClasses. These are not necessary. Also eliminate getSubRegisterRegClass and getSuperRegisterRegClass. These are slow and their results can change if register file names change. Just use TargetLowering::getRegClassFor() to get the right TargetRegisterClass instead. 2009-01-22 09:10:11 +00:00
RegisterInfoEmitter.h
SubtargetEmitter.cpp
SubtargetEmitter.h
TableGen.cpp add a new TGError class and use it to propagate location info with 2009-03-13 16:25:21 +00:00
TableGenBackend.cpp
TableGenBackend.h
TGLexer.cpp make "locations" a class instead of a typedef. 2009-03-13 16:01:53 +00:00
TGLexer.h make "locations" a class instead of a typedef. 2009-03-13 16:01:53 +00:00
TGParser.cpp give each Record a location. 2009-03-13 16:09:24 +00:00
TGParser.h make "locations" a class instead of a typedef. 2009-03-13 16:01:53 +00:00
TGSourceMgr.cpp make "locations" a class instead of a typedef. 2009-03-13 16:01:53 +00:00
TGSourceMgr.h give each Record a location. 2009-03-13 16:09:24 +00:00
TGValueTypes.cpp