mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
add plumbing for handling multiple result nodes
in some more places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -296,9 +296,11 @@ void FastISelMap::CollectPatterns(CodeGenDAGPatterns &CGP) {
|
||||
if (!InstPatNode) continue;
|
||||
if (InstPatNode->isLeaf()) continue;
|
||||
|
||||
// Ignore multiple result nodes for now.
|
||||
if (InstPatNode->getNumTypes() > 1) continue;
|
||||
|
||||
Record *InstPatOp = InstPatNode->getOperator();
|
||||
std::string OpcodeName = getOpcodeName(InstPatOp, CGP);
|
||||
assert(InstPatNode->getNumTypes() <= 1);
|
||||
MVT::SimpleValueType RetVT = MVT::isVoid;
|
||||
if (InstPatNode->getNumTypes()) RetVT = InstPatNode->getType(0);
|
||||
MVT::SimpleValueType VT = RetVT;
|
||||
|
||||
Reference in New Issue
Block a user