mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
implement add_parts/sub_parts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -889,7 +889,12 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
|||||||
default:
|
default:
|
||||||
// FIXME: MEMOIZE!!
|
// FIXME: MEMOIZE!!
|
||||||
SDNode *N = new SDNode(Opcode, Children);
|
SDNode *N = new SDNode(Opcode, Children);
|
||||||
|
if (Opcode != ISD::ADD_PARTS && Opcode != ISD::SUB_PARTS) {
|
||||||
N->setValueTypes(VT);
|
N->setValueTypes(VT);
|
||||||
|
} else {
|
||||||
|
std::vector<MVT::ValueType> V(N->getNumOperands()/2, VT);
|
||||||
|
N->setValueTypes(V);
|
||||||
|
}
|
||||||
AllNodes.push_back(N);
|
AllNodes.push_back(N);
|
||||||
return SDOperand(N, 0);
|
return SDOperand(N, 0);
|
||||||
}
|
}
|
||||||
@@ -1075,8 +1080,8 @@ const char *SDNode::getOperationName() const {
|
|||||||
case ISD::SRL: return "srl";
|
case ISD::SRL: return "srl";
|
||||||
|
|
||||||
case ISD::SELECT: return "select";
|
case ISD::SELECT: return "select";
|
||||||
case ISD::ADDC: return "addc";
|
case ISD::ADD_PARTS: return "add_parts";
|
||||||
case ISD::SUBB: return "subb";
|
case ISD::SUB_PARTS: return "sub_parts";
|
||||||
|
|
||||||
// Conversion operators.
|
// Conversion operators.
|
||||||
case ISD::SIGN_EXTEND: return "sign_extend";
|
case ISD::SIGN_EXTEND: return "sign_extend";
|
||||||
|
Reference in New Issue
Block a user