llvm.org GIT mirror llvm / b9f01eb
Fix a minor bug, add comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23370 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
696696 } else {
697697 Record *SlotRec;
698698 if (Slot->isLeaf()) {
699 Rec = dynamic_cast(Slot->getLeafValue())->getDef();
699 SlotRec = dynamic_cast(Slot->getLeafValue())->getDef();
700700 } else {
701701 assert(Slot->getNumChildren() == 0 && "can't be a use with children!");
702702 SlotRec = Slot->getOperator();
10171017 OS << "// *** NOTE: This file is #included into the middle of the target\n"
10181018 << "// *** instruction selector class. These functions are really "
10191019 << "methods.\n\n";
1020
10201021 ParseNodeInfo();
10211022 ParseNodeTransforms(OS);
10221023 ParsePatternFragments(OS);
10231024 ParseInstructions();
10241025 ParsePatterns();
10251026
1026 // TODO: convert some instructions to expanders if needed or something.
1027 // At this point, we have full information about the 'Patterns' we need to
1028 // parse, both implicitly from instructions as well as from explicit pattern
1029 // definitions.
10271030
10281031 EmitInstructionSelector(OS);
10291032