llvm-6502/utils/TableGen
Scott Michel 0123b7dcfa Make tblgen a little smarter about constants smaller than i32. Currently,
tblgen will complain if a sign-extended constant does not fit into a
data type smaller than i32, e.g., i16. This causes a problem when certain
hex constants are used, such as 0xff for byte masks or immediate xor
values.

tblgen will try the sign-extended value first and, if the sign extended
value would overflow, it tries to see if the unsigned value will fit.
Consequently, a software developer can now safely incant:

	(XORHIr16 R16C:$rA, 0xffff)

which is somewhat clearer and more informative than incanting:

	(XORHIr16 R16C:$rA, (i16 -1))

even if the two are bitwise equivalent.

Tblgen also outputs the 64-bit unsigned constant in the generated ISel code
when getTargetConstant() is invoked.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47188 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-15 23:05:48 +00:00
..
AsmWriterEmitter.cpp Get rid of the annoying blank lines before labels. 2008-02-02 08:39:46 +00:00
AsmWriterEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CallingConvEmitter.cpp Rename CCIfStruct to CCIfByVal and CCStructAssign to CCPassByVal. Remove unused parameters of CCStructAssign and add size and alignment requirement info. 2008-01-15 03:34:58 +00:00
CallingConvEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CodeEmitterGen.cpp SDIsel processes llvm.dbg.declare by recording the variable debug information descriptor and its corresponding stack frame index in MachineModuleInfo. This only works if the local variable is "homed" in the stack frame. It does not work for byval parameter, etc. 2008-02-02 04:07:54 +00:00
CodeEmitterGen.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CodeGenDAGPatterns.cpp Make tblgen a little smarter about constants smaller than i32. Currently, 2008-02-15 23:05:48 +00:00
CodeGenDAGPatterns.h Tablegen support for insert & extract element matching 2008-02-09 01:37:05 +00:00
CodeGenInstruction.cpp Start inferring side effect information more aggressively, and fix many bugs in the 2008-01-10 07:59:24 +00:00
CodeGenInstruction.h Start inferring side effect information more aggressively, and fix many bugs in the 2008-01-10 07:59:24 +00:00
CodeGenIntrinsics.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CodeGenRegisters.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
CodeGenTarget.cpp SDIsel processes llvm.dbg.declare by recording the variable debug information descriptor and its corresponding stack frame index in MachineModuleInfo. This only works if the local variable is "homed" in the stack frame. It does not work for byval parameter, etc. 2008-02-02 04:07:54 +00:00
CodeGenTarget.h Allow ComplexExpressions in InstrInfo.td files to be slightly more... complex! ComplexExpressions can now have attributes which affect how TableGen interprets 2008-01-31 07:27:46 +00:00
DAGISelEmitter.cpp Make tblgen a little smarter about constants smaller than i32. Currently, 2008-02-15 23:05:48 +00:00
DAGISelEmitter.h rename CodegenDAGPatterns -> CodeGenDAGPatterns 2008-01-06 01:10:31 +00:00
InstrEnumEmitter.cpp split enum emission out from InstrInfoEmitter into it's own tblgen backend. 2008-01-06 00:49:05 +00:00
InstrEnumEmitter.h split enum emission out from InstrInfoEmitter into it's own tblgen backend. 2008-01-06 00:49:05 +00:00
InstrInfoEmitter.cpp SDIsel processes llvm.dbg.declare by recording the variable debug information descriptor and its corresponding stack frame index in MachineModuleInfo. This only works if the local variable is "homed" in the stack frame. It does not work for byval parameter, etc. 2008-02-02 04:07:54 +00:00
InstrInfoEmitter.h start inferring 'no side effects'. 2008-01-10 05:39:30 +00:00
IntrinsicEmitter.cpp Change the builtin matcher to emit a decision tree, which should help out 2008-01-04 04:38:35 +00:00
IntrinsicEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
Makefile remove attributions from tools/utils makefiles. 2007-12-29 20:07:17 +00:00
Record.cpp remove attributions from utils. 2007-12-29 20:37:13 +00:00
Record.h Add interator interface to DAGInit also 2008-01-22 11:00:07 +00:00
RegisterInfoEmitter.cpp Rename MRegisterInfo to TargetRegisterInfo. 2008-02-10 18:45:23 +00:00
RegisterInfoEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
SubtargetEmitter.cpp Rewrite tblgen handling of subtarget features so 2008-02-14 23:35:16 +00:00
SubtargetEmitter.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
TableGen.cpp split enum emission out from InstrInfoEmitter into it's own tblgen backend. 2008-01-06 00:49:05 +00:00
TableGenBackend.cpp change getQualifiedName to be a global function. 2008-01-05 22:25:12 +00:00
TableGenBackend.h change getQualifiedName to be a global function. 2008-01-05 22:25:12 +00:00
TGLexer.cpp remove attributions from utils. 2007-12-29 20:37:13 +00:00
TGLexer.h remove attributions from utils. 2007-12-29 20:37:13 +00:00
TGParser.cpp Fix a crash on code like: let x = 1 {x 2008-01-10 07:01:53 +00:00
TGParser.h remove attributions from utils. 2007-12-29 20:37:13 +00:00