mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix a minor bug, add comments
llvm-svn: 23370
This commit is contained in:
parent
4c1ec1c784
commit
2e3569b604
@ -697,7 +697,7 @@ static bool HandleUse(TreePattern *I, TreePatternNode *Pat,
|
|||||||
} else {
|
} else {
|
||||||
Record *SlotRec;
|
Record *SlotRec;
|
||||||
if (Slot->isLeaf()) {
|
if (Slot->isLeaf()) {
|
||||||
Rec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef();
|
SlotRec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef();
|
||||||
} else {
|
} else {
|
||||||
assert(Slot->getNumChildren() == 0 && "can't be a use with children!");
|
assert(Slot->getNumChildren() == 0 && "can't be a use with children!");
|
||||||
SlotRec = Slot->getOperator();
|
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"
|
OS << "// *** NOTE: This file is #included into the middle of the target\n"
|
||||||
<< "// *** instruction selector class. These functions are really "
|
<< "// *** instruction selector class. These functions are really "
|
||||||
<< "methods.\n\n";
|
<< "methods.\n\n";
|
||||||
|
|
||||||
ParseNodeInfo();
|
ParseNodeInfo();
|
||||||
ParseNodeTransforms(OS);
|
ParseNodeTransforms(OS);
|
||||||
ParsePatternFragments(OS);
|
ParsePatternFragments(OS);
|
||||||
ParseInstructions();
|
ParseInstructions();
|
||||||
ParsePatterns();
|
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);
|
EmitInstructionSelector(OS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user