diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-16 00:29:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-16 00:29:46 +0000 |
| commit | 7884fffb0057a1a4f2fedb04a7fdfde62ad4b341 (patch) | |
| tree | 3fe7e47aa89a6ca3232d96a46c2ddaf73f04b987 /llvm | |
| parent | 59e96143a2d9110a5a2756c7499fec12bbdc66b2 (diff) | |
| download | bcm5719-llvm-7884fffb0057a1a4f2fedb04a7fdfde62ad4b341.tar.gz bcm5719-llvm-7884fffb0057a1a4f2fedb04a7fdfde62ad4b341.zip | |
Fix a minor bug, add comments
llvm-svn: 23370
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index 79ef2311c3d..d0aac0b51a2 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -697,7 +697,7 @@ static bool HandleUse(TreePattern *I, TreePatternNode *Pat, } else { Record *SlotRec; if (Slot->isLeaf()) { - Rec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef(); + SlotRec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef(); } else { assert(Slot->getNumChildren() == 0 && "can't be a use with children!"); SlotRec = Slot->getOperator(); @@ -1018,13 +1018,16 @@ void DAGISelEmitter::run(std::ostream &OS) { OS << "// *** NOTE: This file is #included into the middle of the target\n" << "// *** instruction selector class. These functions are really " << "methods.\n\n"; + ParseNodeInfo(); ParseNodeTransforms(OS); ParsePatternFragments(OS); ParseInstructions(); ParsePatterns(); - // TODO: convert some instructions to expanders if needed or something. + // At this point, we have full information about the 'Patterns' we need to + // parse, both implicitly from instructions as well as from explicit pattern + // definitions. EmitInstructionSelector(OS); |

