mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
implement add_parts/sub_parts.
llvm-svn: 19714
This commit is contained in:
parent
8e17ad37f2
commit
4086a7a803
@ -889,7 +889,12 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
default:
|
||||
// FIXME: MEMOIZE!!
|
||||
SDNode *N = new SDNode(Opcode, Children);
|
||||
N->setValueTypes(VT);
|
||||
if (Opcode != ISD::ADD_PARTS && Opcode != ISD::SUB_PARTS) {
|
||||
N->setValueTypes(VT);
|
||||
} else {
|
||||
std::vector<MVT::ValueType> V(N->getNumOperands()/2, VT);
|
||||
N->setValueTypes(V);
|
||||
}
|
||||
AllNodes.push_back(N);
|
||||
return SDOperand(N, 0);
|
||||
}
|
||||
@ -1075,8 +1080,8 @@ const char *SDNode::getOperationName() const {
|
||||
case ISD::SRL: return "srl";
|
||||
|
||||
case ISD::SELECT: return "select";
|
||||
case ISD::ADDC: return "addc";
|
||||
case ISD::SUBB: return "subb";
|
||||
case ISD::ADD_PARTS: return "add_parts";
|
||||
case ISD::SUB_PARTS: return "sub_parts";
|
||||
|
||||
// Conversion operators.
|
||||
case ISD::SIGN_EXTEND: return "sign_extend";
|
||||
|
Loading…
x
Reference in New Issue
Block a user