[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 15 17:29:57 PDT 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.32 -> 1.33
---
Log message:
Fix a minor bug, add comments
---
Diffs of the changes: (+5 -2)
DAGISelEmitter.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.32 llvm/utils/TableGen/DAGISelEmitter.cpp:1.33
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.32 Thu Sep 15 17:23:50 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Thu Sep 15 19:29:46 2005
@@ -697,7 +697,7 @@
} 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 @@
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);
More information about the llvm-commits
mailing list