mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
Skip over srcvalue nodes when generating ISEL code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d2331dba7
commit
01f318bfca
@ -485,7 +485,7 @@ static unsigned char getIntrinsicType(Record *R, bool NotRegisters,
|
||||
return MVT::Other;
|
||||
} else if (R->isSubClassOf("ComplexPattern")) {
|
||||
return TP.getDAGISelEmitter().getComplexPattern(R).getValueType();
|
||||
} else if (R->getName() == "node") {
|
||||
} else if (R->getName() == "node" || R->getName() == "srcvalue") {
|
||||
// Placeholder.
|
||||
return MVT::isUnknown;
|
||||
}
|
||||
@ -973,6 +973,10 @@ static bool HandleUse(TreePattern *I, TreePatternNode *Pat,
|
||||
Rec = Pat->getOperator();
|
||||
}
|
||||
|
||||
// SRCVALUE nodes are ignored.
|
||||
if (Rec->getName() == "srcvalue")
|
||||
return false;
|
||||
|
||||
TreePatternNode *&Slot = InstInputs[Pat->getName()];
|
||||
if (!Slot) {
|
||||
Slot = Pat;
|
||||
@ -1832,6 +1836,8 @@ public:
|
||||
}
|
||||
} else if (LeafRec->isSubClassOf("ComplexPattern")) {
|
||||
// Handle complex pattern. Nothing to do here.
|
||||
} else if (LeafRec->getName() == "srcvalue") {
|
||||
// Place holder for SRCVALUE nodes. Nothing to do here.
|
||||
} else if (LeafRec->isSubClassOf("ValueType")) {
|
||||
// Make sure this is the specified value type.
|
||||
OS << " if (cast<VTSDNode>(" << RootName << OpNo << ")->getVT() != "
|
||||
|
Loading…
Reference in New Issue
Block a user