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
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
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
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
CodeGenRegisters.h
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
InstrEnumEmitter.cpp
InstrEnumEmitter.h
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
IntrinsicEmitter.h
Makefile
Record.cpp
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
SubtargetEmitter.cpp Rewrite tblgen handling of subtarget features so 2008-02-14 23:35:16 +00:00
SubtargetEmitter.h
TableGen.cpp
TableGenBackend.cpp
TableGenBackend.h
TGLexer.cpp
TGLexer.h
TGParser.cpp Fix a crash on code like: let x = 1 {x 2008-01-10 07:01:53 +00:00
TGParser.h