llvm-6502/utils/TableGen
Scott Michel 327d0651f8 This patch fixes a problem encountered by the CellSPU backend where variants
were being pruned in patterns where a variable was used more than once, e.g.:

  (or (and R32C:$rA, R32C:$rC), (and R32C:$rB, (not R32C:$rC)))

In this example, $rC is used more than once and is actually significant to
instruction selection pattern matching when commuted variants are produced.
This patch scans the pattern's clauses and collects the variables, creating
a set of variables that are used more than once. TreePatternNode::isIsomorphicTo()
also understands that multiply-used variables are significant.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47950 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-05 17:49:05 +00:00
..
AsmWriterEmitter.cpp Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings. 2008-02-20 11:08:44 +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 This patch fixes a problem encountered by the CellSPU backend where variants 2008-03-05 17:49:05 +00:00
CodeGenDAGPatterns.h This patch fixes a problem encountered by the CellSPU backend where variants 2008-03-05 17:49: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 Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings. 2008-02-20 11:08:44 +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 De-tabify. 2008-02-26 10:45:29 +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 PrintableName to Name. 2008-02-26 21:47:57 +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 Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings. 2008-02-20 11:08:44 +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