llvm.org GIT mirror llvm / 05e69c1
Yet another getTargetNode variant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41898 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
2 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
409409 SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT1,
410410 MVT::ValueType VT2, MVT::ValueType VT3,
411411 const SDOperand *Ops, unsigned NumOps);
412 SDNode *getTargetNode(unsigned Opcode, MVT::ValueType VT1,
413 MVT::ValueType VT2, MVT::ValueType VT3,
414 MVT::ValueType VT4,
415 const SDOperand *Ops, unsigned NumOps);
412416
413417 /// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
414418 /// This can cause recursive merging of nodes in the DAG. Use the first
30403040 const MVT::ValueType *VTs = getNodeValueTypes(VT1, VT2, VT3);
30413041 return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 3, Ops, NumOps).Val;
30423042 }
3043 SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT::ValueType VT1,
3044 MVT::ValueType VT2, MVT::ValueType VT3,
3045 MVT::ValueType VT4,
3046 const SDOperand *Ops, unsigned NumOps) {
3047 std::vector VTList;
3048 VTList.push_back(VT1);
3049 VTList.push_back(VT2);
3050 VTList.push_back(VT3);
3051 VTList.push_back(VT4);
3052 const MVT::ValueType *VTs = getNodeValueTypes(VTList);
3053 return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val;
3054 }
30433055
30443056 /// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
30453057 /// This can cause recursive merging of nodes in the DAG.