mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Turn this into a wrapper for a simpler version of getNode.
llvm-svn: 22016
This commit is contained in:
parent
a035798c4b
commit
ac7d55f114
@ -1359,14 +1359,13 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
|||||||
SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||||
SDOperand N1, SDOperand N2, SDOperand N3,
|
SDOperand N1, SDOperand N2, SDOperand N3,
|
||||||
SDOperand N4) {
|
SDOperand N4) {
|
||||||
assert(Opcode == ISD::STORE && "Only stores should use this");
|
std::vector<SDOperand> Ops;
|
||||||
|
Ops.reserve(4);
|
||||||
SDNode *N = new SDNode(Opcode, N1, N2, N3, N4);
|
Ops.push_back(N1);
|
||||||
N->setValueTypes(VT);
|
Ops.push_back(N2);
|
||||||
|
Ops.push_back(N3);
|
||||||
// FIXME: memoize NODES
|
Ops.push_back(N4);
|
||||||
AllNodes.push_back(N);
|
return getNode(Opcode, VT, Ops);
|
||||||
return SDOperand(N, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDOperand SelectionDAG::getSrcValue(const Value *V, int Offset) {
|
SDOperand SelectionDAG::getSrcValue(const Value *V, int Offset) {
|
||||||
|
Loading…
Reference in New Issue
Block a user